Data Migration - Definição do Glossário de CI/CD
Uma data migration transforma ou move as próprias linhas (reescrevendo valores, dividindo uma coluna, copiando para uma nova tabela) em vez de alterar a estrutura do schema.
Em CI/CD
Data migrations grandes são executadas em lotes para evitar locks longos e são feitas para poder retomar, já que uma reescrita de uma só vez de uma tabela grande pode dar timeout em um deploy ou bloquear escritas.
Guias relacionados
Schema Migration - CI/CD Glossary DefinitionSchema Migration: A schema migration changes the structure of a database (tables, columns, indexes, constrain…
Backfill - CI/CD Glossary DefinitionBackfill: A backfill populates a newly added column or table with values derived from existing data, typicall…
Database Migration - CI/CD Glossary DefinitionDatabase Migration: A database migration is a versioned, ordered change to a database schema or data, applied…