Enabling the Profiler to list of a query was a sharded/distributed query or not.

13 views
Skip to first unread message

David Murphy

unread,
May 1, 2015, 11:55:09 AM5/1/15
to mongo...@googlegroups.com
Hello all,

I am wanting to extended Mongos so that if a query is a scatter-gather, it can list so in the  profiler. My thought is we could


1)  Add a $comment style option to the query to list this off
2)  Add a numShards to profiling like we did to  explain


The second option has obvious issues as the local mongod profiler will not have any scope of the  mutli shard discussion, as such a new command field would need to be sent with each query type this seems less than optimal. One question I had is has anyone ever tried ton insert a top level $command to a query/update/command before into the QueryMessage object. If so do you have any guidance, I have not  tried to edit a bsonObject/ QueryMessage before and would need to look into how $comment does this. Unless someone has some sever side code where this is done to the actually query object and not just something like added fields to explain's output.


Thanks
David Murphy
Reply all
Reply to author
Forward
0 new messages