• 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: Clearing the application's object cache
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clearing the application's object cache


  • Subject: Re: Clearing the application's object cache
  • From: Robert Walker <email@hidden>
  • Date: Thu, 3 Aug 2006 16:41:05 -0400

Ricardo,

I have no idea how complex your calculations are or how long you process take to run, but I have a couple of suggestions that might help.

1. If your calculation don't involve relational data then you can gain considerable speed, and lower memory footprint, by using raw row fetching.
2. If your calculations take more than a few seconds to execute consider running the process in a thread.  This is especially true if you're starting the process from a direct action and are not concerned with providing return data to the calling process.  I have developed my own design pattern for cases like this, which I'd be happy to share if you're interested.

Great responses and I'm getting some ideas.... Here's some more details:

Here's a simplistic view of how my process should work:

1. Wait for work a request to arrive
2. Read the EOs needed to process the work request
3. Perform calculations for the work request
4. Save changes
5. Invalidate the application's EO cache
6. Go back to #1.

--
Robert Walker
email@hidden



 _______________________________________________
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: 
 >Clearing the application's object cache (From: Ricardo Parada <email@hidden>)
 >Re: Clearing the application's object cache (From: Ken Anderson <email@hidden>)
 >Re: Clearing the application's object cache (From: Ricardo Parada <email@hidden>)
 >Re: Clearing the application's object cache (From: Ken Anderson <email@hidden>)

  • Prev by Date: Re: Event update ; notice
  • Next by Date: Re: Event update ; notice
  • Previous by thread: Re: Clearing the application's object cache
  • Next by thread: Re: Clearing the application's object cache
  • Index(es):
    • Date
    • Thread