# Quick Synchronization with ElasticSearch

**URL:** <https://discuss.elastic.co/t/quick-synchronization-with-elasticsearch/158629>\
**Category:** Elasticsearch\
**Created:** [November 28, 2018, 5:46pm UTC](https://discuss.elastic.co/t/quick-synchronization-with-elasticsearch/158629 "2018-11-28T17:46:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomTom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomtom/32/3676_2.png) [@TomTom](https://discuss.elastic.co/u/TomTom)\
**Post date:** [November 28, 2018, 5:46pm UTC](https://discuss.elastic.co/t/quick-synchronization-with-elasticsearch/158629/1 "2018-11-28T17:46:58Z")

</div>

My question is no problem related to ElasticSearch, but rather a way to improve my use with it.

Today I work with a PHP script that runs via cron every 1 minute, this script reads the latest updates from my database, handles the data and sends them to ElasticSearch.

I do this in order to avoid delay after the user inserts the data, and as there are several data sources it is easier to centralize everything.

However, since this procedure occurs only every 1 minute, it is a little time consuming for the user to have reports and searches with more reliable results.

What do you suggest to speed up this procedure?

---

<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:** [November 28, 2018, 8:59pm UTC](https://discuss.elastic.co/t/quick-synchronization-with-elasticsearch/158629/2 "2018-11-28T20:59:16Z")

</div>

Can you feed the data that goes into the database directly to Elasticsearch at the same time?

---

<div class="post-metadata">

**Author:** ![TomTom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomtom/32/3676_2.png) [@TomTom](https://discuss.elastic.co/u/TomTom)\
**Post date:** [November 29, 2018, 10:54am UTC](https://discuss.elastic.co/t/quick-synchronization-with-elasticsearch/158629/3 "2018-11-29T10:54:29Z")

</div>

> [@warkolm](#):
>
> Can you feed the data that goes into the database directly to Elasticsearch at the same time?

Unfortunately, back end would not be possible. Because there are several places that perform insertion / update of this data, and the method of synchronization is very complex, it would be impractical to keep it everywhere.

This also prevents the system from stopping if the Elasticsearch server slows or stops

---

<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 27, 2018, 10:54am UTC](https://discuss.elastic.co/t/quick-synchronization-with-elasticsearch/158629/4 "2018-12-27T10:54:35Z")

</div>

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