$r{$groupnumber} = 1;
Then test the hash for the value as opposed to a single query for each record.
if ($r{$groupnum}) { next; } else { ## Add record }
You'll do one query at the start of your program and save the time for each query.
-techwolf
In reply to Re: DBI - need for speed
by techwolf
in thread DBI - need for speed
by with.a.twist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |