Re: Clearing the application's object cache
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.
|
_______________________________________________
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