Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAK-11541: Reduce logQueryExplain to only happen if Trace logs are enabled #2134

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

Joscorbe
Copy link
Member

@Joscorbe Joscorbe commented Mar 4, 2025

Apparently the query explain in Mongo can take ages to run. One of my local executions took more than 7 hours to run, on a database with a massive amount of documents.

Copy link

github-actions bot commented Mar 4, 2025

Commit-Check ✔️

@Joscorbe Joscorbe requested a review from rishabhdaim March 4, 2025 09:25
} else {
// otherwise let's just do a compact print
LOG.info(logMsg, hint, result);
if (LOG.isTraceEnabled()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should call logQueryExplain itself from isTraceEnabled block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants