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

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

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

3章ファイルフォーマット

Bツリーの基本的な説明が終わり、次に取り掛かるのは、Bツリーおよびその他の構造がディスク上に実際どのように実装されているかの探究です。ディスクにアクセスする方法は、メインメモリにアクセスする方法と異なっています。アプリケーション開発者の観点から見ると、メモリへのアクセスはほぼ透過的です。仮想メモリのおかげで[BHATTACHARJEE17]、オフセットを手動で管理する必要はありません。ディスクへのアクセスにはシステムコールを使用します(https://databass.dev/links/54)。通常はターゲットファイル内でオフセットを指定し、その後にディスク上のデータ表現をメインメモリに適した形式に変換する必要があります。

このことは、効率的なディスク上の構造はこの区別を念頭に置いて設計される必要があるということです。そのためには、構築、変更、および解釈が容易なファイルフォーマットを考案する必要があります。この章では、Bツリーのみではなく、あらゆる種類のディスク上の構成の設計に役立つ、一般的な原則と実践方法を検討します。

Bツリーの実装には多様性がありますが、ここではいくつかの役立つ技術的観点に絞って検討します。実装ごとに詳細は異なりますが、一般的な原則は同じです。Bツリーに関してスプリットやマージなどの基本的な仕組みを理解することは必須ですが、それだけでは現実的な実装にとって十分ではありません。最終的に有益な結果を導くように連携して機能しなければならない多くの要素が存在します。

ディスク上の構造におけるポインタ管理の意味は、メモリ内の構造の場合と多少異なります。その点では、ディスク上のBツリーをページ管理のメカニズムと考えることが有効です。それは、アルゴリズムによって ...

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