# Pagination of continuously updating data

**URL:** <https://discuss.elastic.co/t/pagination-of-continuously-updating-data/14235>\
**Category:** Elasticsearch\
**Created:** [November 3, 2013, 6:33pm UTC](https://discuss.elastic.co/t/pagination-of-continuously-updating-data/14235 "2013-11-03T18:33:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_3](https://avatars.discourse-cdn.com/v4/letter/b/e36b37/32.png) [@Ben\_3](https://discuss.elastic.co/u/Ben_3)\
**Post date:** [November 3, 2013, 6:33pm UTC](https://discuss.elastic.co/t/pagination-of-continuously-updating-data/14235/1 "2013-11-03T18:33:20Z")

</div>

I am new to ES and have a requirement to store real-time data streams. This  
is time-stamp based data.

Can anyone advise on the best way to support pagination given that the  
results set will be updating continuously?

I understand that Twitter and Facebook etc use cursor based pagination. I  
was wondering if there was a similar concept within ES?

Many thanks, Ben.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)\
**Post date:** [November 4, 2013, 5:27pm UTC](https://discuss.elastic.co/t/pagination-of-continuously-updating-data/14235/2 "2013-11-04T17:27:19Z")

</div>

Hi Ben,  
you can use a scroll search and keep in memory a certain point-in-time  
snapshot of the index so that you get consistent pagination. It might be  
expensive though. Check it out:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

.

On Sunday, November 3, 2013 7:33:20 PM UTC+1, Ben wrote:

> I am new to ES and have a requirement to store real-time data streams.  
> This is time-stamp based data.
> 
> Can anyone advise on the best way to support pagination given that the  
> results set will be updating continuously?
> 
> I understand that Twitter and Facebook etc use cursor based pagination. I  
> was wondering if there was a similar concept within ES?
> 
> Many thanks, Ben.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ben\_3](https://avatars.discourse-cdn.com/v4/letter/b/e36b37/32.png) [@Ben\_3](https://discuss.elastic.co/u/Ben_3)\
**Post date:** [November 4, 2013, 5:35pm UTC](https://discuss.elastic.co/t/pagination-of-continuously-updating-data/14235/3 "2013-11-04T17:35:56Z")

</div>

Thanks Luca.

I noticed on that page:

Scrolling is not intended for real time user requests

> 

Unfortunately that's exactly what I require i.e. user driven request via  
another API. I think I may have to look for some sort of time based  
pagination instead.

Regards, Ben.

On Monday, November 4, 2013 5:27:19 PM UTC, Luca Cavanna wrote:

> Hi Ben,  
> you can use a scroll search and keep in memory a certain point-in-time  
> snapshot of the index so that you get consistent pagination. It might be  
> expensive though. Check it out:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-scroll.html).
> 
> On Sunday, November 3, 2013 7:33:20 PM UTC+1, Ben wrote:
> 
> > I am new to ES and have a requirement to store real-time data streams.  
> > This is time-stamp based data.
> > 
> > Can anyone advise on the best way to support pagination given that the  
> > results set will be updating continuously?
> > 
> > I understand that Twitter and Facebook etc use cursor based pagination. I  
> > was wondering if there was a similar concept within ES?
> > 
> > Many thanks, Ben.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![webish](https://avatars.discourse-cdn.com/v4/letter/w/919ad9/32.png) [@webish](https://discuss.elastic.co/u/webish)\
**Post date:** [October 10, 2014, 4:51am UTC](https://discuss.elastic.co/t/pagination-of-continuously-updating-data/14235/4 "2014-10-10T04:51:52Z")

</div>

Any luck Ben?

Looks like I posted a similar question.

[https://groups.google.com/forum/#!topic/elasticsearch/mUwfSQvKnDw](https://groups.google.com/forum/#!topic/elasticsearch/mUwfSQvKnDw)

On Sunday, November 3, 2013 1:33:20 PM UTC-5, Ben wrote:

> I am new to ES and have a requirement to store real-time data streams.  
> This is time-stamp based data.
> 
> Can anyone advise on the best way to support pagination given that the  
> results set will be updating continuously?
> 
> I understand that Twitter and Facebook etc use cursor based pagination. I  
> was wondering if there was a similar concept within ES?
> 
> Many thanks, Ben.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1fe5a16e-4df0-4436-8e8d-153212e336f7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1fe5a16e-4df0-4436-8e8d-153212e336f7%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:57am UTC](https://discuss.elastic.co/t/pagination-of-continuously-updating-data/14235/5 "2017-07-06T00:57:09Z")

</div>


