Database Index - Definição do Glossário de CI/CD
Um database index é uma estrutura de dados auxiliar (geralmente uma B-tree) que permite ao banco encontrar linhas por uma coluna sem varrer a tabela inteira, trocando armazenamento extra e escritas mais lentas por leituras mais rápidas.
Em CI/CD
Criar um index pode travar uma tabela grande por muito tempo. O Postgres oferece CREATE INDEX CONCURRENTLY para construí-lo sem bloquear escritas, o que é a escolha segura em uma migration de zero-downtime.
Guias relacionados
Primary Key - CI/CD Glossary DefinitionPrimary Key: A primary key is the column (or set of columns) that uniquely identifies each row in a table. It…
Foreign Key - CI/CD Glossary DefinitionForeign Key: A foreign key is a column that references the primary key of another table, enforcing that the r…
Online Schema Change - CI/CD Glossary DefinitionOnline Schema Change: An online schema change alters a large table without blocking reads and writes, typical…