Skip to content

Commit

Permalink
Adding scanAndOrder to no index warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
freeeve committed Sep 12, 2012
1 parent 7f661ed commit 409c035
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions indexStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ DB.prototype.indexStats = function() {
queries[size-1].millis = explain.millis;
queries[size-1].nscanned = explain.nscanned;
queries[size-1].n = explain.n;
queries[size-1].scanAndOrder = explain.scanAndOrder ? true : false;
if(explain.cursor != "BasicCursor") {
queries[size-1].index = explain.cursor.split(" ")[1];
//print("found index in use: " + queries[size-1].index);
Expand All @@ -42,6 +43,7 @@ DB.prototype.indexStats = function() {
printjson(profileDoc.query);
print("... millis: " + queries[size-1].millis);
print("... nscanned/n: " + queries[size-1].nscanned + "/" + queries[size-1].n);
print("... scanAndOrder: " + queries[size-1].scanAndOrder);
}
} else {
queries[qIdx].count++;
Expand Down

0 comments on commit 409c035

Please sign in to comment.