what is the better way to index data from Oracle/relational tables into elastic search?

前端 未结 2 1595
一生所求
一生所求 2021-02-04 15:49

What are the options to index large data from Oracle DB to elastic search cluster? Requirement is to index 300Million records one time into multiple indexes and

2条回答
  •  再見小時候
    2021-02-04 15:53

    We use ES as a reporting db and when new records are written to SQL we take the following action to get them into ES:

    1. Write the primary key into a queue (we use rabbitMQ)
    2. Rabbit picks up the primary key (when it has time) and queries the relation DB to get the info it needs and then writes the data into ES

    This process works great because it handles both new data and old data. For old data just write a quick script to write 300M primary keys into rabbit and you're done!

提交回复
热议问题