# From postgres to elastic for my website, which is running on php5.6

**URL:** <https://discuss.elastic.co/t/from-postgres-to-elastic-for-my-website-which-is-running-on-php5-6/191052>\
**Category:** Elasticsearch\
**Created:** [July 17, 2019, 3:51pm UTC](https://discuss.elastic.co/t/from-postgres-to-elastic-for-my-website-which-is-running-on-php5-6/191052 "2019-07-17T15:51:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shosek](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@shosek](https://discuss.elastic.co/u/shosek)\
**Post date:** [July 17, 2019, 3:51pm UTC](https://discuss.elastic.co/t/from-postgres-to-elastic-for-my-website-which-is-running-on-php5-6/191052/1 "2019-07-17T15:51:59Z")

</div>

Hello,

is possible (or good idea) transition from postgresql to elastic for my website, which is running with php 5.6? Or Is there a way to have postgres database and use elastic only for searching products in my shop (faster?)? How is it work? I mean actualization of data in json elastic database.

Or am I totally out about elastic use? 🙂

Thank you very much for any reaction and help.

BR,

Stan.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 17, 2019, 4:06pm UTC](https://discuss.elastic.co/t/from-postgres-to-elastic-for-my-website-which-is-running-on-php5-6/191052/2 "2019-07-17T16:06:34Z")

</div>

I shared most of my thoughts there: [http://david.pilato.fr/blog/2015/05/09/advanced-search-for-your-legacy-application/](http://david.pilato.fr/blog/2015/05/09/advanced-search-for-your-legacy-application/)

Basically, I'd recommend modifying the application layer if possible and send data to elasticsearch in the same "transaction" as you are sending your data to the database.

---

<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:** [August 14, 2019, 4:06pm UTC](https://discuss.elastic.co/t/from-postgres-to-elastic-for-my-website-which-is-running-on-php5-6/191052/3 "2019-08-14T16:06:42Z")

</div>

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