Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-2515

$comment operator for propagating metadata to query logs

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.9.1
    • Affects Version/s: None
    • Component/s: Usability
    • 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 Eliot Horowitz (Inactive)
            Reporter:
            josh@gmail.com Josh Adams
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: