You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Eunsu Kim <eu...@gmail.com> on 2018/01/02 02:22:34 UTC

Re: How to get page id without transmitting data to client

Thank you for your response. happy new year


> On 30 Dec 2017, at 5:33 AM, Andy Tolbert <an...@datastax.com> wrote:
> 
> Hi Eunsu,
> 
> Unfortunately there is not really a way to do this that I'm aware of.  The page id contains data indicating where to start reading the next set of rows (such as partition and clustering information), and in order to get to that position you have to actually read the data.
> 
> The driver does have an API for manually specifying the page id to use and we've documented some strategies <https://docs.datastax.com/en/developer/java-driver/3.3/manual/paging/#saving-and-reusing-the-paging-state> for storing and reusing the page id later, but not sure if that helps for your particular use case.
> 
> Thanks,
> Andy
> 
> On Thu, Dec 28, 2017 at 9:11 PM, Eunsu Kim <eunsu.bill23@gmail.com <ma...@gmail.com>> wrote:
> Hello everybody,
> 
> I am using the datastax Java driver (3.3.0).
> 
> When query large amounts of data, we set the fetch size (10000) and transmit the data to the browser on a page-by-page basis.
> 
> I am wondering if I can get the page id without receiving the real rows from the cassandra to my server.
> 
> I only need 100 in front of 100,000. But I want the next page to be 100001th.
> 
> If you have a good idea, please share it.
> 
> Thank you.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@cassandra.apache.org <ma...@cassandra.apache.org>
> For additional commands, e-mail: user-help@cassandra.apache.org <ma...@cassandra.apache.org>
> 
>