Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios CoreData模型中的Fetch索引元素是什么?_Ios_Xcode_Core Data_Entity_Xcdatamodel - Fatal编程技术网

Ios CoreData模型中的Fetch索引元素是什么?

Ios CoreData模型中的Fetch索引元素是什么?,ios,xcode,core-data,entity,xcdatamodel,Ios,Xcode,Core Data,Entity,Xcdatamodel,在我的xcdatamodel中,两个新字段,byTitleIndex和compoundIndex显示在Fetch索引元素下。我以前在Xcode中没有见过这个部分。什么是获取索引元素 获取索引元素是苹果在2017年WWDC上发布的新索引API的一部分。它们允许您指定一个或多个索引元素;用于创建索引以加快数据库搜索的属性。在您的情况下,“title”属性将用于在“Passage”实体下创建一个名为“compoundex”的索引,以便更快地搜索标题 公告: 演示: 文档(向下滚动至“使用索引”):

在我的xcdatamodel中,两个新字段,
byTitleIndex
compoundIndex
显示在Fetch索引元素下。我以前在Xcode中没有见过这个部分。什么是获取索引元素


获取索引元素是苹果在2017年WWDC上发布的新索引API的一部分。它们允许您指定一个或多个索引元素;用于创建索引以加快数据库搜索的属性。在您的情况下,“title”属性将用于在“Passage”实体下创建一个名为“compoundex”的索引,以便更快地搜索标题

公告:

演示:

文档(向下滚动至“使用索引”):

这可能有帮助。。。或者,请看这个答案。这里解释。与上面提供的链接相比,我更喜欢下面给出的答案。