#4474 Fix memory leaks
gitea/hedera-web/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2022-10-13 17:01:18 +02:00
parent c5d1a6fd3a
commit 94c4c43bb5
4 changed files with 30 additions and 10 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.408.20) stable; urgency=low
hedera-web (1.408.21) stable; urgency=low
* Initial Release.

View File

@ -50,8 +50,9 @@
</db-form>
<db-model
id="items-model"
result-index="2"
result-index="3"
on-status-changed="onItemsChange">
DROP TEMPORARY TABLE IF EXISTS tmp.item;
CREATE TEMPORARY TABLE tmp.item
(INDEX (itemFk))
ENGINE = MEMORY
@ -77,6 +78,13 @@
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;
<sql-batch property="batch" id="filter-batch">
<custom>
<item name="filter" object="filter"/>
@ -227,7 +235,8 @@
JOIN tmp.itemAvailable a ON a.id = i.id
JOIN vn.itemTypeL10n l ON l.id = t.id
WHERE t.`order` >= 0 AND #filter
ORDER BY t.`order`, l.name
ORDER BY t.`order`, l.name;
DROP TEMPORARY TABLE tmp.itemAvailable;
</db-model>
<sql-filter property="filter" type="AND">
<sql-filter-item type="EQUAL">
@ -247,7 +256,8 @@
JOIN tmp.itemAvailable a ON a.id = i.id
JOIN vn.inkL10n l ON l.id = i.inkFk
WHERE #filter
ORDER BY name
ORDER BY name;
DROP TEMPORARY TABLE tmp.itemAvailable;
</db-model>
<sql-filter property="filter" always-ready="true" type="AND">
<pointer object="op-realm"/>
@ -269,7 +279,8 @@
JOIN tmp.itemAvailable a ON a.id = i.id
JOIN vn.producer p ON p.id = i.producerFk
WHERE #filter
ORDER BY name
ORDER BY name;
DROP TEMPORARY TABLE tmp.itemAvailable;
</db-model>
<sql-filter property="filter" always-ready="true" type="AND">
<pointer object="op-realm"/>
@ -292,7 +303,8 @@
JOIN vn.origin o ON o.id = i.originFk
JOIN vn.originL10n l ON l.id = o.id
WHERE #filter
ORDER BY name
ORDER BY name;
DROP TEMPORARY TABLE tmp.itemAvailable;
</db-model>
<sql-filter property="filter" always-ready="true" type="AND">
<pointer object="op-realm"/>
@ -313,7 +325,8 @@
JOIN vn.itemType t ON t.id = i.typeFk
JOIN tmp.itemAvailable a ON a.id = i.id
WHERE #filter
ORDER BY category
ORDER BY category;
DROP TEMPORARY TABLE tmp.itemAvailable;
</db-model>
<sql-filter property="filter" always-ready="true" type="AND">
<pointer object="op-realm"/>
@ -450,6 +463,12 @@
JOIN tmp.ticketComponentPrice p ON p.warehouseFk = l.warehouseFk
JOIN vn.warehouse w ON w.id = p.warehouseFk
ORDER BY warehouseFk, `grouping`;
DROP TEMPORARY TABLE
tmp.ticketCalculateItem,
tmp.ticketComponentPrice,
tmp.ticketComponent,
tmp.ticketLot,
tmp.zoneGetShipped;
</db-model>
<htk-column-spin column="price" unit="€" digits="2"/>
<htk-column-spin column="priceKg" unit="€/kg" digits="3" class="price-kg"/>

View File

@ -18,8 +18,9 @@
IFNULL(SUM(tax), 0) tax
FROM tmp.orderAmount
) t;
DROP TEMPORARY TABLE tmp.orderAmount;
DROP TEMPORARY TABLE tmp.orderTax;
DROP TEMPORARY TABLE
tmp.orderAmount,
tmp.orderTax;
</db-model>
</db-form>
<db-query id="confirm-query" on-ready="onConfirm">

View File

@ -1,6 +1,6 @@
{
"name": "hedera-web",
"version": "1.408.20",
"version": "1.408.21",
"description": "Verdnatura web page",
"license": "GPL-3.0",
"repository": {