From 90a2054a3dd7c360e510c119e9e4e8189657021c Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Thu, 11 Dec 2003 17:22:16 +0000 Subject: [PATCH] improved by jps : 10 x faster git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@85 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../coramy_trade/Delivery_zGetCellList.zsql | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/product/Coramy/skins/coramy_trade/Delivery_zGetCellList.zsql b/product/Coramy/skins/coramy_trade/Delivery_zGetCellList.zsql index 7b4b9601c0..a5ad6323f3 100755 --- a/product/Coramy/skins/coramy_trade/Delivery_zGetCellList.zsql +++ b/product/Coramy/skins/coramy_trade/Delivery_zGetCellList.zsql @@ -12,28 +12,17 @@ sort_on</params> SELECT cell.uid, cell.Id, cell.path, cell.Description, movement.variation_text FROM - catalog AS cell, catalog AS line, movement + catalog as cell, movement WHERE -(( - cell.parent_uid = line.uid -AND - line.parent_uid = <dtml-sqlvar uid type="int"> + movement.delivery_uid = <dtml-sqlvar uid type="int"> AND movement.uid = cell.uid AND movement.is_accountable = 1 -) -OR -( - line.parent_uid = <dtml-sqlvar uid type="int"> -AND - line.uid = cell.uid AND - movement.uid = cell.uid + cell.portal_type <> "Simulation Movement" AND - movement.is_accountable = 1 -)) -AND cell.portal_type <> "Container" + cell.portal_type <> "Container" <dtml-if sort_on>ORDER BY <dtml-var sort_on> </dtml-if> \ No newline at end of file -- 2.30.9