Live_Objects abstraction
[prev]
[thread]
[next]
[Date index for 2004/06/30]
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
|