[RDBO] ANNOUNCE: Rose::DB::Object 0.7661 released

2008-01-29 Thread John Siracusa
Important fix for a bug that could prevent Manager classes from loading, plus one other small change. 0.7661 (01.29.2008) - John Siracusa <[EMAIL PROTECTED]> * Fixed method clash detection in Rose::DB::Object::Manager. * Streamlined caching implementation in Rose::DB::Object::Cached. -Jo

Re: [RDBO] Include schema in generated modules from Rose::DB::Object::Loader

2008-01-29 Thread Peter Karman
On 01/29/2008 12:47 PM, Chris Jacobson wrote: > Hello Rose List! > > Is there a way, using Rose::DB::Object::Loader, that the generated > classes can be instructed to include the 'schema' meta value? I took > a peek under the hood, and can't figure out the proper place that a > patch woul

[RDBO] Include schema in generated modules from Rose::DB::Object::Loader

2008-01-29 Thread Chris Jacobson
Hello Rose List! Is there a way, using Rose::DB::Object::Loader, that the generated classes can be instructed to include the 'schema' meta value? I took a peek under the hood, and can't figure out the proper place that a patch would have to be applied to add an option such as 'include_sch

Re: [RDBO] ANNOUNCE: Rose::DB::Object 0.7661 released

2008-01-29 Thread Justin Ellison
John, Not really a bug, but aren't you now burning extra CPU cycles on line 166 of RDBO::Cached? As far as I can tell, removing the line doesn't change the logic any. Picking nits, but in cache operations, every last optimization counts. Justin On Tue, 2008-01-29 at 10:53 -0500, John Siracusa

[RDBO] Anyone done more advanced caching with rdbo?

2008-01-29 Thread Justin Ellison
Hi list, First, let me apologize for sending my last email to the list - I should have checked the reply-to. Anyways, I'm in the process of writing a My::DB::CHIObject that mimics and replaces RDBO::Cached and uses the CHI CPAN module. I've got it about 85% done, working with the FastMmap driver

Re: [RDBO] Anyone done more advanced caching with rdbo?

2008-01-29 Thread Jonathan Swartz
CHI works with memcached - http://cpan.uwinnipeg.ca/htdocs/CHI/CHI/ Driver/Memcached.html :) I think your proposal sounds very useful! Jon On Jan 29, 2008, at 1:52 PM, Justin Ellison wrote: > Hi list, > > First, let me apologize for sending my last email to the list - I > should > have chec

Re: [RDBO] ANNOUNCE: Rose::DB::Object 0.7661 released

2008-01-29 Thread John Siracusa
On Jan 29, 2008 5:28 PM, Justin Ellison <[EMAIL PROTECTED]> wrote: > Not really a bug, but aren't you now burning extra CPU cycles on line > 166 of RDBO::Cached? As far as I can tell, removing the line doesn't > change the logic any. Whoops, copy-and-paste-o. Fixed in SVN. Maybe I'll release it

Re: [RDBO] Sharing a DBI connection with Class::DBI

2008-01-29 Thread Sam Tregar
On Jan 29, 2008 9:55 PM, Peter Karman <[EMAIL PROTECTED]> wrote: > just a naive guess here, but if you were using DBI->connect_cached as the > underlying connect method, wouldn't DBI handle the sharing for you? > No, I'm pretty sure DBI uses the class as part of the connect_cached key. -sam

Re: [RDBO] Anyone done more advanced caching with rdbo?

2008-01-29 Thread John Siracusa
On Jan 29, 2008 6:52 PM, Justin Ellison <[EMAIL PROTECTED]> wrote: > Anyways, I'm in the process of writing a My::DB::CHIObject that mimics > and replaces RDBO::Cached and uses the CHI CPAN module. I'd be happy to roll this into the RDBO distribution as Rose::DB::Object::Cached::CHI. Let me know

[RDBO] Sharing a DBI connection with Class::DBI

2008-01-29 Thread Sam Tregar
Hey all. I'm getting started with Rose::DB::Object. My problem is I need to inter-operate with a large pre-existing Class::DBI code-base. I'd like to setup Rose to be able to share the same DBI connection that Class::DBI uses - otherwise I'll instantly double the number of connections from our w

Re: [RDBO] Sharing a DBI connection with Class::DBI

2008-01-29 Thread Peter Karman
Sam Tregar wrote on 1/29/08 8:52 PM: > Hey all. I'm getting started with Rose::DB::Object. My problem is I need > to inter-operate with a large pre-existing Class::DBI code-base. I'd like > to setup Rose to be able to share the same DBI connection that Class::DBI > uses - otherwise I'll instan

Re: [RDBO] Sharing a DBI connection with Class::DBI

2008-01-29 Thread Sam Tregar
On Jan 29, 2008 10:06 PM, John Siracusa <[EMAIL PROTECTED]> wrote: > > The "db" atribute of an RDBO-derived object "isa" Rose::DB, but each > Rose::DB-derived object "has a" DBI $dbh. IOW, plain old DBI database > handles are used via delegation in RDBO. There's no subclassing of > DBI classes a

Re: [RDBO] Sharing a DBI connection with Class::DBI

2008-01-29 Thread John Siracusa
On Jan 29, 2008 9:57 PM, Sam Tregar <[EMAIL PROTECTED]> wrote: > On Jan 29, 2008 9:55 PM, Peter Karman <[EMAIL PROTECTED]> wrote: > > just a naive guess here, but if you were using DBI->connect_cached as the > > underlying connect method, wouldn't DBI handle the sharing for you? > > > > No, I'm pre

Re: [RDBO] Sharing a DBI connection with Class::DBI

2008-01-29 Thread John Siracusa
On Jan 29, 2008 9:52 PM, Sam Tregar <[EMAIL PROTECTED]> wrote: > Hey all. I'm getting started with Rose::DB::Object. My problem is I need > to inter-operate with a large pre-existing Class::DBI code-base. I'd like > to setup Rose to be able to share the same DBI connection that Class::DBI > uses

Re: [RDBO] Sharing a DBI connection with Class::DBI

2008-01-29 Thread John Siracusa
On 1/29/08, Sam Tregar <[EMAIL PROTECTED]> wrote: > Do you happen to know if RDBO will tolerate a > DBIx::ContextualFetch based DBI handle? It should, and if it doesn't, I can probably make it do so with some minor edits. Give of a try and let me know. -John -