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: What to use instead of MongoDB?

3 pointsby nikonabout 11 years ago
If MongoDB is regarded as a poor product[1,2,3] then what should one use instead?<p>I feed a document database is the correct decision for my domain, so would prefer to choose a superior product now rather than regret it later.<p>[1] http:&#x2F;&#x2F;pastebin.com&#x2F;raw.php?i=FD3xe6Jt [2] http:&#x2F;&#x2F;mcfunley.com&#x2F;why-mongodb-never-worked-out-at-etsy [3] http:&#x2F;&#x2F;www.sarahmei.com&#x2F;blog&#x2F;2013&#x2F;11&#x2F;11&#x2F;why-you-should-never-use-mongodb&#x2F;

7 comments

aceetumabout 11 years ago
Your &quot;poor product&quot; examples are really poor.<p>[1] <a href="http://pastebin.com/FD3xe6Jt" rel="nofollow">http:&#x2F;&#x2F;pastebin.com&#x2F;FD3xe6Jt</a> was debunked in 2011 when it first appeared.<p>[2] The Etsy article from 2012 had the major point &quot;if you are considering Mongo plus another database like MySQL, then in all likelihood you shouldn&#x27;t do it [...] Keep in mind that almost none of this is specific to MongoDB. I wouldn&#x27;t discourage anyone from trying Mongo out if they&#x27;re starting a new site&quot;<p>[3] As one commentator stated, &quot;don&#x27;t use a non-relational store when you have relational data.&quot;<p>The most important thing you need to do is probably confirm your feeling regarding a document database being the correct decision for your domain. [2] and [3] concluded by using MySQL rather than MongoDB, but for different reasons. Why do you think a not-MongoDB, but not-SQL database is correct for you?
nmcabout 11 years ago
How can you expect an answer about a storage system without giving us a detailed use-case?<p>One of the main reasons MongoDB is regarded as a poor product is because people try to use it in completely inappropriate situations. OK, MongoDB has some bad design choices, but it can be an interesting system in some cases.
wilsonfiifiabout 11 years ago
Honestly Mongodb is as good as it gets if you want to query your JSON data. Yes it might have a few challenges when it comes to scalability and disk usage but I don&#x27;t think its anything that can&#x27;t be addressed with a carefully thought out architecture. I believe Tokutek with TokuMX is addressing some of the shortcomings of Mongodb. Though I&#x27;m a bit surprised that 10gen hasn&#x27;t officially commented on Tokutek&#x27;s contribution.<p>The other NoSQL solutions that would come close are CouchDB and RavenDB. I haven&#x27;t tried the latter but CouchDB doesn&#x27;t allow easy adhoc querying and you really have to give some thought to your Map&#x2F;Reduce Views&#x2F;Scripts.<p>CouchDB is great because it also allows you to attach binary content to your JSON documents so it&#x27;s great as a CMS backend but as I mentioned before, querying your data isn&#x27;t as pleasant as with Mongodb.<p>Now Mongodb does have GridFS for binary data storage but it isn&#x27;t IMHO as simple to use compared to CouchDB&#x27;s &#x27;Attachments&#x27;.
nikonabout 11 years ago
The product is an aggregator of sorts, very flat domain. The only thing apart from the items being collected are categories which are denormalized on aggregation - they have a short lifespan anyway.<p>RE: Write&#x2F;Read&#x2F;Update heavy, it&#x27;s going to be a mixture. Once users are present it will be read heavy. The backend is constantly collecting new data and updating if changes are spotted.<p>I&#x27;m 99% certain a document database&#x2F; non-relational approach is suitable here. I have nothing against MongoDB - I just want to make these decisions now. I&#x27;ve enjoyed using it so far.<p>Thanks for feedback!
vijucatabout 11 years ago
Write-heavy, read-heavy, update-heavy, or all?<p>Consistent world-view or quick answers?<p>Gigabytes per day or terabytes per day?<p>Is the Time axis important? Do you need to go back in time and query the state of the world? Do you need queries that relate the state of the world in two different points of time?<p>Hmm, I should probably be charging you for this! :-) I&#x27;m distilling years down the rabbit hole into these paragraphs + saving you months of discovery.
ddorian43about 11 years ago
Better is to say these are my requirements and ask for what should i use ?
mattwritescodeabout 11 years ago
CouchDb?