in reply to DBI: checking if a table exists in a cross-DB manner?
DELETE FROM $table_name is too slowThat's why we have TRUNCATE TABLE $table_name. Delete is a logged operation, whereas truncate is not. You should see a significant speedup in truncating over deleting. I know that this doesn't address the issue of the schema changes that you talk about, but that's what ALTER TABLE is for...:).
thor
Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBI: checking if a table exists in a cross-DB manner?
by radiantmatrix (Parson) on Dec 02, 2004 at 22:29 UTC | |
by thor (Priest) on Dec 02, 2004 at 22:38 UTC | |
|
Re^2: DBI: checking if a table exists in a cross-DB manner?
by herveus (Prior) on Dec 03, 2004 at 12:51 UTC | |
by thor (Priest) on Dec 03, 2004 at 13:15 UTC | |
by herveus (Prior) on Dec 03, 2004 at 13:19 UTC | |
by thor (Priest) on Dec 03, 2004 at 13:44 UTC | |
by htoug (Deacon) on Dec 03, 2004 at 14:02 UTC | |
by thor (Priest) on Dec 03, 2004 at 21:13 UTC |