in reply to Slow script: DBI, MySQL, or just too much data?
But it sounds to me like a database problem. Are you using transactions. If so try turning off ATUO_COMMIT and do one commit at the end. Also you should look at the indexes you have. Having too few (or too many) indexes can slow things down.$sth = $dbh->prepare( "delete from testDBRepCats where repCatID IN (" . join(', ', map({'?'} @$repCats)) . ")"); $done = $sth->execute(@$repCats);
It is hard to say more without seeing the schema.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Slow script: DBI, MySQL, or just too much data?
by menolly (Hermit) on Apr 15, 2005 at 18:01 UTC |