Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mysql Sync to Elastic Search #1

Open
prakritidev opened this issue Jul 23, 2018 · 3 comments
Open

Mysql Sync to Elastic Search #1

prakritidev opened this issue Jul 23, 2018 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@prakritidev
Copy link
Contributor

Need Help for MYSQL Sync to ElasticSearch.

@prakritidev
Copy link
Contributor Author

@kevivforever I want update on this. Give me time slot so that we can work on this together.

@prakritidev prakritidev added the help wanted Extra attention is needed label Jul 23, 2018
@prakritidev prakritidev changed the title Logstash config file. Mysql Sync to Elastic Search Jul 23, 2018
@prakritidev
Copy link
Contributor Author

I found this thing reliable than other methods. Let me know what do you think.

The best way is by making a script to synchronize yourself. Please do not use rivers, they are slow and non-reliable.
Add a "modified_at" column to your tables, a trigger to update this column every time you modify/insert data and make your script do queries like "SELECT * FROM XXX where modified_at >= '2015-10-01 00:00:00"
Take the data, transform into what's useful to you and next time you only synchronize what changed. This way you can easily handle relationships customizing your script. You now can make N queries after something is modified gathering all the relationships, by adding a queue you can scale to many machines doing the ETL (Extract, Transform, Load) operation into ES.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant