Skip to Content
詳説 データベース ―ストレージエンジンと分散データシステムの仕組み
book

詳説 データベース ―ストレージエンジンと分散データシステムの仕組み

by Alex Petrov, 小林 隆浩, 成田 昇司
July 2021
Beginner to intermediate
392 pages
6h 19m
Japanese
O'Reilly Japan, Inc.
Content preview from 詳説 データベース ―ストレージエンジンと分散データシステムの仕組み

5章トランザクション処理とリカバリ

本書では、これまでデータベースシステムの概念に対してボトムアップ式のアプローチをとってきました。最初に学習したのは、ストレージ構造についてでした。次はいよいよ、バッファ管理、ロック管理、およびリカバリの機能を持つ、比較的高レベルのコンポーネントに話題を移します。これらの機能は、データベースにおけるトランザクションを理解するために必要不可欠です。

トランザクションは、データベース管理システムにおける動作の分割不可能な論理単位であり、複数の操作を1つのステップとして表すことを可能にします。トランザクションによって実行される操作には、データベースレコードの読み取りと書き込みが含まれます。データベースにおけるトランザクションでは、原子性、一貫性、分離性、および永続性を維持する必要があります。これら4つの特性は、一般的にACIDと呼ばれます[HAERDER83]。

原子性(Atomicity)
トランザクションのステップは分割不可能です。つまり、トランザクションに関連するステップの実行は、そのすべてが成功するか、そのいずれも成功しません。言い換えれば、トランザクションの一部のみを適用することはできません。各トランザクションは、コミット(トランザクション中に実行された書き込み操作による変更をすべて可視化します)または中断(まだ可視化されていないトランザクションの副作用をすべてもとに戻します)のいずれかを行います。コミットは決定的な操作です。中断の後は、トランザクションを再試行できます。
一貫性(Consistency)
一貫性は、アプリケーション特有の保証です。トランザクションに必要とされるのは、データベースのすべての特性、たとえば制約、参照整合性などを維持したまま、データベースをある有効な状態から別の有効な状態に変えることです。一貫性は、もっとも定義の弱い特性です。おそらくこれは、データベース自体だけではなく、ユーザーによっても制御される唯一の特性だからです。 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Node.jsデザインパターン 第2版

Node.jsデザインパターン 第2版

Mario Casciaro, Luciano Mammino, 武舎 広幸, 阿部 和也

Publisher Resources

ISBN: 9784873119540Other