Strange behavior when I prefetch to-many relationships
Strange behavior when I prefetch to-many relationships
- Subject: Strange behavior when I prefetch to-many relationships
- From: Dario Bagatto <email@hidden>
- Date: Wed, 24 Dec 2003 09:30:42 +0100
Hi all,
I have a real problem that drives me nuts with a JavaClient
application and WO5.2.1.
I have a model with to entities one is OBJECTS the other PROPERTIES.
OBJECTS has a to many relationship to PROPERTIES lets call it
OBJ_2_PROP.
With the Java Client application I fetch a bunch of OBJECTS with a
simple qualifier on the primary key. I set prefeteching in the fetch
specification for the OBJ_2_PROP relationship.
I can see that the fetch for the OBJECTS and the fetch for the
corresponding PROPERTIES are issued to the database and the SQL is
correct. The returned number of rows is what i expect. So far so good.
Now in a Java client when I fetch a larger number of OBJECTs very
often (but without a real pattern) about a third of my PROPERITES are
still faults (a normal fault not a deferred fault) although they
should be fully initialized after the prefetch.
I experience the same with other entities in my model when I try to
prefetch their to many relationships.
Any idea what's wrong here?
I wish you all a merry Christmas.
Dario
--
_______________________________________________
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.