[SERVER-2515] $comment operator for propagating metadata to query logs Created: 10/Feb/11  Updated: 12/Jul/16  Resolved: 28/May/11

Status: Closed
Project: Core Server
Component/s: Usability
Affects Version/s: None
Fix Version/s: 1.9.1

Type: Improvement Priority: Minor - P4
Reporter: Josh Adams Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:

 Description   

Here's Bernie's response to my question on mongodb-user:

We don't currently support this but it's a cool idea. You could open a
jira case to request an enhancement for a $comment operator.

I haven't tested this but it might work to add a parameter to your
query that never exists. Something like:
find({<your params>, fakeComment:{$ne:"some comment"}})

Unfortunately that will likely have the side effect of slowing the
queries down even more.



 Comments   
Comment by auto [ 28/May/11 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: test and note for $comment so we don't break laster SERVER-2515
Branch: master
https://github.com/mongodb/mongo/commit/034e7bdf809a0ae8259c4cf777aa7abad670bd91

Generated at Thu Feb 08 03:00:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.