Database Transaction - CI/CD用語集の定義
database transactionは、全体が完了するか、まったく実行されないかのいずれかとなる作業の単位で、all-or-nothingの一貫性を与えます。
database transactionは、全体が完了するか、まったく効果を持たないかのいずれかとなる作業の単位で、複数の操作にわたってall-or-nothingの一貫性を与えます。
多くのマイグレーションツールは各マイグレーションをtransactionで包むため、失敗したステートメントがあってもschemaは中途半端に適用されず、そのまま保たれます。
関連ガイド
ACID - CI/CD Glossary DefinitionACID: ACID is a set of guarantees for reliable transactions: Atomicity, Consistency, Isolation, and Durabilit…
Deadlock (Database) - CI/CD Glossary DefinitionDeadlock (Database): A deadlock occurs when two or more transactions each hold a lock the other needs, so non…
Idempotent Migration - CI/CD Glossary DefinitionIdempotent Migration: An idempotent migration produces the same result whether it runs once or many times, ty…