Is there anyway to disable SwiftData’s History tracking?

I know there are hacks to delete it once it’s saved and that you lose a lot of “free” SwiftData features (like undo/redo, multiprocess access, and CloudKit sync to name a few), but my app doesn’t use those and most disk I/O is taken up by just maintaining/saving the history!

A graph of my app’s resource usage. CPU hovers near 0% while Disk usage is consistently high. It’s heating up my iPhone!
0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/rosyna/statuses/115912176844865070 on your instance and quote it. (Note that quoting is not supported in Mastodon.)