Re: Which way is more efficient to get particular EOEnterpriseObject
Re: Which way is more efficient to get particular EOEnterpriseObject
- Subject: Re: Which way is more efficient to get particular EOEnterpriseObject
- From: Paolo Sommaruga <email@hidden>
- Date: Thu, 16 Aug 2007 23:00:05 +0200
Hi Pierre,
please,
Il giorno 16/ago/07, alle ore 19:18, Pierre Bernard ha scritto:
[...]
- just fetch required object regarding mentioned relationship as
just one
of attributes involved
A to-many is always the inverse of a to-one. You could qualify
objects using that to-one.
how one can you "qualify objects using that to-one" ? Can you explain
a little more ?
Regards
Paolo Sommaruga
I have done this on relationships having 300000-500000 objects. For
100 it is overkill in both code to write and IO accesses.
- index that array converting it into actual multi-dimensional as
mentioned above (using pure Java multidimensional arrays or nesting
NSArrays/NSDictionaries)
I would recommend this if you need to get multiple objects from the
same relationship or if you repeatedly need to get to the object.
There is no point in scanning the array over and again.
You can listen to EOF notifications to see when your cache goes stale.
Pierre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden