Do you know where your variables are? | |
PerlMonks |
Re: Re: Re: Heap sorting in perlby pg (Canon) |
on Apr 06, 2003 at 03:17 UTC ( [id://248386]=note: print w/replies, xml ) | Need Help?? |
If those are rows in a database, I agree with dws, just let database do it. If that particular column is not indexed, I suggest index it, as you need it. "order by" is usually not too expansive, especially when it only involves indexed range scan. Depends on your database, some database directly support syntax that allows to retrieve first N rows.
In Section
Seekers of Perl Wisdom
|
|