fdb-document-layer
fdb-document-layer copied to clipboard
Removing all documents can be optimized
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.
Just to clarify: we need to clean the subspaces for index entries and documents all together.