Skip to content

A local-first personal finance app

Add faq about budget file size shrinking (#816)

Matiss Janis Aboltins6c58e77ebb12
diff --git a/docs/backup-restore/backup.md b/docs/backup-restore/backup.md
index 7dad681e08..7f11b9a14c 100644
--- a/docs/backup-restore/backup.md
+++ b/docs/backup-restore/backup.md
@@ -6,6 +6,8 @@ If your budget is very old, you may have trouble restoring large backups. If you
:::
+**Why does resetting sync reduce file size?** By default, Actual stores all mutations in the budget file. Every time you add a transaction, change a payee, add notes, create rules, delete a schedule, etc., a new entry is created in the budget file. This causes the file to grow over time. When you reset sync or export/re-import, all those historical changes are compressed into a single file, significantly reducing the size.
+
You can export your data from Actual at any time. To do so:
1. Login to your budget, click 'More' > 'Settings'
diff --git a/docs/faq.md b/docs/faq.md
index baf2470ded..a667c44987 100644
--- a/docs/faq.md
+++ b/docs/faq.md
@@ -48,6 +48,12 @@
in a category. Actual's default assumption is that you can pay off any card in full at any time and
not touch your budget to do it. (Credit: evequefou)
+- **Q.** _My budget file size has recently significantly shrunk. Why?_
+
+ **A.** By default, Actual stores all mutations in the budget file. Every time you add a transaction, change a payee, add notes, create rules, delete a schedule, etc., a new entry is created in the budget file. This means the file naturally grows over time as it accumulates all these changes.
+
+ However, if you either click "Reset Sync" or export and re-import a file, we squeeze all those tiny changes into a single file. This process removes all the historical changes and significantly reduces the file size. This is normal behavior and not a cause for concern.
+
- **Q.** _Does Actual Budget have an API? What are the endpoints?_
**A.** Actual does not have a REST API with endpoints that you can just call. However, we do have an API NPM package that allows programmatic access to the budget. It runs the UI in _headless_ mode and allows performing many of the same operations that you can perform by clicking around the UI.
diff --git a/docs/getting-started/sync.md b/docs/getting-started/sync.md
index f4df0f1b63..71afe80cec 100644
--- a/docs/getting-started/sync.md
+++ b/docs/getting-started/sync.md
@@ -57,6 +57,8 @@ A few scenarios where you want a sync reset:
Resetting sync will clear all syncing data from the server, upload your existing data as the "true" version, and provide your device with a new "sync id". All devices syncing data must have the same sync id.
+**Note:** Resetting sync will also significantly reduce your budget file size. This is because Actual stores all mutations in the budget file by default, causing it to grow over time. When you reset sync, all those historical changes are compressed into a single file.
+
After resetting, all other devices are now out-of-date. What happens when you try to run them? Actual will detect that syncing has been reset and tell you that they need to be reverted. Reverting a file will delete the local data, download the latest version of it, and assign the latest sync id generated by the reset. It will happily sync from then on.
**Actual will always guide you through this**. It tracks the status of all your files and will notify you if something is wrong and give you steps to fix the problem. If you want to manually reset sync, you can do that in settings.