Re: Saving Address Book for more than 1000 recrods
Re: Saving Address Book for more than 1000 recrods
- Subject: Re: Saving Address Book for more than 1000 recrods
- From: Ben Trumbull <email@hidden>
- Date: Wed, 1 Apr 2009 13:39:12 -0700
On Apr 1, 2009, at 7:17 AM, Vijay Kanse wrote:
is This a behavior of address book for more than 1000 records ? if
it is,
how can i fix it?
You can't. As you've discovered, the AddressBook framework is rather
slow when it comes to large batch operations, and has been since they
switched from Metakit to CoreData in Leopard. You'll just have to wait
for it to finish, because I will be very surprised if the framework
turns out to be thread-safe.
You can create a new AB on a background thread (e.g. not the default
sharedAddressBook) and save in the background to avoid blocking the
main thread.
If you have performance issues, you should file them with bugeport.apple.com
. In situations like this, Shark traces are very helpful.
- Ben
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden