Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Created by Peter Williamson
Created on Nov 12, 2025

Ensure critical cursor options such as sort, skip and limit are logged when a command is truncated

What problem are you trying to solve?

Focus on the what and why of the need you have, not the how you'd like it solved.

When diagnosing a slow query options such as sort, limit and skip will have an impact on the palnner. These options are truncated if the query is long.

What would you like to see happen?

Describe the desired outcome or enhancement.

There are other elements of the query such as long $in conditions that are much less useful and should be truncated first

Why is this important to you or your team?

Explain how the request adds value or solves a business need.

The presence or absence of $sort and $limit help explain otherwise obscure planner choices.

What steps, if any, are you taking today to manage this problem?

Trial and error, to try and guess the query shape and match the query hash