Improve your MongoDB Search query performance by understanding how query complexity, operators, and aggregation pipeline stages affect cluster performance. Use the recommendations below to structure queries efficiently for your deployment type.
Improve your MongoDB Search query performance by understanding how query complexity, operators, and aggregation pipeline stages affect cluster performance. Use the recommendations below to structure queries efficiently for your deployment type.
On this page
$limit Before $facetcompound.filter Instead of $matchfacet Instead of $groupcount Instead of $countsort, near, or returnStoredSource Instead of $sort$skip After $search$search Instead of $text or $regexOn this page
$limit Before $facetcompound.filter Instead of $matchfacet Instead of $groupcount Instead of $countsort, near, or returnStoredSource Instead of $sort$skip After $search$search Instead of $text or $regex