diff options
author | James Wahlin <james.wahlin@10gen.com> | 2016-12-22 14:04:48 -0500 |
---|---|---|
committer | James Wahlin <james.wahlin@10gen.com> | 2016-12-27 11:26:52 -0500 |
commit | c76707775edcef041f3a83be2972a739236ef01b (patch) | |
tree | c20be551018c3dd241be4d1f47d116ce96fa98e0 /src/mongo/db/query | |
parent | c4e1e4bbcc1a6fc1f9ca4e3cbf524e6c9c99ce1a (diff) | |
download | mongo-c76707775edcef041f3a83be2972a739236ef01b.tar.gz |
SERVER-27406 Reduce DocumentSourceCursor batch size from 16MB to 4MB
Diffstat (limited to 'src/mongo/db/query')
-rw-r--r-- | src/mongo/db/query/query_knobs.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/query/query_knobs.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/query/query_knobs.cpp b/src/mongo/db/query/query_knobs.cpp index a05a1c073d8..496f69c5c47 100644 --- a/src/mongo/db/query/query_knobs.cpp +++ b/src/mongo/db/query/query_knobs.cpp @@ -72,4 +72,6 @@ MONGO_EXPORT_SERVER_PARAMETER(internalInsertMaxBatchSize, int, internalQueryExecYieldIterations / 2); +MONGO_EXPORT_SERVER_PARAMETER(internalDocumentSourceCursorBatchSizeBytes, int, 4 * 1024 * 1024); + } // namespace mongo diff --git a/src/mongo/db/query/query_knobs.h b/src/mongo/db/query/query_knobs.h index 4b3a0760c65..67bff82bb1e 100644 --- a/src/mongo/db/query/query_knobs.h +++ b/src/mongo/db/query/query_knobs.h @@ -113,4 +113,6 @@ extern std::atomic<int> internalQueryFacetBufferSizeBytes; // NOLINT extern std::atomic<int> internalInsertMaxBatchSize; // NOLINT +extern std::atomic<int> internalDocumentSourceCursorBatchSizeBytes; // NOLINT + } // namespace mongo |