Re: [CDBI] Re: uniqueness of objects in memory??

[prev] [thread] [next] [Date index for 2005/10/25]

From: Rod McChesney
Subject: Re: [CDBI] Re: uniqueness of objects in memory??
Date: 03:15 on 25 Oct 2005
If the user object has been GC'ed then the object index won't see it,
right? Does the Catalyst session serialize the object in some way,
e.g. FreezeThaw or Data::Dumper? That would do it, I imagine...

Rod

On 10/24/05, Phil Mitchell <phil@xxxxxxx.xxx> wrote:
> On 10/24/05, Perrin Harkins <perrin@xxxx.xxx> wrote:
> > On Mon, 2005-10-24 at 15:07 -0700, Phil Mitchell wrote:
> > > OTOH, I can run essentially the same code inside a single template
> > > inside my app:
> > >
> > > [% prefs.home_page %]<br>  =3D> X
> > > [% user.prefs.home_page %]<br>  =3D> X
> > >
> > > [% prefs.home_page('Y') %]<br>
> > > [% prefs.update() %]<br>
> > >
> > > [% prefs.home_page %]<br>  =3D> Y
> > > [% user.prefs.home_page %]<br> =3D> X
> > >
> > > ...and see the weird behavior.
> >
> > Possible cloning side effects from the TT stash?
> >
> > You can identify if the two refs are pointing to the same object by
> > printing their refaddr() values with Scalar::Util.
>
> Yes, they are indeed different! However, my tests suggest it's not an
> issue with TT stash cloning. Using refaddr, I can watch what happens
> in my controller, and they're distinct before they ever get to the
> stash. Apparently CDBI can't see the Prefs object that's referenced by
> the User object that's stored in the catalyst session object. I'm
> suspicious of the session object, bc I've been able to replicate this
> behavior with another class, just by sticking it into the session
> object.
>
> For sanity's sake, here's the sequence:
>
> User logs in and User object is saved to session
> User has a prefs object
> User wants to edit prefs
> Prefs object is retrieved from db
> Prefs object is updated
> User->prefs is not refreshed
>
>
>
>
> >
> > - Perrin
> >
> >
>
>
> --
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
> 2People Blog: http://2-people.blogspot.com/
> 2People site: http://www.2people.org
>
> _______________________________________________
> ClassDBI mailing list
> ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
> http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi
>

_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

(message missing)

[CDBI] uniqueness of objects in memory??
Phil Mitchell 03:32 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
Perrin Harkins 16:12 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
Phil Mitchell 17:42 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
Perrin Harkins 18:41 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
Christopher H. Laco 18:53 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
Phil Mitchell 19:43 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
William Ross 19:50 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
Phil Mitchell 19:35 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
Perrin Harkins 19:52 on 24 Oct 2005

[CDBI] Re: uniqueness of objects in memory??
Edward J. Sabol 19:47 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Perrin Harkins 19:54 on 24 Oct 2005

[CDBI] Re: uniqueness of objects in memory??
Edward J. Sabol 20:03 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Phil Mitchell 20:18 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
Christopher H. Laco 19:46 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
Christopher H. Laco 19:56 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Michael Peters 20:23 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Phil Mitchell 20:31 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Bill Moseley 20:46 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Phil Mitchell 21:30 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Phil Mitchell 22:07 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Perrin Harkins 22:13 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Phil Mitchell 23:34 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Rod McChesney 03:15 on 25 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Phil Mitchell 03:48 on 25 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Perrin Harkins 04:18 on 25 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Phil Mitchell 06:08 on 25 Oct 2005

Generated at 14:18 on 27 Oct 2005 by mariachi v0.52