Reputation: 2041
how much ram needs mongo in comparison with MySQL?
Upvotes: 3
Views: 662
Reputation: 2002
The short answer is : the same.
Another way to ask is: if I am using MySQL + memcached, how much ram do i need to use Mongo instead of that combination? The answer would be on the order of the same total amount of memory for both clusters (the mongodb cluster being sharded probably in this scenario).
Upvotes: 0
Reputation: 45277
MongoDB does its best to keep as much useful information in RAM. MySQL generally does the same thing.
Both databases will use all of the RAM they have available.
Comparing the two is not easy, because it really depends on a lot of things. Things like your table structure and your data size and your indexes.
If you give MongoDB and MySQL the same amount of RAM, you will typically find the following:
The performance will really be dictated by your usage of the database.
Upvotes: 6