XP is just a number | |
PerlMonks |
Re^2: Ranking position in a SQL indexby demerphq (Chancellor) |
on Oct 05, 2004 at 17:29 UTC ( [id://396681]=note: print w/replies, xml ) | Need Help?? |
Just to clarify something here. The 'limit' clause has no effect on the efficiency of the search. It affects the overall efficiency of the query because it prevents you from accidentally requesting more rows than you can handle. In the case where there is a unique index on the field (which is essentially what a PK-identity is anyway) the limit is entirely superlfuous and probably actually slows things down just marginally as its more to be marshalled accross the interprocess or intermachine barrier. Also to the best of my knowledge 'limit' is not standard SQL but rather a MySQL extension. Anyway. ;-)
---
demerphq First they ignore you, then they laugh at you, then they fight you, then you win.
In Section
Seekers of Perl Wisdom
|
|