Revision 9fbc6ff4
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
SL/Form.pm | ||
---|---|---|
2663 | 2663 |
} |
2664 | 2664 |
|
2665 | 2665 |
# now get the account numbers |
2666 |
# $query = qq|SELECT c.accno, c.description, c.link, c.taxkey_id, tk.tax_id |
|
2667 |
# FROM chart c, taxkeys tk |
|
2668 |
# WHERE (c.link LIKE ?) AND (c.id = tk.chart_id) AND tk.id = |
|
2669 |
# (SELECT id FROM taxkeys WHERE (taxkeys.chart_id = c.id) AND (startdate <= $transdate) ORDER BY startdate DESC LIMIT 1) |
|
2670 |
# ORDER BY c.accno|; |
|
2671 |
|
|
2672 |
# same query as above, but without expensive subquery for each row. about 80% faster |
|
2673 | 2666 |
$query = qq| |
2674 | 2667 |
SELECT c.accno, c.description, c.link, c.taxkey_id, tk2.tax_id |
2675 | 2668 |
FROM chart c |
Auch abrufbar als: Unified diff
Form::create_links: überflüssige Kommentare entfernt