|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re^3: Sorting Numbers & Textby johngg (Abbot) |
| on Jul 12, 2012 at 22:25 UTC ( #981522=note: print w/ replies, xml ) | Need Help?? |
|
Another approach might be to read chunks of your very large database, perhaps 100k to 500k records at a time, and sort each chunk into its own temporary file. Once you have read and sorted all of the data, do a sort/merge of the temporary files into a final sorted file. My gut feeling is that this would be more efficient than the "two at a time" approach you are taking. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||