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

Bill Moseley moseley at hank.org
Wed Sep 19 13:37:30 GMT 2012


On Wed, Sep 19, 2012 at 3:38 AM, Peter Rabbitson <rabbit+dbic at rabbit.us>wro=
te:

> >
> > 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.

Thanks,



-- =

Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20120919/d5b=
d27df/attachment.htm


More information about the DBIx-Class mailing list