diff --git a/source/faq/fundamentals.txt b/source/faq/fundamentals.txt index 41b92cecadf..1a9f8e9be00 100644 --- a/source/faq/fundamentals.txt +++ b/source/faq/fundamentals.txt @@ -135,6 +135,21 @@ in RAM, MongoDB serves all queries from memory. MongoDB does not implement a query cache: MongoDB serves all queries directly from the indexes and/or data files. +Does MongoDB require a separate caching layer for application-level caching? +---------------------------------------------------------------------------- + +No. In MongoDB, a document's representation in the database is similar +to its representation in application memory. This means the database +already stores the usable form of data, making the data usable in both +the persistent store and in the application cache. This eliminates the +need for a separate caching layer in the application. + +This differs from relational databases, where caching data is more +expensive. Relational databases must transform data into object +representations that applications can read and must store the +transformed data in a separate cache. If joins are required that adds to +the overhead. + What language is MongoDB written in? ------------------------------------