# Spark read from elasticsearch and different indexes, the speed of reading is five times worse

**URL:** <https://discuss.elastic.co/t/spark-read-from-elasticsearch-and-different-indexes-the-speed-of-reading-is-five-times-worse/151765>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [October 10, 2018, 6:55am UTC](https://discuss.elastic.co/t/spark-read-from-elasticsearch-and-different-indexes-the-speed-of-reading-is-five-times-worse/151765 "2018-10-10T06:55:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stupidsky](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stupidsky/32/34851_2.png) [@stupidsky](https://discuss.elastic.co/u/stupidsky)\
**Post date:** [October 10, 2018, 6:55am UTC](https://discuss.elastic.co/t/spark-read-from-elasticsearch-and-different-indexes-the-speed-of-reading-is-five-times-worse/151765/1 "2018-10-10T06:55:55Z")

</div>

spark read from elasticsearch and different indexes, the speed of reading is five times worse.  
spark 2.2.0,elasticsearch 6.0.0.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/c/9c394e209279df52ca3d89924bb997343522161d.png)  
1 task contains about one hundred thousand data.  
The two data of indexs are about the same size.

---

<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:** [November 7, 2018, 6:55am UTC](https://discuss.elastic.co/t/spark-read-from-elasticsearch-and-different-indexes-the-speed-of-reading-is-five-times-worse/151765/2 "2018-11-07T06:55:56Z")

</div>

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