"Is it possible to just return PagingState object without returning data?"
--> No

Simply because before reading the actual data for each page of N rows, you
cannot know at which token value a page of data starts...

And it is worst than that, with paging you don't have any isolation. Let's
suppose you keep in your application/web front-end the paging states for
page 1, 2 and 3. Since there are concurrent inserts on the cluster at the
same time, when you re-use the paging state 2 for example, you may not get
the same results as the previous read.

And it is inevitable in an eventual consistent distributed DB world

On Mon, May 9, 2016 at 12:25 PM, Lu, Boying <boying...@emc.com> wrote:

> dHi, All,
>
>
>
> We are considering to use DataStax java driver in our codes. One important
> feature provided by the driver we want to use is ‘paging’.
>
> But according to the
> https://datastax.github.io/java-driver/3.0.0/manual/paging/, it seems
> that we can’t jump between pages.
>
>
>
> Is it possible to just return PagingState object without returning data?
> e.g.  If I want to jump to the page 5 from the page 1,
>
> I need to go through each page from page 1 to page 5,  Is it possible to
> just return the PagingState object of page 1, 2, 3 and 4 without
>
> actual data of each page? This can save some bandwidth at least.
>
>
>
> Thanks in advance.
>
>
>
> Boying
>
>
>
>
>

Reply via email to