http://www.perlmonks.org?node_id=968296


in reply to Re^3: A database table size issue
in thread A database table size issue

I set to write about why you should be using the dbms's power or resources instead of the client's,mainly because of query optimization,execution plan caching,parallel query execution,set based operations instead of procedural row by row,etc, but then I've noticed the OP's remark Re^2: A database table size issue,which acts as straightforward reply to your question :

Thanks for the suggestion. The script was really slow when I processed the table row by row. I took your advice and rewrote the SQL to let the DB to handle part of the processing. The script now runs much faster than before

So I have no futher comments

Replies are listed 'Best First'.
Re^5: A database table size issue
by JavaFan (Canon) on May 01, 2012 at 16:52 UTC
    So I have no futher comments
    That's fine, and I already acknowledged that the OPs situation might very well call for processing on the server side.

    That does not mean I agree with the blanket statement -- just because it's the right idea sometimes, 50% of the time, or even 90% of the time, it doesn't mean it's the right thing to do all the time.