• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Which way is more efficient to get particular EOEnterpriseObject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Which way is more efficient to get particular EOEnterpriseObject
      • From: Pierre Bernard <email@hidden>
    • Re: Which way is more efficient to get particular EOEnterpriseObject
      • From: Ken Anderson <email@hidden>
References: 
 >Which way is more efficient to get particular EOEnterpriseObject (From: "Gennady Kushnir" <email@hidden>)
 >Re: Which way is more efficient to get particular EOEnterpriseObject (From: Pierre Bernard <email@hidden>)

  • Prev by Date: Re: Pierre, your email@hidden mailbox is full
  • Next by Date: Re: Which way is more efficient to get particular EOEnterpriseObject
  • Previous by thread: Re: Which way is more efficient to get particular EOEnterpriseObject
  • Next by thread: Re: Which way is more efficient to get particular EOEnterpriseObject
  • Index(es):
    • Date
    • Thread