Skip to content

Commit cd88462

Browse files
authored
MONGOID-5414 deprecate Mongoid::Criteria cache (#5388)
* MONGOID-5414 deprecate criteria cache * MONGOID-5414 add release note * Restart tests
1 parent f23d1e7 commit cd88462

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

source/release-notes/mongoid-7.5.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ The complete list of releases is available `on GitHub
1717
please consult GitHub releases for detailed release notes and JIRA for
1818
the complete list of issues fixed in each release, including bug fixes.
1919

20+
``Array#update_values`` and ``Hash#update_values`` deprecated
21+
-------------------------------------------------------------
22+
23+
The ``Array#update_values`` and ``Hash#update_values`` methods are deprecated in
24+
Mongoid 7.5. It is recommended to use ActiveSupport's ``transform_values!``
25+
method instead.
26+
2027

2128
Ruby 2.5 Deprecated
2229
-------------------
@@ -222,3 +229,13 @@ returned.
222229
Note that the ``#first/last`` methods apply a sort on ``_id``, which can
223230
cause performance issues. To get a document without sorting first, use the
224231
``Critera#take`` method.
232+
233+
234+
``Mongoid::Criteria`` cache deprecated
235+
--------------------------------------
236+
237+
The ability to cache individual criteria objects has been deprecated in Mongoid
238+
7.5 and will be dropped in Mongoid 8.
239+
240+
In order to get caching functionality, enable the Mongoid QueryCache. See the
241+
section on :ref:`QueryCache <query-cache>` for more details.

0 commit comments

Comments
 (0)