Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Best Practice EC Locking for Direct Actions/Concurrent Requests



I have been following the locking discussion and it has been very helpful, thanks.

We have an application that uses a lot of DirectActions to display data to the user. They often contain ECs that are used to fetch data from the DB for display. With the locking logging turned up, they generate a lot of complaints from EOF for locking violations...

This application has concurrent requests turned ON.

What is the best practice for locking/unlocking ECs used in this way? Will locking the EC used to fetch data in a DirectAction block other users that are using the application concurrently (via concurrent request handling)?

When fetching data for a page accessed via a DirectAction, is it considered better to do the fetch in the component constructor or the calling DirectAction?

Thanks,
Hunter
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.