$comment operator for propagating metadata to query logs

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 1.9.1
    • Affects Version/s: None
    • Component/s: Usability
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Eliot Horowitz (Inactive)
              Reporter:
              Josh Adams
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: