On 4/12/07 10:11 PM, Bill Moseley wrote: > Ok, I just have to ask. What are people doing for dbh caching? > I know this comes up often: > > http://thread.gmane.org/gmane.comp.lang.perl.modules.dbi.rose-db-object/1138/f > ocus=1140 > > [...] I'm also still trying to understand the point of a new dbh for each > object (from the same table).
Keep in mind that if you replace My::Product in that post with My::DB::Object, which is a common base class for all your RDBO-derived objects, then you effectively get one connection shared by all objects from all tables. Dunno if that's something you're interested in, but I just wanted to point it out. > What about using Ima::DBI? Would that stomp on RDB? I doubt it. A Rose::DB object shouldn't care much what class its dbh is, so long as it acts appropriately like a plain DBI dbh. -John ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Rose-db-object mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/rose-db-object