-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: implement _seek #184
Conversation
Awesome! |
Line 18 in d14d582
|
eek, yeah activating that broke it. :/ |
... that was more painful that I was hoping for. anyway; its not quite like leveldb as I think that puts the iterator on either side of the table and its marked as in invalid. For memdown I've had to make |
What happens when you do two subsequent seeks to different targets (and the second target is in range)? I don't remember if that's valid in |
cc @peakji, our seek expert |
in principle a new seek should be fine (in memdown) as it goes back to the rgb tree to start fresh. I can add a test tomorrow if there isn't one already. |
also a bit concerned that the seek tests from abstract level iterator don't seem to fail for my code, which no longer converts strings to buffers (if |
yes, that's the case |
It is fine to |
Re: buffer vs string targets, So assuming that we're gonna go with the IDB-style comparator (sort by type, which means buffers are never equal to strings, unlike in |
@peakji @ralphtheninja Seeing as both @MeirionHughes and I wrote code here, could you review? |
|
Co-Authored-By: Vincent Weevers <[email protected]>
Co-Authored-By: Vincent Weevers <[email protected]>
Just waiting on another review before this be merged? |
I was hoping for it but it's been long enough and we've got 100% coverage. Will release tomorrow |
cool thanks. 👍 |
4.1.0 |
No description provided.