# Slow querying of Elasticsearch data using Python

**URL:** <https://discuss.elastic.co/t/slow-querying-of-elasticsearch-data-using-python/156231>\
**Category:** Elasticsearch\
**Created:** [November 12, 2018, 5:55am UTC](https://discuss.elastic.co/t/slow-querying-of-elasticsearch-data-using-python/156231 "2018-11-12T05:55:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![josephmanalo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/josephmanalo/32/38163_2.png) [@josephmanalo](https://discuss.elastic.co/u/josephmanalo)\
**Post date:** [November 12, 2018, 5:55am UTC](https://discuss.elastic.co/t/slow-querying-of-elasticsearch-data-using-python/156231/1 "2018-11-12T05:55:26Z")

</div>

Hi. I would like to ask for advice. I'm just new to Elasticsearch.  
I'm using Python to **GET and PROCESS data** from Elasticsearch.  
But I'm having a hard time in retrieving data from Elasticsearch...

It took me 15 hours to get 3M rows of data.  
Here's the snapshot of my code and it's result

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/8/481f0e2244786c08ead46ef83c363b41befa96c2.png)

This is my query:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/4/e479beac763a53c176a57309642549b63cd7ae0e.png)

Any help guys on how will I be able to retrieve millions of data faster?

---

<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:** [December 10, 2018, 5:59am UTC](https://discuss.elastic.co/t/slow-querying-of-elasticsearch-data-using-python/156231/2 "2018-12-10T05:59:38Z")

</div>

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