Question

When using intensively UIDocument with iCloud on multiple devices, lots of transaction logs will be saved to iCloud. This will lead to a reduction of free space on iCloud on a long term use.

I wonder if there is a way to clean these logs without losing data, i.e. the devices should still be able to restore the current data state? Some kind of consolidation of logs?

Was it helpful?

Solution

You don't get to manage transaction logs after they're created. There's no API for it and no other support for doing so. They're supposed to be managed automatically to prevent excessive growth. If they're not, file a bug with Apple, because they're the ones who should be doing this.

You can influence the creation of transaction logs a bit-- they get created when you save changes. The more frequently you save, the more transaction logs you get. If you can reduce the frequency of saves without risking losing changes or otherwise interfering with safe, reasonable operation, then you can reduce the numer of transaction logs up front. One they exist though, they're out of your hands.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top