by rbjorklin · 8y ago · 0 comments
ElasticSearch doesn't have ACID or very good OLTP manners. More importantly, it still continues to have data loss issues so it's not a good fit as a primary datastore.
I've never built something that did not need a relational database to model the domain, and search is such a common UX element that it's taken for granted in everything you use.
I can't even think of something that could use search that's not relational. Can you?
Yeah, so perhaps you don't have much experience from outside the relational model. Makes perfect sense to see a single truth then.
> I can't even think of something that could use search that's not relational. Can you?
Not sure how wide a blanket you're throwing by "not relational", but here are a couple examples that might fit: Google's search engine, most filesystems and their files, hierarchical and flat data structures in general, twitter.
Elasticsearch stores data in a JSON document store style format. So any situation where you need O(1) lookup for all data related to a particular entity you can have nested structures within JSON that facilitates this. In a RDBMS it is O(n) since you have to do a costly join for each embedded structure.
360 customer views are good example of this.