Suppose we have a simple blog with many posts.
And we regularly execute a query to get list of post's title
and date
from the posts
collection.
So, What will cache inside of the Ram in this scenario(except indexes)? the whole document or only _ids, titles and dates?
The documentation doesn't clear this:
MongoDB keeps most recently used data in RAM. If you have created indexes for your queries and your working data set fits in RAM, MongoDB serves all queries from memory
DB version is 4.2.8.