Google SWE teaches systems design | EP27: Search Indexes

preview_player
Показать описание
Could use a search index for my chode, its so small I can't even find it sometimes

Also, since I forgot to mention it: do not use ElasticSearch as your main database solution. It does not support multidocument transactions even on the same cluster. Furthermore, writes are not instantly available due to the second long period before they are flushed to indexes. Even further, the large amounts of caching results in some older data being returned sometimes. The biggest reason ultimately though is that updating a document means that all of the relevant inverse indexes have to be updated, which is a pain in the fucking ass.

Recommended Reading/Viewing:
Рекомендации по теме
Комментарии
Автор

Great video. Side note, I realized that some Leetcode questions help in understanding this concept (Edit Distance, Start and End of a value in a Sorted List, etc.)

mnchester
Автор

Hello, I believe elastic-search does not use LSM-tree for its architecture, but a similar approach using segment compaction on its inverted index data-structure. Can we correct this info for other users? Other than that great content! I've learned a lot from your videos.

mihnsmithvu
Автор

Can someone provide clarification on this - when we mention at 1:49 that we write first to an in-memory buffer, does it mean we're updating the LSM tree that we maintain in memory?

AnujNagpall