__realm_sync history taking up all the storage

Hi there, this seems to be a recurring issue for me where __realm_sync history is taking up all the storage. Are there best practices that I should be following? I had compaction turned on, but it doesn’t seem to be effective. My history is 470mb in size, but my actual database is only 40 mb in size.

Effectively, our App creates a large set of objects for each “run”, and then after it accumulates 10 runs, it starts deleting the old objects to make sure to clear space. Is that contributing to the large history?