sqlite Indexing Performance Advice

后端 未结 4 1033
广开言路
广开言路 2020-12-10 09:32

I have an sqlite database in my iPhone app that I access via the Core Data framework. I\'m using NSPredicates to query the database.

I am building a search function

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-10 10:02

    I assume these columns store text. The question is how much text and how often this model is accessed. If it is a large amount of text, I would create other properties that held the text, stripping common words and Unicode text. The only downside to this is that you end up with extra properties to maintain. You can do any indexing to improve perf on those columns.

提交回复
热议问题