mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
include execution time in $explain output
This commit is contained in:
parent
342cd60ae9
commit
261d46c2f2
@ -739,6 +739,7 @@ QueryResult* runQuery(Message& message, const char *ns, int ntoskip, int _ntoret
|
||||
builder.append("n", ordering ? so->size() : n);
|
||||
if( ordering )
|
||||
builder.append("scanAndOrder", true);
|
||||
builder.append("millis", t.millis());
|
||||
BSONObj obj = builder.done();
|
||||
fillQueryResultFromObj(b, 0, obj);
|
||||
n = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user