Yes. But I don't think the retrieving keys in the "right order" was part of
the original question. :-)

On Wed, Feb 23, 2011 at 7:50 PM, Norman Maurer <nor...@apache.org> wrote:

> yes but be aware that the keys will not in the "right order".
>
> Bye,
> Norman
>
> 2011/2/23 Roshan Dawrani <roshandawr...@gmail.com>:
> > On Wed, Feb 23, 2011 at 7:17 PM, Ching-Cheng Chen
> > <cc...@evidentsoftware.com> wrote:
> >>
> >> Actually, if you want to get ALL keys, I believe you can still use
> >> RangeSliceQuery with RP.
> >> Just use setKeys("","") as first batch call.
> >> Then use the last key from previous batch as startKey for next batch.
> >> Beware that since startKey is inclusive, so you'd need to ignore first
> key
> >> from now on.
> >> Keep going until you finish all batches.  You will know you'd need to
> stop
> >> when setKeys(key_xyz,"") return you only one key.
> >
> > This is what I meant to suggest when I earlier said "So, if you want all,
> > you will need to keep paging forward and collecting the keys." :-)
>

Reply via email to