SwiftData Cascade delete results in N+1 queries?
I have a very simple one-to-many relationship between two models where a Trail
has many Coordinate
s. This relationship is configured with cascading deletes. However, when I delete a single Trail, I get N+1 delete queries.
Swift Data Query only showing partial information?
I have an issue with Swift Data persistence on a sample app I’m working on.
Complex model relation in SwiftData
I’m having trouble solving the following problem. I want to create a workout app where the user can see their workout history and exercise progress. To achieve this, I’m using SwiftData to model the relationship between workouts and exercises in such a way that: