在哪些情况下我应该索引核心数据属性?
当我按它排序时?
fetchRequest.sortDescriptors = [NSArray arrayWithObject:[NSSortDescriptor sortDescriptorWithKey:@"name" ascending:YES selector:@selector(localizedStandardCompare:)]];
当我过滤它时?
fetchRequest.predicate = [NSPredicate predicateWithFormat: @"name BEGINSWITH[cd] %@", searchString];
还有其他情况吗?