Backfill - Definição do Glossário de CI/CD
Um backfill preenche uma coluna ou tabela recém-adicionada com valores derivados de dados existentes, normalmente em lotes após a mudança de schema, para que o novo campo seja utilizável para linhas antigas.
Em expand-contract
O backfilling é a fase intermediária de uma migration expand-contract: adicione a coluna, preencha as linhas antigas em blocos, e então imponha as constraints assim que cada linha tiver um valor. Fazer em lotes mantém cada escrita pequena e evita locks longos.
Guias relacionados
Expand-Contract Migration - CI/CD Glossary DefinitionExpand-Contract Migration: The expand-contract (parallel change) pattern splits a breaking schema change into…
Data Migration - CI/CD Glossary DefinitionData Migration: A data migration transforms or moves the rows themselves (rewriting values, splitting a colum…
Zero-Downtime Migration - CI/CD Glossary DefinitionZero-Downtime Migration: A zero-downtime migration changes the schema without taking the application offline,…