mongodb-explain-plan-model
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -42,3 +42,8 @@ var Model = require('ampersand-model'); | ||
var ixscan = this.findStageByName('IXSCAN'); | ||
return ixscan ? ixscan.indexName : null; | ||
if (ixscan) { | ||
return ixscan.indexName; | ||
} | ||
// special case for IDHACK stage, using the _id_ index. | ||
var idhack = this.findStageByName('IDHACK'); | ||
return idhack ? '_id_' : null; | ||
} | ||
@@ -45,0 +50,0 @@ }, |
{ | ||
"name": "mongodb-explain-plan-model", | ||
"description": "Ampersand model abstraction for MongoDB explain plans (3.0+)", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "fmt": "mongodb-js-fmt", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22629
248