in reply to Re^2: DBI performance problem with MySQL
in thread DBI performance problem with MySQL
It's not an ordering issue. If the column is of type DATETIME and the value it's being compared against is a VARCHAR, then no index will be used, meaning you're going to do a full table scan. Do this:
The behavior you're describing is an increasing cost for a SELECT haing to do several full table scans. That's why I am 99% sure it's the placeholder thing. I've run into it before and actually tried patching DBD::mysql to do intelligent binding for numeric values, but it didn't go anywhere.
Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: DBI performance problem with MySQL
by e2ka (Acolyte) on Mar 09, 2005 at 17:03 UTC | |
by dragonchild (Archbishop) on Mar 09, 2005 at 19:03 UTC | |
by e2ka (Acolyte) on Mar 09, 2005 at 19:20 UTC |