[CSHARP-692] Add support for the $comment meta operator to help with profiling Created: 28/Feb/13  Updated: 22/Apr/15  Resolved: 22/Apr/15

Status: Closed
Project: C# Driver
Component/s: Feature Request
Affects Version/s: 1.7.1
Fix Version/s: 2.1

Type: Improvement Priority: Minor - P4
Reporter: Einar Egilsson Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CSHARP-673 Support setting the cursor batch size... Closed
Epic Link: Rewrite Linq

 Description   

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()



 Comments   
Comment by Craig Wilson [ 22/Apr/15 ]

Hi Einar,

We are only targeting the aggregation framework with the Linq rewrite (CSHARP-601). Currently, the aggregation framework doesn't support comments. When they do, we'll create a ticket for supporting ancillary metadata like this.

Thanks,
Craig

Generated at Wed Feb 07 21:37:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.