Database compacting always increases size…

Tap Forms – Organizer Database App for Mac, iPhone, and iPad Forums Using Tap Forms Database compacting always increases size…

Viewing 2 reply threads
  • Author
    Posts
  • July 17, 2017 at 6:04 AM #23728

    Joel Blackwell
    Participant

    Compacting always seems to increase the database size. From less than a MB to over a MB. Just now, from 7MB to over 10MB. Why is this?

    July 18, 2017 at 7:14 PM #23731

    Brendan
    Keymaster

    Because the SQLite engine is writing a “Write Ahead Log” file when it compacts. So that’s what increases the size. But if you quit and launch again, it goes back down to normal.

    But also, the compact operation purges deleted records and unreferenced attachments. So if you never deleted any records, then the size won’t probably be reduced much. But if you’ve delete a bunch of records, then you’ll see the compact function make a difference.

    July 18, 2017 at 10:23 PM #23732

    Joel Blackwell
    Participant

    Thanks for the explanation!

Viewing 2 reply threads

You must be logged in to reply to this topic.