Kurtle
Kurtle

Reputation: 75

HR Migration: how do the keys change

Short: how are the keys changed when migrating to HR. Does just the App Name change or do the underlying id / names changed?

Long: I'm currently on M/S with a bunch of un-parented entities. In switching to High Replication, I have to re-parent a number of entities (for eventual consistency). I am parenting them without real keys (i.e. db.Key.from_path('ParentType', 'ParentId-CustomTag)). I have a strong reason for doing this (to avoid having too many writes to a single entity group).

If the Keys and Parents are migrated in a way that preserves the underlying ID, then I don't have to re-re-parent on the HR side. If they do change, then I need to re-re-parent on the HR side.

Upvotes: 1

Views: 108

Answers (1)

Guido van Rossum
Guido van Rossum

Reputation: 16890

The underlying ids remain the same after migration. Only the app field of the key changes.

Upvotes: 2

Related Questions