in reply to DBI - need for speed
$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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: DBI - need for speed
by with.a.twist (Novice) on May 14, 2002 at 14:30 UTC |