fdb-document-layer icon indicating copy to clipboard operation
fdb-document-layer copied to clipboard

Index rebuild should rebuild only the index its responsible for

Open apkar opened this issue 5 years ago • 2 comments

Index rebuild code relies on the plugin model to trigger the rebuild of a document. It touches a document, which initiates the rebuild of all indexes on that document. Although it doesn't affect the correctness of the code, it is bad for performance. It's relatively easy to change this behavior by rebuilding different collection context. We should be a bit careful with it. We need more testing around that.

apkar avatar Apr 04 '19 20:04 apkar

Just to clarify: by rebuild, you really meant index update right? Cause rebuild in MongoDB is something like building a new index

dongxinEric avatar Apr 04 '19 20:04 dongxinEric

Talked offline, this is indeed referring to the rebuild of an index.

dongxinEric avatar Apr 04 '19 20:04 dongxinEric