Perl: the Markov chain saw | |
PerlMonks |
Re: Determining if a DBI SELECT comes back emptyby Zed_Lopez (Chaplain) |
on Dec 05, 2003 at 21:03 UTC ( [id://312639]=note: print w/replies, xml ) | Need Help?? |
I think I don't understand. If you need the results for further processing when there are results, where's the memory penalty? When there are no results, you have an empty array, which involves trivial memory, and you move on. You could do SELECT COUNT(*)'s in advance, but that does incur a performance penalty over what you're already doing.
In Section
Seekers of Perl Wisdom
|
|