Originally created by @idsky2 on GitHub (Apr 13, 2022).
In CoreData it is possible to set isIndexed to improve searches on a field.
I don't see any way to do that with the CoreStore @Field syntax.
Originally created by @idsky2 on GitHub (Apr 13, 2022).
In CoreData it is possible to set isIndexed to improve searches on a field.
I don't see any way to do that with the CoreStore @Field syntax.
adam
added the question label 2025-12-29 15:30:40 +01:00
@JohnEstropia commented on GitHub (Apr 14, 2022):
It's not set on the `@Field` level, but the schema level:
```swift
let dataStack = DataStack(
CoreStoreSchema(
modelVersion: "V1",
entities: [
Entity<Animal>("Animal"),
Entity<Dog>("Dog", indexes: [[\Dog.$nickname, \Dog.$age]]),
Entity<Person>("Person")
]
)
)
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @idsky2 on GitHub (Apr 13, 2022).
In CoreData it is possible to set isIndexed to improve searches on a field.
I don't see any way to do that with the CoreStore @Field syntax.
@JohnEstropia commented on GitHub (Apr 14, 2022):
It's not set on the
@Fieldlevel, but the schema level: