Are you suggesting we use the @Index annotation only on fields that are part of RealmQuery to make…
rachelmarsdendox
1

> Are you suggesting we use the @Index annotation only on fields that are part of RealmQuery to make it faster?

Yes, that’s exactly what I meant. You need the @Index annotation if you use distinct(), but you should use it for contains, equalTo, etc.

But you don’t need the annotation on fields that you don’t use in query.

Also, Realm returns objects in the results, which means it returns all fields.