News for hackers. Stuff that matters.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by rpedela on Friday October 04, 2013 @09:36AM (#6495240)
Is MongoDB going to fix their scalability, performance, JOIN, and data type support problems with the money? Seems like a bad investment to me since a lot of developers are starting to move away from it because of those problems and others.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by throwaway8199 on Friday October 04, 2013 @12:49PM (#6496450)
MongoDB accounted for ~90% of my startup's downtime in its first year of existence. We switched away to MYSQL and suddenly scalability concerns retreated into the future.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by joelhaasnoot on Friday October 04, 2013 @09:59AM (#6495372)
For every developer you hear that has problems with Mongo, there are probably 5 that are fine with certain downsides.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by orthecreedence on Friday October 04, 2013 @02:27PM (#6497053)
You're right. It's easy to compile, configure, and start on a dev VPS. It's easy to fill with data and easy to query.

This is the sweet spot: when MongoDB is on a dev VPS and you're building a small product around it. Most devs don't have to worry about the next step.

Then you push everything live. If you're lucky enough to get any real traffic, everything other than 99% read crumbles. You scramble to shard but realize that sharding just doesn't work well, and is incredibly complicated to set up.

Then you start losing data...because the drivers are programmed to not fucking check if the data you sent was actually written (yes, I know, this is fixed). Ok, you set your driver on your flopping app to validate writes, and BAM there goes 80% of the write performance 10gen promised you.

The solution? Just add more shards!! Ok, so now I have 4 shards, each with 3 repsets + 3 config servers. 4 * 3 + 3 = 15. Fifteen servers to handle what one MySQL server could do in its sleep.

Conclusion: MongoDB is terrific as a write-only, developer friendly database that you will never have to scale, ever.

Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by nasalgoat on Friday October 04, 2013 @03:02PM (#6497262)
I wish I could upvote this comment more. I have to run over a hundred instances of MongoDB to equal the performance I could get from ten Postgres boxes, but now we have such massive lock-in on MongoDB we can't easily refactor.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by jeltz on Friday October 04, 2013 @03:16PM (#6497345)
Would it be possible for you to write a wrapper and use the Mongo API against another DB?
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by nasalgoat on Friday October 04, 2013 @03:28PM (#6497410)
The main issue is it being a JSON document store, and our application being designed around that and using the very specific MongoDB queries that involves.

Any wrapper would likely be worse than just keeping MongoDB.

Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by Two9A on Friday October 04, 2013 @04:23PM (#6497702)
Heh, do you work at my place?

We have the exact same issues with Mongo-specific queries. Even worse, our indexing regime (because we store relational data in Mongo) demands that we stick with Mongo 1.8, so all the comparative goodness of 2.x is lost.

And just this week, it was determined that there won't be any migration from Mongo to something-SQL in the near future, because it'd be too risky to attempt to translate a schema that's half foreign keys, half embedded JSON.

Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by gazarsgo on Friday October 04, 2013 @07:58PM (#6498801)
Can't you just jam the data into Postgres JSON columns? :)
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by gaius on Saturday October 05, 2013 @05:20AM (#6500094)
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by omni on Friday October 04, 2013 @10:26AM (#6495527)
Can you point me to an article that explains why you would want JOINs in a NoSQL database to begin with? I thought the entire point was to denormalize your data. I keep seeing this point brought up, but it reads to me like a misguided complaint stemming from misunderstanding how to apply the tech.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by troyk on Friday October 04, 2013 @10:58AM (#6495709)
The rethinkdb guys think it's important and have joins in their nosql product. Everytime I try nosql first thing I miss is the ability to query as the need arises without a refactor.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by danudey on Friday October 04, 2013 @12:57PM (#6496491)
I've always just abstracted the DB away with objects and lazy-load any 'subqueries' that I might want to have/use/get (or autoload them if necessary).
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by rpedela on Friday October 04, 2013 @10:40AM (#6495611)
Using hierarchical data structures takes care of the most common use case of JOIN (i.e. "SELECT * FROM a, b, c"). This is a win for MongoDB. However there are times when you want to JOIN multiple hierarchical data structures [1]. Or use a different type of JOIN.

[1] http://tebros.com/2011/07/using-mongodb-mapreduce-to-join-2-...

Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by mason55 on Friday October 04, 2013 @11:05AM (#6495751)
So JOIN in your application. Or use a different DB. MongoDB isn't correct for every use case and they would never claim it is.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by ArbitraryLimits on Friday October 04, 2013 @12:37PM (#6496369)
Am I just too old for HN now?

I can understand calling something that holds your data and makes it so you don't have to do JOINs a database.

I can understand calling something that holds your data and does JOINs for you a database.

I'm having trouble calling something that holds my data and makes it so I have to "JOIN in my application" anything but a file system.

Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by untog on Friday October 04, 2013 @01:32PM (#6496712)
I don't know, what is the definition of a database? I'd be surprised if it mandated joins.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by gaius on Friday October 04, 2013 @01:33PM (#6496723)
Actually, if you speak to them, they do claim that. Then they backtrack when you call them on it, but I've heard guys from 10gen as they were known then claim their product was a drop-in replacement for Oracle.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by omni on Friday October 04, 2013 @03:39PM (#6497465)
Hearsay and strawman arguments don't make for an intellectual discussion.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by wmf on Friday October 04, 2013 @12:22PM (#6496268)
The entire point is to go fast; denormalization is a tool, not an end in itself. If, hypothetically (ahem), a database could scale and support joins, why not?
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by MichaelGG on Friday October 04, 2013 @08:08PM (#6498836)
Using partitioning like VoltDB allows you to keep joins. I think Google's Spanner/F1 partitioning/relation scheme also allows joins.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by throwawayyyz on Friday October 04, 2013 @09:39AM (#6495259)
I'm pretty sure their download numbers say otherwise. One or two HN threads complaining about MongoDB every month are not a good indicator for their future success.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by AlisdairO on Friday October 04, 2013 @12:35PM (#6496355)
Yeah. FWIW, working at $BIGCORP, I'm starting to hear buzz around Mongo from quite a few not-very-technical people. I'm pretty negative on Mongo as a technology, but there's no doubt that it's generated a lot of attention.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by crazytony on Friday October 04, 2013 @10:14AM (#6495466)
In the short term it's probably inversely proportional: more 'complaints' means more people on the platform (or at least experimenting with the platform). In the long term we're all dead anyway.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by yapcguy on Friday October 04, 2013 @11:11AM (#6495779)
How does CouchDB compare? What are the latest thoughts on this?
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by moox on Friday October 04, 2013 @12:08PM (#6496182)
If you're having issues with scaling and performance, you're most likely using MongoDB the wrong way or for the wrong reasons.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by gfodor on Friday October 04, 2013 @02:43PM (#6497144)
Begging the question. If this is true anyone having trouble with mongo for legit reasons can be labelled as "using it for the wrong reasons."
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by moox on Sunday October 06, 2013 @09:55PM (#6506208)
He could also be using it the wrong way. Although MongoDB has faults, most of them are well known and developers are warned. MongoDB is far from being perfect, but the most common reason people hate on MongoDB is because they did things the wrong way or for the wrong reasons.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by vdaniuk on Saturday October 05, 2013 @07:44AM (#6500395)
Aka "no true Scotsman" fallacy
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by ddorian43 on Friday October 04, 2013 @09:53AM (#6495336)
what are the data type problems?
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by rpedela on Friday October 04, 2013 @10:01AM (#6495387)
Support for arbitrary-precision decimal. Known as numeric/decimal in Postgres. This can be a problem for financial and scientific applications.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by spongle on Friday October 04, 2013 @10:56AM (#6495700)
Yep we canned it because of that, plus it was unreliable and our code and architectural review scared the shit out of us.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by jzwinck on Friday October 04, 2013 @10:00AM (#6495376)
Well, some of us have been asking for a native high-resolution time type for three years: https://jira.mongodb.org/browse/SERVER-1460
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by rudiger on Friday October 04, 2013 @11:20AM (#6495840)
Can't you just store it in a regular 64-bit integer and know it's a datetime from your application's logic?

What do you gain with a native, high-resolution datatime type?

Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by bqe on Friday October 04, 2013 @11:43AM (#6495998)
Automatic timezone conversion and the ability to add and subtract dates without first dropping to your 64-bit into. Think DATE_SUB(date time, INTERVAL 1 HOUR) from MySQL for instance.
Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by sandGorgon on Friday October 04, 2013 @12:22PM (#6496269)
nobody ever got fired for choosing:

1. Oracle

2. SQL Server

3. MongoDB

Re:MongoDB Raises $150 Million at $1.2 Billion Valuation by mattdeboard on Friday October 04, 2013 @07:08PM (#6498633)
Oh but I wish they had