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
{{ message }}
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
findRecord(key) with Index Cursor - returns RecordID
unindex(key, RecordID) in SortedDataInterface, which also looks for key in tree.
In case of many duplicated keys in tree, searching is very non-optimal, can be compared to looking in list (~O(n)).
Idea is to cache location of (key,recordID) pair in IndexCursor : seek() or next() methods, and then reuse them in unindex() method, instead of looking for them again.
Cache may be placed in RecoveryUnit instance created for current operation.
The text was updated successfully, but these errors were encountered:
There are 2 steps in removal from index:
In case of many duplicated keys in tree, searching is very non-optimal, can be compared to looking in list (~O(n)).
Idea is to cache location of (key,recordID) pair in IndexCursor : seek() or next() methods, and then reuse them in unindex() method, instead of looking for them again.
Cache may be placed in RecoveryUnit instance created for current operation.
The text was updated successfully, but these errors were encountered: