I have noticed that I make a lot of reads on a UUID field. I decided to put an index on that property:
@Persisted(indexed: true)
The problem is it won’t compile:
(14, 6) Referencing initializer ‘init(indexed:)’ on ‘Persisted’ requires that ‘UUID._RealmValue’ (aka ‘UUID’) conform to ‘_Indexable’
According to the documentation, " Realm supports indexing for string, integer, boolean, Date , UUID , ObjectId , and AnyRealmValue properties.". New in version 10.8.0 : UUID
I’m using the Realm cocoa version: 10.20, so it should work, right?