TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Have you had to switch / compensate your NoSQL DB with a relational DB?

8 pointsby vishaldpatelover 9 years ago
Hey all,<p>I&#x27;m a long time Rails developer who has been on the MySQL &#x2F; Postgres + Ruby&#x2F;Rails + Redis stack. I&#x27;ve been playing with Node.js lately, and it seems that the Node community loves NoSQL.<p>I&#x27;d love to learn about projects that started out NoSQL, because of it&#x27;s advantages of speed and scale but had to turn to a relational database for it&#x27;s advantages - advanced querying, data integrity etc.<p>Thanks!

4 comments

davismwflover 9 years ago
Some data is just relational and works better when normalized and properly stored in a rdbms. This is especially true for data which you might want to give ad hoc reporting capabilities to.<p>So yes, we use both relational and nosql and both have their place. My 2 cents is start with the data, figure how and who the consumers are and how to best structure data for them then pick the most appropriate database. In some cases we have data start in mongo and then it gets processed further, refined and then ultimately dumped in MySQL for reporting and ad hoc queries.
sdegutisover 9 years ago
In our Clojure web app, we started out using MongoDB, and eventually we migrated to Datomic. It&#x27;s a nice compromise between relational DBs like SQL, and &quot;dynamic&quot; DBs like NoSQL. So far it&#x27;s been a huge performance win. Queries are faster here because we have relational data, and we don&#x27;t do too many writes, so the trade-off worked perfectly for us. Plus, the API is way nicer to work with than SQL-based anything.
mmaunderover 9 years ago
Relational DB&#x27;s are very useful. So are nosql DB&#x27;s, just for different tasks. We use memcached, redis and mysql and couldn&#x27;t live without any of them.
aprdmover 9 years ago
Now a days with Postgres support of JSON, can&#x27;t you build your NoSQL thingy around Postgres?
评论 #10658721 未加载
评论 #10657543 未加载