Re: Fetching all Objects at once

Susanne Schneider <[email protected]> Thu, 11 Sep 2003 21:06:47 +0200
Newsgroups gmane.comp.web.webobjects.eof
Message-ID <[email protected]>
Hallo Oliver,


> From: "Oliver Runge" <[email protected]>

> Currently I'm facing a challenge that I've not been able 
> to find a solution for as of now.
> 
> I got two entities in my model, key and value. For 1 key I 
> can have an infinite amount of values (one for every user 
> that uses the application). So when I programmatically 
> fetch the key and access a value to it EO seems to fetch 
> all the values in that relationship (NSArray) at once. 
> 
> Since the number of values is rather large that takes 
> quite some time. So what I'm looking for is a way to keep 
> EO from getting all the objects that are related to the 
> key I got and rather only fetch the ones I'm actually 
> accessing one at a time.
> 
> Is there a way to do that?
>

You could try it just the other way round: make a qualifier on the 
entity "value" that matches in the two criteria, one for the attribute 
"key" the other for the access by date or whatever you may choose to 
filter the values for display/access.

HTH
Susanne


-- 
Susanne Schneider
secuSuite Development
Coordinator

iAS interActive Systems
Gesellschaft fuer interaktive Medien mbH
Dieffenbachstr. 33 c
10967 Berlin
Germany

fon    +49(0)30 69004-143
fax    +49(0)30 69004-101
mail   [email protected]
URL    http://www.interActive-Systems.de