Expand description
Migrations for builtin items.
ModulesΒ§
- persist_
schema π
StructsΒ§
- Builtin
Item πMigration Result - The results of a builtin item migration.
FunctionsΒ§
- fetch_
upper π - migrate_
builtin_ πitems - Perform migrations for any builtin items that may have changed between versions.
- migrate_
builtin_ πitems_ 0dt - An implementation of builtin item migrations that is compatible with zero down-time upgrades. The issue with the legacy approach is that it mints new global IDs for each migrated item and its descendents, without durably writing those IDs down in the catalog. As a result, the previous Materialize version, which is still running, may allocate the same global IDs. This would cause confusion for the current version when itβs promoted to the leader because its definition of global IDs will no longer be valid. At best, the current version would have to rehydrate all objects that depend on migrated items. At worst, it would panic.
- write_
to_ πmigration_ shard