narraycontroller sort performance problems
narraycontroller sort performance problems
- Subject: narraycontroller sort performance problems
- From: Richard <email@hidden>
- Date: Thu, 17 Dec 2009 16:22:23 +0100
hey
i have an app that performs searches over a network connection. the app uses
core data to manage all the search requests (currently using an in memory
store), with an array controller and table view bound to the relevant
results. a search query produces up to about 10000 results, and they are
added to the data model in batches of 10 or so. this all works well, until i
add sorting to the array controller. i then find that the CPU use of the
application stays at 100% and things go pretty slowly from that point on.
i assume this is because with each new search result that is being retrieved
and added to the core data model, the array controller is resorting the
entire collection of search results? can anyone suggest a solution to this
problem?
thanks
_______________________________________________
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