@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.cjs
CHANGED
|
@@ -1422,7 +1422,7 @@ var _IndexOptimizer = class _IndexOptimizer {
|
|
|
1422
1422
|
replaceUsedIndexesWithDefinition(explain, triedIndexes) {
|
|
1423
1423
|
walkExplain(explain, (stage) => {
|
|
1424
1424
|
const indexName = stage["Index Name"];
|
|
1425
|
-
if (indexName) {
|
|
1425
|
+
if (typeof indexName === "string") {
|
|
1426
1426
|
const recommendation = triedIndexes.get(indexName);
|
|
1427
1427
|
if (recommendation) {
|
|
1428
1428
|
stage["Index Name"] = recommendation.definition;
|
|
@@ -1442,6 +1442,7 @@ function walkExplain(explain, f) {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
}
|
|
1444
1444
|
}
|
|
1445
|
+
go(explain);
|
|
1445
1446
|
}
|
|
1446
1447
|
var RollbackError = class {
|
|
1447
1448
|
constructor(value) {
|