Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9fbc6ff4

Von Moritz Bunkus vor etwa 8 Jahren hinzugefügt

  • ID 9fbc6ff48867b6125b6ae34520c399376573f8dc
  • Vorgänger ad635c66
  • Nachfolger 41cceb1e

Form::create_links: überflüssige Kommentare entfernt

Unterschiede anzeigen:

SL/Form.pm
}
# now get the account numbers
# $query = qq|SELECT c.accno, c.description, c.link, c.taxkey_id, tk.tax_id
# FROM chart c, taxkeys tk
# WHERE (c.link LIKE ?) AND (c.id = tk.chart_id) AND tk.id =
# (SELECT id FROM taxkeys WHERE (taxkeys.chart_id = c.id) AND (startdate <= $transdate) ORDER BY startdate DESC LIMIT 1)
# ORDER BY c.accno|;
# same query as above, but without expensive subquery for each row. about 80% faster
$query = qq|
SELECT c.accno, c.description, c.link, c.taxkey_id, tk2.tax_id
FROM chart c

Auch abrufbar als: Unified diff