Re: Fetching record counts.
Re: Fetching record counts.
- Subject: Re: Fetching record counts.
- From: Anjo Krank <email@hidden>
- Date: Tue, 1 Feb 2005 21:56:30 +0100
Am 01.02.2005 um 20:10 schrieb Chuck Hill:
Here are some other counting implementation that I have gleaned from
the list. Perhaps they are of interest?
Instead of adding an attribute to the model, it'd be better to get the
expression factory, create the statement with the FS, remove the stuff
until the " FROM " and add a "SELECT count(*) " in it's stead. Then
execute it and fetch the row count. Threadsave and still
model-compliant. Adding the attribute at runtime just can't be made
thread-save (locking the OSC won't help, because eg. D2W just accesses
model data and doesn't fetch)
Cheers, Anjo
_______________________________________________
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