Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-692

Add support for the $comment meta operator to help with profiling

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.1
    • Affects Version/s: 1.7.1
    • Component/s: Feature Request
    • None

      It would be useful to get support for the $comment meta operator in the C# driver. This would allow users to tag their queries with a comment that shows up in system.profile if the query is slow (or if all queries are being profiled).

      This could be something like:

      collection.FindAll().SetComment("Tag my query").ToList()

      and for the LINQ version:

      collection.AsQueryable().Where(o => o.Field == 1).WithComment("Tag my query").ToList()

            Assignee:
            Unassigned Unassigned
            Reporter:
            eeg@trustpilot.com Einar Egilsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: