# Using elasticsearch for large DS Sorting

**URL:** <https://discuss.elastic.co/t/using-elasticsearch-for-large-ds-sorting/20743>\
**Category:** Elasticsearch\
**Created:** [November 14, 2014, 7:15am UTC](https://discuss.elastic.co/t/using-elasticsearch-for-large-ds-sorting/20743 "2014-11-14T07:15:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Purvesh\_P](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@Purvesh\_P](https://discuss.elastic.co/u/Purvesh_P)\
**Post date:** [November 14, 2014, 7:15am UTC](https://discuss.elastic.co/t/using-elasticsearch-for-large-ds-sorting/20743/1 "2014-11-14T07:15:08Z")

</div>

Hi,

I'm using elasticsearch for storing and fetching sorted data. The data-set  
has \>1 Million documents of 10 columns and new documents are continuously  
indexed by reading .csv files. Problem is that whenever new documents are  
indexed then I fire a blank query with the sort to get the sorted primary  
keys and then I have to replace all data in my grid view with the new data.  
So I was asking if there's a way to get the position/index where the new  
documents were inserted so that I can add them directly to their positions  
in my grid instead of replacing the complete data set. Also it will save me  
cost to fetch ~ 1 Million sorted docs every time 1 or 2 documents are  
inserted or deleted from index.

Thanks in advance.

--  
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/ce74ede5-3cf7-4807-a89c-289a79deb397%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ce74ede5-3cf7-4807-a89c-289a79deb397%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:50am UTC](https://discuss.elastic.co/t/using-elasticsearch-for-large-ds-sorting/20743/2 "2017-07-06T00:50:01Z")

</div>


