S
S
stainer2021-10-18 16:59:59
MySQL
stainer, 2021-10-18 16:59:59

How to switch from mysql to elasticsearch?

Good afternoon, there is a rather difficult task, I would like to hear the opinion of experts. :)
There is a highly loaded project based on mysql, due to the growth, the speed of working with the database decreases.
There is an idea to switch to elasticsearch.
Actually, I want to understand the sequence of actions, especially when transferring, and how to organize the structure?
What about indexes and joins?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ipatiev, 2021-10-18
@Fockker

No way. You can't "move" from a database to a search engine.
You can make a search service that will index information taken from the database
Based on this service, make a full-text and faceted search.
Leave the current database as is. Only optimize requests so that "the speed of work does not decrease"

L
Lazy @BojackHorseman MySQL, 2021-10-18
Tag

long and hard work.
do you really need it?

N
Nam Zanilla, 2021-10-20
@sadsdasdasdsadsadsadsadsa

It is not desirable to store important data in elasticsearch as the main database, although I think it is possible. I would recommend that you first try to optimize mysql, and where there are heavy queries, for example, a lot of joins, groupings, sortings, etc. index in es and search there already. In any case, you will have to do these brake queries in mysql, but you will only do them at the stage of indexing es

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question