What are Fetch Index Elements in the CoreData Model?

这一生的挚爱 提交于 2019-12-05 00:45:55

Fetch Index Elements are part of Apple’s new indexing API, announced at WWDC 2017. They allow you to specify one or more Index Elements; properties that are used to create an index for faster database searches. In your case, the "title" property will be used to create an index called “compoundIndex” under your "Passage" entity, allowing for faster title searches.

Announcement: https://developer.apple.com/videos/play/wwdc2017/210/?time=628

Demo: https://developer.apple.com/videos/play/wwdc2017/210/?time=997

Documentation (scroll down to "Working with Indexes"): https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!