in reply to Slow script: DBI, MySQL, or just too much data?
AFAIK, (which isn't a vast amount...) the SELECT you're doing already *is* doing a join, but on the sql parser side internal to mysql.
Anytime you find yourself selecting something just so you can feed it back to the db as parameters, it's a good bet you're making perl do the work that should be done by the db. So, yes, you'd probably be much better off if you used a more complex DELETE statement.
--
"This alcoholism thing, I think it's just clever propaganda produced by people who want you to buy more bottled water." -- pedestrianwolf
|
|---|
| 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:20 UTC |