# Updating Elastic search index along with DB

**URL:** https://discuss.elastic.co/t/updating-elastic-search-index-along-with-db/21333
**Category:** Elasticsearch
**Created:** [December 19, 2014, 5:13pm UTC](https://discuss.elastic.co/t/updating-elastic-search-index-along-with-db/21333 "2014-12-19T17:13:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![teseter](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@teseter](https://discuss.elastic.co/u/teseter)
#### Post date: [December 19, 2014, 5:13pm UTC](https://discuss.elastic.co/t/updating-elastic-search-index-along-with-db/21333/1 "2014-12-19T17:13:55Z")

</div>

Hi

To fasten the search operations we are planning to use Elastic search for  
transactional data. Data has to be fed into Elastic search from DB. The  
main problem which we are foreseeing is to keep the data in synch between  
ES and DB as the transactional data can be updated. We are looking for ways  
to update the ES index after the transaction data is updated successfully  
to avoid showing the stale data from ES.

We are looking for different solution options to achieve the same. if  
anybody has worked on similar requirement please do let us know.

We are using Oracle DB? Should we use Oracle AQ on the database side or  
some Java JMS Q to update Elastic search index.

Also we want to know when we update ES index will all the shards  
automatically get updated?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b63b2347-700b-4bc0-a5a8-09a8c3b4681e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b63b2347-700b-4bc0-a5a8-09a8c3b4681e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)
#### Post date: [December 22, 2014, 3:57am UTC](https://discuss.elastic.co/t/updating-elastic-search-index-along-with-db/21333/2 "2014-12-22T03:57:25Z")

</div>

Hi ,  
You cna use JDBC river to bridge ES and DB -

> **[GitHub - jprante/elasticsearch-jdbc: JDBC importer for Elasticsearch](https://github.com/jprante/elasticsearch-jdbc)**
>
> JDBC importer for Elasticsearch. Contribute to jprante/elasticsearch-jdbc development by creating an account on GitHub.

Only data inside the DB would flow to ES.

Thanks  
Vineeth

On Fri, Dec 19, 2014 at 10:43 PM, teseter [iamravi79@gmail.com](mailto:iamravi79@gmail.com) wrote:

> Hi
> 
> To fasten the search operations we are planning to use Elastic search for  
> transactional data. Data has to be fed into Elastic search from DB. The  
> main problem which we are foreseeing is to keep the data in synch between  
> ES and DB as the transactional data can be updated. We are looking for ways  
> to update the ES index after the transaction data is updated successfully  
> to avoid showing the stale data from ES.
> 
> We are looking for different solution options to achieve the same. if  
> anybody has worked on similar requirement please do let us know.
> 
> We are using Oracle DB? Should we use Oracle AQ on the database side or  
> some Java JMS Q to update Elastic search index.
> 
> Also we want to know when we update ES index will all the shards  
> automatically get updated?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/b63b2347-700b-4bc0-a5a8-09a8c3b4681e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b63b2347-700b-4bc0-a5a8-09a8c3b4681e%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/b63b2347-700b-4bc0-a5a8-09a8c3b4681e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b63b2347-700b-4bc0-a5a8-09a8c3b4681e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DgJ5xjKNgaVt3vU6RYfasBE5JMi0OJeWHzBPjdtpuQRA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DgJ5xjKNgaVt3vU6RYfasBE5JMi0OJeWHzBPjdtpuQRA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![teseter](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@teseter](https://discuss.elastic.co/u/teseter)
#### Post date: [December 22, 2014, 8:23am UTC](https://discuss.elastic.co/t/updating-elastic-search-index-along-with-db/21333/3 "2014-12-22T08:23:10Z")

</div>

Hi,  
Rivers are going to be deprecated as i read somewhere and doesn't seem to  
be scalable solution.

Thanks  
Ravi

On Mon, Dec 22, 2014 at 9:27 AM, vineeth mohan [vm.vineethmohan@gmail.com](mailto:vm.vineethmohan@gmail.com)  
wrote:

> Hi ,  
> You cna use JDBC river to bridge ES and DB -  
> [GitHub - jprante/elasticsearch-jdbc: JDBC importer for Elasticsearch](https://github.com/jprante/elasticsearch-river-jdbc)  
> Only data inside the DB would flow to ES.
> 
> Thanks  
> Vineeth
> 
> On Fri, Dec 19, 2014 at 10:43 PM, teseter [iamravi79@gmail.com](mailto:iamravi79@gmail.com) wrote:
> 
> > Hi
> > 
> > To fasten the search operations we are planning to use Elastic search  
> > for transactional data. Data has to be fed into Elastic search from DB. The  
> > main problem which we are foreseeing is to keep the data in synch between  
> > ES and DB as the transactional data can be updated. We are looking for ways  
> > to update the ES index after the transaction data is updated successfully  
> > to avoid showing the stale data from ES.
> > 
> > We are looking for different solution options to achieve the same. if  
> > anybody has worked on similar requirement please do let us know.
> > 
> > We are using Oracle DB? Should we use Oracle AQ on the database side or  
> > some Java JMS Q to update Elastic search index.
> > 
> > Also we want to know when we update ES index will all the shards  
> > automatically get updated?
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/b63b2347-700b-4bc0-a5a8-09a8c3b4681e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b63b2347-700b-4bc0-a5a8-09a8c3b4681e%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/b63b2347-700b-4bc0-a5a8-09a8c3b4681e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b63b2347-700b-4bc0-a5a8-09a8c3b4681e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/i5npeA6lbZg/unsubscribe](https://groups.google.com/d/topic/elasticsearch/i5npeA6lbZg/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DgJ5xjKNgaVt3vU6RYfasBE5JMi0OJeWHzBPjdtpuQRA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DgJ5xjKNgaVt3vU6RYfasBE5JMi0OJeWHzBPjdtpuQRA%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DgJ5xjKNgaVt3vU6RYfasBE5JMi0OJeWHzBPjdtpuQRA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DgJ5xjKNgaVt3vU6RYfasBE5JMi0OJeWHzBPjdtpuQRA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAG%3DF\_BKKeyz7wWvBCJFUaZW\_Hyzy5ruU7wJd%3DPwmptgYJH2KmQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAG%3DF_BKKeyz7wWvBCJFUaZW_Hyzy5ruU7wJd%3DPwmptgYJH2KmQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)
#### Post date: [December 22, 2014, 10:00am UTC](https://discuss.elastic.co/t/updating-elastic-search-index-along-with-db/21333/4 "2014-12-22T10:00:22Z")

</div>

This is a JDBC plugin, not only a river.

You can use both JDBC river and feeder mode (logstash-like).

Both modes will be supported for a long time by JDBC plugin, even if  
official ES river API disappears.

Jörg

On Mon, Dec 22, 2014 at 9:23 AM, Anupindi RaviShankar [iamravi79@gmail.com](mailto:iamravi79@gmail.com)  
wrote:

> Hi,  
> Rivers are going to be deprecated as i read somewhere and doesn't seem to  
> be scalable solution.
> 
> Thanks  
> Ravi
> 
> On Mon, Dec 22, 2014 at 9:27 AM, vineeth mohan [vm.vineethmohan@gmail.com](mailto:vm.vineethmohan@gmail.com)  
> wrote:
> 
> > Hi ,  
> > You cna use JDBC river to bridge ES and DB -  
> > [GitHub - jprante/elasticsearch-jdbc: JDBC importer for Elasticsearch](https://github.com/jprante/elasticsearch-river-jdbc)  
> > Only data inside the DB would flow to ES.
> > 
> > Thanks  
> > Vineeth
> > 
> > On Fri, Dec 19, 2014 at 10:43 PM, teseter [iamravi79@gmail.com](mailto:iamravi79@gmail.com) wrote:
> > 
> > > Hi
> > > 
> > > To fasten the search operations we are planning to use Elastic search  
> > > for transactional data. Data has to be fed into Elastic search from DB. The  
> > > main problem which we are foreseeing is to keep the data in synch between  
> > > ES and DB as the transactional data can be updated. We are looking for ways  
> > > to update the ES index after the transaction data is updated successfully  
> > > to avoid showing the stale data from ES.
> > > 
> > > We are looking for different solution options to achieve the same. if  
> > > anybody has worked on similar requirement please do let us know.
> > > 
> > > We are using Oracle DB? Should we use Oracle AQ on the database side or  
> > > some Java JMS Q to update Elastic search index.
> > > 
> > > Also we want to know when we update ES index will all the shards  
> > > automatically get updated?
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/b63b2347-700b-4bc0-a5a8-09a8c3b4681e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b63b2347-700b-4bc0-a5a8-09a8c3b4681e%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/b63b2347-700b-4bc0-a5a8-09a8c3b4681e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b63b2347-700b-4bc0-a5a8-09a8c3b4681e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/i5npeA6lbZg/unsubscribe](https://groups.google.com/d/topic/elasticsearch/i5npeA6lbZg/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DgJ5xjKNgaVt3vU6RYfasBE5JMi0OJeWHzBPjdtpuQRA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DgJ5xjKNgaVt3vU6RYfasBE5JMi0OJeWHzBPjdtpuQRA%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DgJ5xjKNgaVt3vU6RYfasBE5JMi0OJeWHzBPjdtpuQRA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DgJ5xjKNgaVt3vU6RYfasBE5JMi0OJeWHzBPjdtpuQRA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAG%3DF\_BKKeyz7wWvBCJFUaZW\_Hyzy5ruU7wJd%3DPwmptgYJH2KmQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAG%3DF_BKKeyz7wWvBCJFUaZW_Hyzy5ruU7wJd%3DPwmptgYJH2KmQ%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAG%3DF\_BKKeyz7wWvBCJFUaZW\_Hyzy5ruU7wJd%3DPwmptgYJH2KmQ%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAG%3DF_BKKeyz7wWvBCJFUaZW_Hyzy5ruU7wJd%3DPwmptgYJH2KmQ%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGFr9vjnQa3vcfaCrrmxD8Ztr1XAUzoVe5GQaTZajqigQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGFr9vjnQa3vcfaCrrmxD8Ztr1XAUzoVe5GQaTZajqigQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:42am UTC](https://discuss.elastic.co/t/updating-elastic-search-index-along-with-db/21333/5 "2017-07-06T00:42:23Z")

</div>


