Ran some tests and it seems that single-use Scanner requests are not that
bad after all. I guess the important part is to set row caching to 1 and
correctly close every scanner afterwards.

On Mon, Aug 27, 2012 at 4:33 PM, Ferdy Galema <[email protected]>wrote:

> I want to do a lot of random reads, but I need to get the first row after
> the requested key. I know I can make a scanner every time (with a specified
> startrow) and close it after a single result is fetched, but this seems
> like a lot overhead.
>
> Something like HTable's getRowOrBefore method, but then getRowOrAfter.
> (Note that getRowOrBefore is deprecated).
>
> Any advice?
>

Reply via email to