Over time your Codebook database will grow in size. Not only because of adding data, but also as a result of performing many sync operations.
Codebook stores additional information to track changes to your database which assist in making decisions on what to exchange when performing a sync operation. Codebook currently can’t determine when to clean out this tracking information because it’s unknown whether these changes have been synced with all instances of Codebook.
We’ve included a new feature in Codebook for macOS and Codebook for Windows called Compact Database (found under the File menu) which cleans out this tracking information and reclaims space in your database.
You have to sync all your changes with each copy of Codebook before your database can be compacted, or your changes will be lost.
Compacting your database may substantially reduce its size and speed up sync operations.
Here are the steps for how to properly compact your database and have it propagate to all your other copies of Codebook:
- Sync every copy of Codebook to ensure that all changes are seen (the Compact Database feature isn’t permitted if you haven’t synced in the last 5 minutes).
- Go to File → Compact Database…
If you’re using a Cloud sync provider: Perform an Overwrite operation from the database you just compacted, and then Restore operation from every other device you use Codebook on.
If you’re using WiFi sync: Perform a Restore operation from every other device you use Codebook on (restoring from the database you just compacted).
If you’re using Local Folder sync: Perform an Overwrite operation from the database you just compacted. If any other Codebook devices are syncing with the same Local Folder, perform a restore operation from those devices.
That’s it! Continue syncing as regular afterwards.
Note: There should be no need to compact your database frequently. Most likely annually or semiannually is enough.