hi,
mal wieder ein kleinigkeit ...
hab mir schon mehrere beträge angesehen ... zum thema
speed, aber so richtig hab ich nichts gefunden was ich anwenden kann ...
also folgendes
Problem:
ich mach ne abfrage auf ne dbase db und will dann die gewählten ds löschen. bisher mache ich es so:
Quelltext
1: 2: 3: 4: 5:
| while (not (Query1.Eof)) do begin Query1.Delete; Inc(i); end; |
mit dem problem, daß es sehr langsam läuft, sprich ca 10000 ds ca 5-8 min. sollte ich hier lieber so vorgehen, daß ich das löschen direkt per sql abfrage mache ? wäre aber etwas ungünstig, zumindest aus momentaner sicht.
ne idee die mir grad kommt:
Delete from <table> where (select * from <table> where <...>)
wäre das vielleicht ne möglichkeit ... gleich mal testen ...
trotzdem sind weitere hinweise sehr willkommen ...
mfg
snergle