Если я индексирую свойство, и в запросе я не использую предложение orderBy, будет ли использоваться индекс?iOS DBAccess индексирование свойства
Пример кода:
DBIndexDefinition* index = [[DBIndexDefinition alloc] init];
[index addIndexForProperty:@"prop1" propertyOrder:DBIndexSortOrderAscending | DBIndexSortOrderDescending | DBIndexSortOrderNoCase secondaryProperty:@"prop2" secondaryOrder:DBIndexSortOrderAscending | DBIndexSortOrderDescending | DBIndexSortOrderNoCase];
prop1 и prop2 имеют тип NSString.
Спасибо!