Commit 89aa13cfd3f7b144bb85a5f1f594afd535136c2e
1 parent
2bdcc28605
Exists in
master
Query optimizer
Showing 1 changed file with 2 additions and 3 deletions Side-by-side Diff
lib/webservice/router/priceplan.js
... | ... | @@ -35,9 +35,8 @@ function lookupCorrectPriceplan(storeId, originStoreId, recursiveLevel = 0) { |
35 | 35 | |
36 | 36 | const query = ` |
37 | 37 | -- KOMODO MIGRATION EVO - PRICEPLAN - pageShouldBe |
38 | - SELECT | |
39 | - parent_id, priceplan_name | |
40 | - FROM stores | |
38 | + SELECT SQL_CACHE parent_id, priceplan_name | |
39 | + FROM stores USE INDEX (PRIMARY) | |
41 | 40 | WHERE id = ? |
42 | 41 | LIMIT 1 |
43 | 42 | `.trim(); |