I'm interested to see if this is the same issue I'm experiencing.
Does CPU usage remain high indefinitely? ie. ~100%? I'm also seeing memory utilisation spike but not continusouly growing.
I have a 1 to many relationship instead of directly an array of images.
My child class is like this:
@Model
final class SavedLocationImage {
@Attribute(.externalStorage)
var image: Data
@Relationship(inverse: \SavedLocation.images)
var location: SavedLocation
init(image: Data) {
self.image = image
}
}
It seems to be that when I have one or more items in the collection it's causing continuous view updates.. I think