Hello
We are running a lot of queries, and sometimes it’s difficult to identy where a slow query is coming from.
Is there a way to add a technical field like QueryName to be able to identify the query in the Profiler ?
thanks
Welcome to the MongoDB Community Forums @Cyril_Cs !
You can use the $comment query operator to associate comments with queries.
Comments appear in the Database Profiler, logged query statements (by default that is slow queries only), and in the output of db.currentOp().
Regards,
Stennie
1 Like
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.