Live data from Hacker News

Introduction to MongoDB

thebitsource.com

11–15 of 15 posts

Re: Introduction to MongoDB

#11
post #3

Just wonder who have hosted data that is larger than RAM with MongoDB, and what's the performance characteristics?

You could run into problems but one option to deal with this is to "scale out" to a larger number of machines and shard the data onto each separate machine (with their own RAM) as appose to one or two high RAM machines.

Re: Introduction to MongoDB

#13
post #9
post #3

Just wonder who have hosted data that is larger than RAM with MongoDB, and what's the performance characteristics?

This happened to Foursquare, and resulted in a lengthy outage. See http://groups.google.com/group/mongodb-user/browse_thread/th... for the full details (including why recovery took so long).

FWIW, Foursquare's situation was kind of unique. They have a need for all of their data to be in RAM. In most applications, you can define a working set of data. As long as you can keep that working set and indexes in RAM, you'll be fine.

Re: Introduction to MongoDB

#14
post #3

Just wonder who have hosted data that is larger than RAM with MongoDB, and what's the performance characteristics?

You could run into problems but one option to deal with this is to "scale out" to a larger number of machines and shard the data onto each separate machine (with their own RAM) as appose to one or two high RAM machines.

This bears repeating. Because MongoDB doesn't do joins, sharding is orders of magnitude easier than with an SQL system; if you run out of RAM, shard.

Re: Introduction to MongoDB

#15
post #3

Just wonder who have hosted data that is larger than RAM with MongoDB, and what's the performance characteristics?

My experience with MongoDB (300GB database; most of which was insert-only, but some large chunk of it was being updated) under constant load was horrible: I would not go back there. I've since spent a lot of time learning more about PostgreSQL's implementation and figuring out how to tweak more performance out of it. At this point I no longer believe there is any benefit to using MongoDB at all.
Post reply on HN