https://slatedb.io logo
https://github.com/slatedb/slatedb/issues/394 Sorr...
# general
a
https://github.com/slatedb/slatedb/issues/394 Sorry, I would like to ask if is there some more detailed explanation for this issue?
r
It's in reference to
SstIterator::seek
. The current implementation is naive in that it just loops through the sst block by block creating block iterators until it finds one that has data >= the specified key. This means we read each of these blocks from the object store. We could instead just use the index to skip directly to the block that we need to start reading from.
a
Thank you very much, I will try to look into the implementation.
m
I think we can use binary search if we add first key info in BlockIndex
I look the imple,but you add binary search two weeks ago in https://github.com/slatedb/slatedb/issues/517 ,
a
It seems that binary search is only applied to
SstIterator::new()
now, do you mean that binary search should be applied to seek...?
r
yes exactly - the ticket is specifically about seek - not initializing a new iterator
a
https://github.com/slatedb/slatedb/pull/545 Sorry for replying late as I was busy with the school group meeting last week. I have tried to add binary search to seek, could you please take a look at this pr?