English 中文(简体)
NSFetchResultyller,对非常庞大的核心数据数据库不作回应
原标题:NSFetchResultController not that responsive for very large coredata database

Im designing a dictionary App, which is having a database of minimum 220,000 entries. First I used a single Entity to store my data then after a weak performance for searching database, I changed my database design to have an Entity based on each Alphabet.

随后,由于我使用的方法是把搜索物体的所有数据打上国家航空航天局,我的表现是无法接受的(每个关键中风都把我关于冻结Torox 3 sec的《国际调查意见》),因此我改为“国家情报和安全局”。 地球资源中心使我的反应更加迅速(每个关键中线1-1.5 秘密),但这一结果仍是不可接受的。

如果你能够进一步指导我,以便我能够提高工作业绩,我将非常感激。

最佳回答

核心 数据是物体图表,你可以采用你想要的任何类型的/研究算法。 这无疑是好的......并试图轻易执行。

然而,在我这样做之前,我将使用核心数据库的新(er)特征,并增加用于你的检索的属性指数。

采用X代码,形成你的模型,并选定贵实体。 然后,就属地监察员而言,如果你给贵实体名称,就有一个地方可以制定搜寻指数。 令人惊讶的是,它被称为“Indexes”。

附上你在座各位的属性。 然后,该数据库将维持一个该领域的指数,在你查询时,你将不必直线查询整个数据库。

问题回答




相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签