If a caller sets bounds and then calls for a search outside of those bounds the search will be optimized to return WT_NOTFOUND.
Example:
cursor->set_key(cursor, “A”) cursor->bound(cursor, “bound=lower”) cursor->set_key(cursor, “K”) cursor->bound(cursor, “bound=upper”) cursor->set_key(cursor, “Z”) cursor->search(cursor) -> returns WT_NOTFOUND.
Scope:
- Add a statistic that is incremented when the cursor search is early exited.
- Implement for row-store.
- Add testing.