Sync Rules are deprecated. For the Sync Streams version of this page, see Storage Version 4.
Switching Storage Versions
Since PowerSync Service v1.27.0, MongoDB bucket storage defaults to version 4. Ifconfig.storage_version is unset, the Service uses its default the next time you deploy your Sync Rules. Upgrading the Service alone does not change the storage version of existing Sync Rules. Like any other Sync Rules deployment, this reprocesses all data in the background.
Self-hosted instances must use MongoDB bucket storage. Postgres bucket storage is not supported with version 4, so instances with Postgres bucket storage stay on version 2.
To use a different version, set storage_version in the config block and deploy. For example, to stay on version 2: