Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it true that Mongo keeps full database in ram?

how much ram needs mongo in comparison with MySQL?

like image 243
SomeUser Avatar asked Dec 05 '25 07:12

SomeUser


1 Answers

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:

  1. MongoDB will be very good at finding individual records. (like looking up a user or updating an entry)
  2. MySQL will be very good at loading and using sets of related data.

The performance will really be dictated by your usage of the database.

like image 50
Gates VP Avatar answered Dec 07 '25 21:12

Gates VP



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!