• 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: Best practice for exporting big data...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best practice for exporting big data...


  • Subject: Re: Best practice for exporting big data...
  • From: Kieran Kelleher <email@hidden>
  • Date: Tue, 5 Dec 2006 07:51:06 -0500

Hi James,

Another thread may help, but for long EOF intensive tasks, a new ObjectStoreCoordinator (new db connection) can be better. I have some long processes that hammer the db generating report data for 10 to 15 seconds and I find this approach works well to not block all users of the app. It also is much faster.

// Create a new EOF stack (includes new connection to the db)
EOObjectStoreCoordinator longTaskCoordinator = new EOObjectStoreCoordinator();


// Use the separate EOF stack
EOEditingContext ec = new EOEditingContext( longTaskCoordinator );

NSArray objects = ec.objectsWithFetchSpec ..... etc.

Cheers, Kieran

On Dec 4, 2006, at 9:53 PM, James Cicenia wrote:

Hello -

I have created a nice custom report generator based upon D2W and it works
like a charm except for the occasional bad problem.


If a person doesn't filter the selection and pulls all the data with all the attributes
it can cause my server to basically deny others.


Do I have to put this process in a different thread? Do I have to use a long response
page?


Thanks
James Cicenia

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com


This email sent to 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
  • Follow-Ups:
    • Re: Best practice for exporting big data...
      • From: Eugene Khablov <email@hidden>
    • Re: Best practice for exporting big data...
      • From: James Cicenia <email@hidden>
    • Re: Best practice for exporting big data...
      • From: Kieran Kelleher <email@hidden>
References: 
 >Best practice for exporting big data... (From: James Cicenia <email@hidden>)

  • Prev by Date: Best practice for exporting big data...
  • Next by Date: Re: Best practice for exporting big data...
  • Previous by thread: Best practice for exporting big data...
  • Next by thread: Re: Best practice for exporting big data...
  • Index(es):
    • Date
    • Thread