Re: Class::DBI::Factory and Apache::DBI don't play nice

[prev] [thread] [next] [Date index for 2004/11/21]

From: Perrin Harkins
Subject: Re: Class::DBI::Factory and Apache::DBI don't play nice
Date: 03:12 on 21 Nov 2004
William Ross wrote:
> The version of CDF that's on CPAN isn't up to date with Perrin's object 
> cache. You need to add a:
> 
> $Class::DBI::Weaken_Is_Available = 0;     # disables unique-object stash

Why is that?  Because the object index is class data but CDF is changing 
the database underneath?  Maybe we could incorporate a unique identifier 
for the database connection into the object index key.

> It also, separately, doesn't get on with Apache::DBI. I believe that's a 
> general issue with Ima::DBI and Apache::DBI disagreeing about the 
> caching of handles and not something that I've introduced, but if anyone 
> would like to disagree I'd be delighted to fix it.

It's probably not your fault, but you'd have to describe the problem to 
be sure.  The big issue with Apache::DBI and Ima::DBI is that Ima::DBI 
caches the handles in closures and doesn't go back to Apache::DBI when 
you ask for them again, so the cleanup handler with the automatic 
rollback for transactional databases doesn't get pushed onto the stack 
by Apache::DBI.

- Perrin

(message missing)

Class::DBI::Factory and Apache::DBI don't play nice
Alexander =?iso-8859-1?Q?Gr=E4fe?= 21:34 on 19 Nov 2004

Re: Class::DBI::Factory and Apache::DBI don't play nice
Alexander =?iso-8859-1?Q?Gr=E4fe?= 22:35 on 19 Nov 2004

Re: Class::DBI::Factory and Apache::DBI don't play nice
Alexander =?iso-8859-1?Q?Gr=E4fe?= 08:13 on 20 Nov 2004

Re: Class::DBI::Factory and Apache::DBI don't play nice
Perrin Harkins 03:12 on 21 Nov 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52