Revision f5341298
Von Bernd Bleßmann vor etwa 3 Jahren hinzugefügt
SL/Controller/DeliveryPlan.pm | ||
---|---|---|
199 | 199 |
(oe.quotation = 'f' OR oe.quotation IS NULL) AND |
200 | 200 |
NOT oe.closed AND |
201 | 201 |
$oe_owner |
202 |
oi.id NOT IN (
|
|
202 |
NOT EXISTS (
|
|
203 | 203 |
SELECT from_id |
204 | 204 |
FROM record_links rl |
205 | 205 |
WHERE |
206 |
rl.from_table ='orderitems' AND |
|
207 |
rl.to_table = 'delivery_order_items' |
|
206 |
rl.from_table = 'orderitems' AND |
|
207 |
rl.to_table = 'delivery_order_items' AND |
|
208 |
rl.from_id = oi.id |
|
208 | 209 |
) |
209 | 210 |
|
210 | 211 |
" ], # make emacs happy again: " ] |
Auch abrufbar als: Unified diff
Lieferplan: Geschwindigkeitssteigerung durch »NOT EXISTS« anstelle von »NOT IN«