You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Index class internally uses AVLTree even for unique, non-sparse indexed fields like _id.
Index performance could (most likely) be improved by using a native Map instead of AVLTree for such fields.
TODO
add a UniqueStringIndex class extending or implementing the existing Index class
override all relevant methods to use a native Map internally
make UniqueStringIndex.getBetweenBounds() throw (irrelevant usecase)
make Datastore use UniqueStringIndex for the _id field by default
find a way to enable a developer to use UniqueStringIndex for other string indexes as well
compare benchmarks before/after
The text was updated successfully, but these errors were encountered:
The
Index
class internally usesAVLTree
even for unique, non-sparse indexed fields like_id
.Index performance could (most likely) be improved by using a native
Map
instead ofAVLTree
for such fields.TODO
UniqueStringIndex
class extending or implementing the existingIndex
classMap
internallyUniqueStringIndex.getBetweenBounds()
throw (irrelevant usecase)Datastore
useUniqueStringIndex
for the_id
field by defaultThe text was updated successfully, but these errors were encountered: