2017-12-06 11 views
6

내 xcdatamodel에서 두 개의 새로운 필드, byTitleIndexcompoundIndex이 색인 요소 가져 오기 아래에 표시됩니다. Xcode에서이 섹션을 보지 못했습니다. 인덱스 요소 가져 오기 란 무엇입니까?CoreData 모델에서 인덱스 요소 가져 오기는 무엇입니까?

Screenshot of Xcode xcdatamodel highlighting compoundIndex field

+0

https://stackoverflow.com/questions/44386614/ios -cant-compile-coredata-model-fetched-index-in-xcode-9는이 도움말 – narasimha

+0

... 또는 [this] (https://stackoverflow.com/a/45922581/3985749) 일 수 있습니다. – pbasdf

답변

6

색인 요소가 WWDC 2017 그들은 하나 이상의 인덱스 요소를 지정할 수에서 발표 애플의 새로운 인덱싱 API의 일부입니다 가져 오기; 빠른 데이터베이스 검색을위한 색인을 작성하는 데 사용되는 특성. 귀하의 경우, "제목"속성은 "통과"엔티티 아래에 "compoundIndex"라는 색인을 작성하는 데 사용되어 더 빠른 제목 검색을 허용합니다.

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

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

문서 ("인덱스 작업"으로 스크롤) : https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel

+0

더 많은 내용으로 형식화 된 답변을 제공하십시오. – Billa