RE: Shared vs regular editing contexts
RE: Shared vs regular editing contexts
- Subject: RE: Shared vs regular editing contexts
- From: "Jonathan Fleming" <email@hidden>
- Date: Tue, 10 Feb 2004 17:06:53 +0000
Maybe I'm being a bit niave here, but what is wrong with simply using this
line in you contructor or method that is called when you are going to change
the content of a shared object?
EOSharedEditingContext.setDefaultSharedEditingContext(null);
It'll allow you to update, refault, refetch... you know, the normal thing
you do with EO's
Jonathan :^)
ps. sorry if I haven't understood.
From: arturo <email@hidden>
Reply-To: arturo <email@hidden>
To: email@hidden
Subject: Shared vs regular editing contexts
Date: Mon, 09 Feb 2004 12:15:51 -0500
Currently I have a problem with my editing contexts. The non-shared ones
and the default shared one interfere
with each other causing all kinds of grief. I'm sort of loathe to just
blanket turn off the shared context as my
application is read-mostly.
So, I'm asking what is the best way to keep the shared contexts happy? My
latest attempt is to just
invalidate all objects in both the updatable and the shared context. But
I'm concerned that that may
be too extreme and cause a whole bunch of unnecessary database traffic.
Should I just refault everything?
Or should I just give up on the shared contexts?
Thanks in advance
-arturo
http://webobjects.meetup.com/
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today!
http://www.msn.co.uk/messenger
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.