B
B
bio2016-03-22 06:29:56
MySQL
bio, 2016-03-22 06:29:56

How to design a search architecture?

Good afternoon!
Tell me how best to organize:

  1. Keep only the information you need for searching in elastic indexes. In the search results, pull out only the id of documents. Search by id in mysql and give to the client.
  2. Store indexes elastica all information. According to the search results, immediately give to the client.

Which of the options is more productive, more reliable?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
U
un1t, 2016-03-22
@un1t

Storing data in elastic is a bad idea in my opinion. Use it only for searching.

S
spotifi, 2016-05-20
@spotifi

Option 2 is faster.
we have primary data in a general purpose database.
search - in specialized.
but when he finds it, he takes it from a specialized one.
however, the presence of primary data in a general-purpose database allows you to sleep peacefully.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question