Re: n00b Q:Getting a database entity count
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