# Scroll query concurrently

**URL:** <https://discuss.elastic.co/t/scroll-query-concurrently/21872>\
**Category:** Elasticsearch\
**Created:** [January 28, 2015, 11:56am UTC](https://discuss.elastic.co/t/scroll-query-concurrently/21872 "2015-01-28T11:56:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shmish111](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shmish111/32/950_2.png) [@shmish111](https://discuss.elastic.co/u/shmish111)\
**Post date:** [January 28, 2015, 11:56am UTC](https://discuss.elastic.co/t/scroll-query-concurrently/21872/1 "2015-01-28T11:56:21Z")

</div>

Can I share a scroll id between multiple clients? If two clients ask the  
next batch of the scroll at the same time, will they get different results  
or is there a danger they will get duplicates? If there is no possibility  
of duplicates, I could share a scroll id across machines and process all  
records in my index in parallel...

--  
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/a8a50d19-8a36-4f06-ae46-bff91091daf3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a8a50d19-8a36-4f06-ae46-bff91091daf3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![shmish111](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shmish111/32/950_2.png) [@shmish111](https://discuss.elastic.co/u/shmish111)\
**Post date:** [February 1, 2015, 4:42pm UTC](https://discuss.elastic.co/t/scroll-query-concurrently/21872/2 "2015-02-01T16:42:57Z")

</div>

FYI, the answer is no.

I did a simple test using pmap to to make multiple scroll queries in  
parallel. Out of 500 results, there were only 221 distinct values, so more  
than half were duplicates 🙂

On Wednesday, January 28, 2015 at 12:56:21 PM UTC+1, David Smith wrote:

> Can I share a scroll id between multiple clients? If two clients ask the  
> next batch of the scroll at the same time, will they get different results  
> or is there a danger they will get duplicates? If there is no possibility  
> of duplicates, I could share a scroll id across machines and process all  
> records in my index in parallel...

--  
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/aec67ece-1c26-4de9-a6fb-dbe4dbb9af42%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/aec67ece-1c26-4de9-a6fb-dbe4dbb9af42%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:35am UTC](https://discuss.elastic.co/t/scroll-query-concurrently/21872/3 "2017-07-06T00:35:28Z")

</div>


