From 060b964d64bf5e6f11aa316547a38f952501c54b Mon Sep 17 00:00:00 2001 From: ian fogelman Date: Thu, 19 Aug 2021 09:12:16 -0400 Subject: [PATCH] DOCS-17460 Add deprecation warning for map reduce --- .../includes/fact-use-aggregation-not-map-reduce.rst | 3 +++ source/release-notes/5.0.txt | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/source/includes/fact-use-aggregation-not-map-reduce.rst b/source/includes/fact-use-aggregation-not-map-reduce.rst index 735157172ff..696a8ff415b 100644 --- a/source/includes/fact-use-aggregation-not-map-reduce.rst +++ b/source/includes/fact-use-aggregation-not-map-reduce.rst @@ -1,3 +1,6 @@ +As of MongoDB 5.0 the :doc:`map-reduce` +operation is deprecated. + An :doc:`aggregation pipeline ` provides better performance and usability than a :doc:`map-reduce ` operation. diff --git a/source/release-notes/5.0.txt b/source/release-notes/5.0.txt index a8aed937f54..65a71cd6b3f 100644 --- a/source/release-notes/5.0.txt +++ b/source/release-notes/5.0.txt @@ -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` 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 -----------