@@ -125,15 +125,7 @@ files lazily. MongoDB may wait to write data to the data files for as
125
125
much as one minute. This does not affect durability, as the journal
126
126
has enough information to ensure crash recovery.
127
127
128
- Does MongoDB handle caching?
129
- ----------------------------
130
-
131
- Yes. MongoDB keeps all of the most recently used data in RAM. If you
132
- have created indexes for your queries and your working data set fits
133
- in RAM, MongoDB serves all queries from memory.
134
-
135
- MongoDB does not implement a query cache: MongoDB serves all queries
136
- directly from the indexes and/or data files.
128
+ .. _faq-database-and-caching:
137
129
138
130
Does MongoDB require a separate caching layer for application-level caching?
139
131
----------------------------------------------------------------------------
@@ -147,8 +139,20 @@ need for a separate caching layer in the application.
147
139
This differs from relational databases, where caching data is more
148
140
expensive. Relational databases must transform data into object
149
141
representations that applications can read and must store the
150
- transformed data in a separate cache. If joins are required that adds to
151
- the overhead.
142
+ transformed data in a separate cache: if these transformation from
143
+ data to application objects require joins, this process increases the
144
+ overhead related to using the database which increases the importance
145
+ of the caching layer.
146
+
147
+ Does MongoDB handle caching?
148
+ ----------------------------
149
+
150
+ Yes. MongoDB keeps all of the most recently used data in RAM. If you
151
+ have created indexes for your queries and your working data set fits
152
+ in RAM, MongoDB serves all queries from memory.
153
+
154
+ MongoDB does not implement a query cache: MongoDB serves all queries
155
+ directly from the indexes and/or data files.
152
156
153
157
What language is MongoDB written in?
154
158
------------------------------------
0 commit comments