On Sep 18, 2007, at 11:37 AM, Daniele Corti wrote:
2007/9/18, Kieran Kelleher <[EMAIL PROTECTED]>:
Not sure if I fully understand what you are doing, but
1) all changes to objects must be made in an EditingContext
2) To get freshest data, create a new editing context and set its
fetch timestamp lag to current time before fetching into it.
I use only session().defaultEditingContext(). Can I set it's fetch
timestamp lag, without problems?
Yes you can .... you could even set it to now minus 1 minute or 5
minutes. Sometimes developers use a strategy whereby this timestamp
lag is set for now minus X in session sleep or somewhere like that.
Be aware though that having a timestamp lag that is always being set
to now or a very short time ago for all sessions can cause excessive
database traffic and lessen the benefit of EOF's caching ability.
HTH, Kieran
On Sep 18, 2007, at 11:05 AM, Daniele Corti wrote:
Hi all,
I don't know why but my apps seem to hate me today...
I've prepared a direct action to populate some EOs relations by a
xls file, by HSSF, and it works perfectly ;-)
Ok, and then, watchin at my EOs, throught an
ec.objectWithFetchSpecification, I notice that none changes has
been applied.
I looked in the logs, and I see that Objects where correctly
created but, calling the relation get method, the objects are not
displayed!
I also used an EOFetchSpecification with
setRefreshesRefetchedObjects(true), so I don't know why the
objects are not displayed!
is there another way to force the refetch of a relationship?
--
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]
--
Computers are like air conditioners -- they stop working properly
if you open
WINDOWS
--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%
40mac.com
This email sent to [EMAIL PROTECTED]
--
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]
--
Computers are like air conditioners -- they stop working properly
if you open
WINDOWS
--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]