Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Finer points of Class::DBI

by cleverett (Friar)
on Sep 14, 2004 at 06:24 UTC ( [id://390756]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Finer points of Class::DBI
in thread Finer points of Class::DBI

Then he'd have to use Data::Grouper, or something like that to build his hierarchical format. Yes, using CDBI results in N+1 queries to the RDBMS, where N = the number of records returned by the initial Areas->retrieve_all(). However, the real glory of CDBI has to do with the amazing code reduction it achieves (especially in conjuction with Template Toolkit for example), not the performance.

Moral: use CDBI where reusability, portability and ease of coding take a priority over performance (almost everywhere). Use hand coded SQL and DBI when you need to sacrifice everything for speed.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://390756]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-25 14:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found