File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1050,6 +1050,21 @@ will query the database and separately cache their results.
1050
1050
1051
1051
To use the cached results, call ``all.to_a.first`` on the model class.
1052
1052
1053
+ System Collections and the Query Cache
1054
+ ``````````````````````````````````````
1055
+
1056
+ MongoDB stores system information in collections that use the ``database.system.*``
1057
+ namespace pattern. These are called system collections.
1058
+
1059
+ Data in system collections can change due to activity not triggered by the
1060
+ application (such as internal server processes) and as a result of a variety of
1061
+ database commands issued by the application. Because of the difficulty of
1062
+ determining when the cached results for system collections should be expired,
1063
+ queries on system collections bypass the query cache.
1064
+
1065
+ Neither the legacy query cache nor the driver query cache will cache query
1066
+ results from system collections.
1067
+
1053
1068
.. code-block:: ruby
1054
1069
1055
1070
Band.all.to_a
You can’t perform that action at this time.
0 commit comments