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

Removing all documents can be optimized

Open apkar opened this issue 5 years ago • 1 comments

Dropping a collection is faster than removing all documents. As dropping a collection just removes subspaces. But, remove goes through all documents one after another and updates indexes. If the filter is matching all documents it could be optimized to clear the subspaces.

apkar avatar Apr 10 '19 19:04 apkar

Just to clarify: we need to clean the subspaces for index entries and documents all together.

dongxinEric avatar Apr 10 '19 19:04 dongxinEric