From 89aa13cfd3f7b144bb85a5f1f594afd535136c2e Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Wed, 6 Nov 2019 14:12:56 +0700 Subject: [PATCH] Query optimizer --- lib/webservice/router/priceplan.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/webservice/router/priceplan.js b/lib/webservice/router/priceplan.js index 7980d9f..e6eaee3 100644 --- a/lib/webservice/router/priceplan.js +++ b/lib/webservice/router/priceplan.js @@ -35,9 +35,8 @@ function lookupCorrectPriceplan(storeId, originStoreId, recursiveLevel = 0) { const query = ` -- KOMODO MIGRATION EVO - PRICEPLAN - pageShouldBe - SELECT - parent_id, priceplan_name - FROM stores + SELECT SQL_CACHE parent_id, priceplan_name + FROM stores USE INDEX (PRIMARY) WHERE id = ? LIMIT 1 `.trim(); -- 1.9.0