fdb-document-layer
fdb-document-layer copied to clipboard
Index rebuild should rebuild only the index its responsible for
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.
Just to clarify: by rebuild
, you really meant index update
right? Cause rebuild in MongoDB is something like building a new index
Talked offline, this is indeed referring to the rebuild of an index.