From 7f2c64568284d0f0af8b955cb33f9d748f8a1f6c Mon Sep 17 00:00:00 2001 From: guillermo Date: Thu, 11 Jul 2024 13:36:21 +0200 Subject: [PATCH] feat: refs #7704 Refactor --- forms/ecomerce/catalog/ui.xml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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();