diff --git a/forms/ecomerce/catalog/ui.xml b/forms/ecomerce/catalog/ui.xml index 1f3fae5c..6e8aa100 100644 --- a/forms/ecomerce/catalog/ui.xml +++ b/forms/ecomerce/catalog/ui.xml @@ -105,8 +105,7 @@ auto-load="false" result-index="3" on-status-changed="onItemsChange"> - DROP TEMPORARY TABLE IF EXISTS tmp.item; - CREATE TEMPORARY TABLE tmp.item + CREATE OR REPLACE TEMPORARY TABLE tmp.item (INDEX (itemFk)) ENGINE = MEMORY SELECT i.id itemFk @@ -132,13 +131,7 @@ WHERE b.available > 0 ORDER BY i.relevancy DESC, i.name, i.size LIMIT 5000; - DROP TEMPORARY TABLE - tmp.item, - tmp.ticketCalculateItem, - tmp.ticketComponentPrice, - tmp.ticketComponent, - tmp.ticketLot, - tmp.zoneGetShipped; + CALL vn.ticketCalculatePurge();