@query-doctor/core 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/optimizer/genalgo.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1372,7 +1372,7 @@ var _IndexOptimizer = class _IndexOptimizer {
|
|
|
1372
1372
|
replaceUsedIndexesWithDefinition(explain, triedIndexes) {
|
|
1373
1373
|
walkExplain(explain, (stage) => {
|
|
1374
1374
|
const indexName = stage["Index Name"];
|
|
1375
|
-
if (indexName) {
|
|
1375
|
+
if (typeof indexName === "string") {
|
|
1376
1376
|
const recommendation = triedIndexes.get(indexName);
|
|
1377
1377
|
if (recommendation) {
|
|
1378
1378
|
stage["Index Name"] = recommendation.definition;
|
|
@@ -1392,6 +1392,7 @@ function walkExplain(explain, f) {
|
|
|
1392
1392
|
}
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
|
+
go(explain);
|
|
1395
1396
|
}
|
|
1396
1397
|
var RollbackError = class {
|
|
1397
1398
|
constructor(value) {
|