DEV Community

Discussion on: A Beginner's Reference to SQL vs. NoSQL

Collapse
 
octaneinteractive profile image
Wayne Smallman • Edited

I use MySQL for the actual data, Redis for sessions, caching, and as an ad hoc store for ephemeral data (read and write access to assets, as an example), and Elastic for search and analytics.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

Do you duplicate data for different types of database?

Collapse
 
jacobjzhang profile image
Jake Z.

There ends up being some overlap in most cases, especially if something like elastic search is used to look up Postgres records. However, they're not perfectly duplicate rows, usually different pieces of data referring to the same user/post/or other record.

Thread Thread
 
octaneinteractive profile image
Wayne Smallman

I have more or less the same data in Elastic as what's in MySQL (sans the HTML, stop words and such), and a similar scheme for the caching in Redis, so that's a fair bit of overlap.