问题
I have the following setup :
- Mysql RDBMS server
- Elastic Search Server
My requirement is to copy data periodically from MYSQL RDBMS and update Elastic server with it.Currently i am following the approach below :
- A Batch Job which reads all data from MYSQL using Spring Data Jpa
- It then pushes all data to elastic server using spring data elastic
This approach is very cumbersome and not efficient.Is there a way where i can read only the updated values using spring data and update the index accordingly in elastic.
Using jdbc-river etc is not an option for me as the application uses Spring data elastic to get data and search over elastic search,with jdbc-river it will not be able to function properly i think.
来源:https://stackoverflow.com/questions/31999523/refreshing-the-elasticsearch-index-from-rdbms-using-spring-data