Re: Class::Data::Inheritable and persistence.

[prev] [thread] [next] [Date index for 2004/07/07]

From: Vince Veselosky
Subject: Re: Class::Data::Inheritable and persistence.
Date: 22:59 on 07 Jul 2004

Tony Bowden wrote:

>On Wed, Jul 07, 2004 at 05:56:49PM -0400, Vince Veselosky wrote:
>  
>
>>I was just curious to know if anyone had examined how this might effect 
>>CDBI apps under mod_perl, or had experienced any problems with it.
>>    
>>
>
>Why would it be a problem? This is class data we're talking about. It's
>meant to be persistent... Every instance of the class is supposed to
>have the same data.
>  
>
I suppose it is fine, as long as none of the data is meant to be changed 
at run time. If any of these properties were set during a request based 
on some condition, the next request might get the conditionally set 
value from the previous request, rather than the expected default. I'm 
not familiar enough with CDBI to know whether this might occur, so I 
thought I would mention it. If that kind of thing just doesn't happen, 
then I guess there is nothing to worry about.

I only noticed it because I was storing a Logger type object in a class 
property (so that my entire class hierarchy could use a uniform logging 
interface), and I got strange behavior because the object persisted.

-Vince

(message missing)

Class::Data::Inheritable and persistence.
Vince Veselosky 21:56 on 07 Jul 2004

Re: Class::Data::Inheritable and persistence.
Tony Bowden 22:03 on 07 Jul 2004

Re: Class::Data::Inheritable and persistence.
Vince Veselosky 22:59 on 07 Jul 2004

Re: Class::Data::Inheritable and persistence.
Tony Bowden 08:44 on 08 Jul 2004

Re: Class::Data::Inheritable and persistence.
Vince Veselosky 10:51 on 08 Jul 2004

Re: Class::Data::Inheritable and persistence.
Michael G Schwern 20:13 on 08 Jul 2004

Re: Class::Data::Inheritable and persistence.
Tony Bowden 23:13 on 08 Jul 2004

Re: Class::Data::Inheritable and persistence.
Michael G Schwern 00:45 on 09 Jul 2004

Re: Class::Data::Inheritable and persistence.
Perrin Harkins 03:51 on 09 Jul 2004

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