From 944b8fc28a8f4c8a39b30da3542c04d0ed7ca1aa Mon Sep 17 00:00:00 2001 From: kay Date: Mon, 18 Mar 2013 20:36:10 -0400 Subject: [PATCH] wording of warning in agg --- source/reference/aggregation/sort.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/reference/aggregation/sort.txt b/source/reference/aggregation/sort.txt index 06ada1a65ac..b809d014f9a 100644 --- a/source/reference/aggregation/sort.txt +++ b/source/reference/aggregation/sort.txt @@ -56,7 +56,11 @@ $sort (aggregation) .. include:: /includes/fact-agg-sort-limit.rst .. warning:: Unless the :pipeline:`$sort` operator can use an index, - the :pipeline:`$sort` operation must fit within memory. + or in 2.4, immediately precedes a :pipeline:`$limit`, the + :pipeline:`$sort` operation must fit within memory. For + :pipeline:`$sort` operations that immediately precedes a + :pipeline:`$limit` stage in 2.4, the limited results must fit + within memory. .. todo:: if a sort precedes the first $group in a sharded system, all documents must go to the mongos for sorting.