Define Performance Options

For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

Define Performance Options

This section describes the options that you can use with the [$search](https://www.mongodb.com/docs/search/query/aggregation-stages/search.md#mongodb-pipeline-pipe.-search stage to improve the performance of your queries under certain conditions:

Use Case Option
Run queries that can benefit from parallel execution such as queries accessing different parts of a large dataset simultaneously and improve each individual query latency. [concurrent](https://www.mongodb.com/docs/search/query/concurrent-query.md#std-label-concurrent-ref
Return the documents stored directly on mongot and minimize the overhead of fetching entire documents from the database after retrieving the search results. [returnStoredSource](https://www.mongodb.com/docs/search/query/return-stored-source.md#std-label-fts-return-stored-source-option