We need to decide on the best practice for what to do when a user connects to a cloud database for the first time but already has local data. The local data will have a different key from the cloud database, so it throws an error.
The current best option I can think of is to have the remote connect to a new database, and then copy the events from the local into the new database. But without proper API consideration this could end up unexpectedly sharing user data with a shared cloud instance.
We need to decide on the best practice for what to do when a user connects to a cloud database for the first time but already has local data. The local data will have a different key from the cloud database, so it throws an error.
The current best option I can think of is to have the remote connect to a new database, and then copy the events from the local into the new database. But without proper API consideration this could end up unexpectedly sharing user data with a shared cloud instance.