# Real time scrolling solution

**URL:** <https://discuss.elastic.co/t/real-time-scrolling-solution/140177>\
**Category:** Elasticsearch\
**Created:** [July 16, 2018, 3:23pm UTC](https://discuss.elastic.co/t/real-time-scrolling-solution/140177 "2018-07-16T15:23:32Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![xeraa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xeraa/32/48181_2.png) [@xeraa](https://discuss.elastic.co/u/xeraa)\
**Post date:** [July 17, 2018, 8:32pm UTC](https://discuss.elastic.co/t/real-time-scrolling-solution/140177/21 "2018-07-17T20:32:46Z")

</div>

> [@TameemSamawi](#):
>
> In our use case, the results will be used by a system to perform calculations that are immediately important. The user does nothing with them, a system uses them.

Just to make sure we're not missing the obvious: There's no way to do that calculation as an aggregation (maybe with scripting if there is no other way)?  
Retrieving 3 million documents to do a calculation on them will probably never be very fast and it feels like shovelling a lot of documents around, which might not even be necessary.

---

<div class="post-metadata">

**Author:** ![TameemSamawi](https://avatars.discourse-cdn.com/v4/letter/t/a3d4f5/32.png) [@TameemSamawi](https://discuss.elastic.co/u/TameemSamawi)\
**Post date:** [July 17, 2018, 8:51pm UTC](https://discuss.elastic.co/t/real-time-scrolling-solution/140177/22 "2018-07-17T20:51:03Z")

</div>

No unfortunately not, the calculation is a little more involved than aggregations, that's good thinking though.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 17, 2018, 9:20pm UTC](https://discuss.elastic.co/t/real-time-scrolling-solution/140177/23 "2018-07-17T21:20:04Z")

</div>

Is there any computation you can do at index time so you can use then standard APIs, pipeline aggregation or scripts?

---

<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:** [August 14, 2018, 9:20pm UTC](https://discuss.elastic.co/t/real-time-scrolling-solution/140177/24 "2018-08-14T21:20:09Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.

[Previous page](https://discuss.elastic.co/t/real-time-scrolling-solution/140177.md?page=1)
