• 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: Fetching record counts.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Fetching record counts. (From: Chuck Hill <email@hidden>)
 >Re: Fetching record counts. (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Status of Windows support
  • Next by Date: Re: Status of Windows support
  • Previous by thread: Re: Fetching record counts.
  • Next by thread: Re: Fetching record counts.
  • Index(es):
    • Date
    • Thread