Live_Objects abstraction

[prev] [thread] [next] [Date index for 2004/06/30]

From: Boris Sukholitko
Subject: Live_Objects abstraction
Date: 18:43 on 30 Jun 2004
Hi,
	When testing version 0.96 I've got bitten by newly introduced
Live_Objects hash.

	In several places in my application I'm updating database tables
directly. Naturally, I am seeing incorrect objects which have been left
behind in Live_Objects hash.

	I see three ways of dealing with the problem:

1) Fix my application: certainly possible but non-trivial. I
would strongly prefer to do it gradually.

2) Refactor Class::DBI::_init to abstract Live_Objects insertion
operation. This way I can overload this operation in the derived class
and get the old semantics back. I will be willing to provide the needed
patch if this approach seems acceptable.

3) Overloading _init function of my deriving class to unconditionally 
clear %Live_Objects. This seems to be the fastest way of me to upgrade to version
0.96. I think I will go this route if the refactoring is unrealistic for
some reason.

	What do you think?

Thanks,
	Boris.

Live_Objects abstraction
Boris Sukholitko 18:43 on 30 Jun 2004

Re: Live_Objects abstraction
Perrin Harkins 19:09 on 30 Jun 2004

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