• 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: Saving Address Book for more than 1000 recrods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: How to synchronize two managedObjectContexts...
  • Next by Date: Re: user access privileges to plist in /library/preferences
  • Previous by thread: Re: Saving Address Book for more than 1000 recrods
  • Next by thread: disable row highlighting NSTableView
  • Index(es):
    • Date
    • Thread