[Dbix-class] Re: Help with serialized objects -> old dbic

Peter Rabbitson rabbit+dbic at rabbit.us
Thu Sep 20 10:05:54 GMT 2012


On Wed, Sep 19, 2012 at 06:37:30AM -0700, Bill Moseley wrote:
> On Wed, Sep 19, 2012 at 3:38 AM, Peter Rabbitson <rabbit+dbic at rabbit.us>wrote:
> 
> > >
> > > Only thing I can think of is to hunt down every place an object is
> > > serialized and thawed and just store an ID and then refetch from the
> > > database on thaw.  Kind of defeats the entire purpose of caching these in
> > > the first place.
> > >
> >
> > Did you ever resolve this, or do you still need help?
> >
> 
> Not really.   We decided the effort needed to make old and new DBIC share
> serialized items was just worth the time and instead did something like I
> quoted above.  Turned out there were only a few serialized items and they
> were in the session.  So, during our migration (where we will have both old
> and new DBIC in the same pool of web servers) we just delete the objects
> from the session at the end of every request.   We don't think this will be
> a significant impact on our database.

Right, the problem here is that the class layout changed between the two 
versions. I will need to think about fixing that, as it isn't trivial. Glad 
you found a workaround for the time being.



More information about the DBIx-Class mailing list