Skip to content

DOCS-17460 Add deprecation warning for map reduce #5712

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions source/includes/fact-use-aggregation-not-map-reduce.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
As of MongoDB 5.0 the :doc:`map-reduce</core/map-reduce>`
operation is deprecated.

An :doc:`aggregation pipeline </core/aggregation-pipeline>` provides
better performance and usability than a :doc:`map-reduce
</core/map-reduce>` operation.
Expand Down
10 changes: 10 additions & 0 deletions source/release-notes/5.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ measurements over a period of time. Compared to normal collections,
storing time series data in time series collections improves query
efficiency and reduces disk usage for your data and indexes.

Deprecate Map Reduce Operation
------------------------------

Starting in version 5.0, MongoDB deprecates the
:doc:`map-reduce</core/map-reduce>` operation.

For examples of aggregation pipeline alternatives to map-reduce
operations, see :doc:`/reference/map-reduce-to-aggregation-pipeline` and
:doc:`/tutorial/map-reduce-examples`.

Aggregation
-----------

Expand Down