in reply to Re^2: Sorting data returned from DBI ...
in thread Sorting data returned from DBI ...
In general, if you can push some task off onto the database (out of Perl's hands) you're better off. This is only a general rule of thumb, but it seems to hold in most cases. When in doubt, let the database do the work.
In this case, you were already sorting once in the database, and then contemplating sorting again within Perl. That would mean performing two O(n log n) exercises instead of one.
Dave
|
|---|