Migrating to Sync Rules v2
Documentation
This document describes the differences between v1 and v2, as well as the migration process. For details on v2, see Sync Rules v2.
Version 2 of sync rules was introduced to:
Provide more flexibility in specifying what is synchronized to each user.
Better match our internal implementation.
Sync rules v2 is centered around a system of buckets, which group objects together to be synchronized to one or more users.
The flexibility of v2 comes in with how developers can specify which buckets must be synchronized to each user, by using the via
field. For details, see the Sync Rules v2 documentation.
Migration
Migrating from v1 to v2 Sync Rules is a manual process for developers. Please follow the reference documentation below to migrate your sync rules.
Note that the v2 syntax is compatible with all v4 container versions. Sync performance improvements have been implemented in version 4.24, which does affect how sync rules can be used in practice. See the section on changing bucket roots for details.
Note that the sync rules have to be deployed to take effect. Since this will require full reprocessing, it is advisable to do this after business hours. Contact JourneyApps Support if you are unsure about this process.
Migration reference
Global objects
Version 1
Version 2
Single has-many
Version 1
Version 2
Nested has-many/has-many
Version 1
Version 2
Nested belongs-to/has-many
Version 1
Version 2
User conditions
Version 2
Version 2
Synchronize everything
Version 1
Version 2
Last updated