diff options
author | David Storch <david.storch@10gen.com> | 2014-03-20 09:28:35 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2014-03-20 10:48:00 -0400 |
commit | b9167f0fe82160967e591aefba5824a8a372353d (patch) | |
tree | bc52ba4dc14059bd1f717db84ee349619c04ff7a /src/mongo/db/query/query_planner_params.h | |
parent | 0056ff1c76e30011c6b0688e528ad7a15e0e8591 (diff) | |
download | mongo-b9167f0fe82160967e591aefba5824a8a372353d.tar.gz |
SERVER-12438 better handling of batchSize and limit with sort
Diffstat (limited to 'src/mongo/db/query/query_planner_params.h')
-rw-r--r-- | src/mongo/db/query/query_planner_params.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/query/query_planner_params.h b/src/mongo/db/query/query_planner_params.h index eacf858b06a..6d51291f1fb 100644 --- a/src/mongo/db/query/query_planner_params.h +++ b/src/mongo/db/query/query_planner_params.h @@ -77,6 +77,11 @@ namespace mongo { // Nobody should set this above the getRunner interface. Internal flag set as a hint to // the planner that the caller is actually the count command. PRIVATE_IS_COUNT = 1 << 6, + + // Set this if you want to handle batchSize properly with sort(). If limits on SORT + // stages are always actually limits, then this should be left off. If they are + // sometimes to be interpreted as batchSize, then this should be turned on. + SPLIT_LIMITED_SORT = 1 << 7 }; // See Options enum above. |