• 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: n00b Q:Getting a database entity count
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: n00b Q:Getting a database entity count


  • Subject: Re: n00b Q:Getting a database entity count
  • From: Johann Werner <email@hidden>
  • Date: Sun, 15 Jun 2008 22:17:03 +0200

Hi Rams,

calling entity.relationship.count would fault all objects. Look at http://wiki.objectstyle.org/confluence/display/WOL/Count+To-Many+Objects+without+Loading where you get a more recent code snippet for solving your problem.

jw

Am 15.06.2008 um 20:53 schrieb Rams:

Hi everybody,

I was wondering if anyone had some "best practices" advice on fetching a count on a to-many relationship. I'm concerned that if I do a simple entity.relationship.count that I'm going to be faulting every EO in the relationship... is that the case? In searching for an answer, I stumbled upon some rather old code here:

http://www.wodeveloper.com/omniLists/webobjects-admin/2005/February/msg00000.html

I am wondering if that code is still relevant. Is there a built in way to do this these days? Or does entity.relationship.count "just work?"

Thanks everyone! _______________________________________________
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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: n00b Q:Getting a database entity count
      • From: Rams <email@hidden>
References: 
 >n00b Q:Getting a database entity count (From: Rams <email@hidden>)

  • Prev by Date: Re: Using ERMemoryAdaptor
  • Next by Date: Re: ReportMill can't find Framework?
  • Previous by thread: n00b Q:Getting a database entity count
  • Next by thread: Re: n00b Q:Getting a database entity count
  • Index(es):
    • Date
    • Thread