# Reindex 320 000 documents takes hours

**URL:** <https://discuss.elastic.co/t/reindex-320-000-documents-takes-hours/43231>\
**Category:** Elasticsearch\
**Created:** [March 2, 2016, 11:13am UTC](https://discuss.elastic.co/t/reindex-320-000-documents-takes-hours/43231 "2016-03-02T11:13:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hieu\_Dang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hieu_dang/32/8208_2.png) [@Hieu\_Dang](https://discuss.elastic.co/u/Hieu_Dang)\
**Post date:** [March 2, 2016, 11:13am UTC](https://discuss.elastic.co/t/reindex-320-000-documents-takes-hours/43231/1 "2016-03-02T11:13:24Z")

</div>

My project use Elastic Search for 320 000 documents, we need to reindex daily, but it takes hours for each time. I dont have much exp in ES so could you please help me:

1. it is nomarl to take such long time?
2. How to identify the problems and possible problems in this case

thanks a lot!

---

<div class="post-metadata">

**Author:** ![ywelsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ywelsch/32/7751_2.png) [@ywelsch](https://discuss.elastic.co/u/ywelsch)\
**Post date:** [March 2, 2016, 11:25am UTC](https://discuss.elastic.co/t/reindex-320-000-documents-takes-hours/43231/2 "2016-03-02T11:25:17Z")

</div>

A few thoughts here:

- Why do you need to reindex every day?
- Are you using the bulk API to index documents? ( [https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html) )

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 3, 2016, 6:46am UTC](https://discuss.elastic.co/t/reindex-320-000-documents-takes-hours/43231/3 "2016-03-03T06:46:12Z")

</div>

+1 to those comments.

Providing more details around why and how you are doing it would be useful.

---

<div class="post-metadata">

**Author:** ![Hieu\_Dang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hieu_dang/32/8208_2.png) [@Hieu\_Dang](https://discuss.elastic.co/u/Hieu_Dang)\
**Post date:** [March 7, 2016, 1:46am UTC](https://discuss.elastic.co/t/reindex-320-000-documents-takes-hours/43231/4 "2016-03-07T01:46:50Z")

</div>

sorry for unclear question (bow)  
I had time to review the problem,

1. it about the maintainance policy, not everyday.
2. the bottleneck here is when we query records from Mysql and send to ES. So now I cope with Mysql and logic problems.

thanks for answering!

And now I have a problem with ES 2.1 I will create another thread

---

<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 5, 2017, 11:10pm UTC](https://discuss.elastic.co/t/reindex-320-000-documents-takes-hours/43231/5 "2017-07-05T23:10:54Z")

</div>


