#Predicate in @Query causes memory leak

In SwiftData, the latest betas are not allowing me to use predicates such as num < 3000 because it causes a memory leak that crashes the app. This is really weird and if anybody has found a workaround please tell me.

Thanks.

I have observed this as well. I'm currently running Xcode 15 Beta 6 on Sonoma Beta 5. While my app doesn't crash as a result of a memory leak, I just slowly see the memory consumption go up. Other notable issues include 100% CPU usage, which blocks the main thread and therefore makes my app's UI unresponsive.

I've noticed this as well - 100% CPU usage and occasional memory leak behavior. Removing the predicate/filters from the query resolved the issue. Very strange.

#Predicate in @Query causes memory leak
 
 
Q