Skip to Content
MongoDB权威指南(第3版)
book

MongoDB权威指南(第3版)

by Shannon Bradshaw, Eoin Brazil, Kristina Chodorow
November 2021
Intermediate to advanced
410 pages
12h 1m
Chinese
Posts & Telecom Press
Content preview from MongoDB权威指南(第3版)
深入
MongoDB
387
"genres_1_imdb.rating_1_metacritic_1" : {
...
"uri" : "statistics:table:index-30--2146526997547809066",
...
}
WiredTiger
会将每个集合或索引存储在一个任意大的文件中。影响该文件最大大小的唯一
限制是文件系统中对文件大小的限制。
每当对文档进行更新时,
W
iredTiger
会写入该文档的一个完整的新副本。磁盘上的旧副本
会被标记以供重用,并最终在将来的某个时间点(通常在下一个检查点期间)被覆盖。这
会回收
W
iredTiger
文件中所使用的空间。可以运行
compact
命令将数据移动到文件的前面
位置,在后面留下空闲空间。
W
iredTiger
会定期通过截断文件来删除这些多余的空闲空间。
在压缩过程结束时,多余的空间会返还给文件系统。
B.4
 命名空间
每个数据库都是按照命名空间来组织的,这些命名空间会被映射到
WiredTiger
文件。这种
抽象会将存储引擎的内部细节与
MongoDB
的查询层分离开来。
B.5
 
WiredTiger
存储引擎
WiredTiger
存储引擎是
MongoDB
的默认存储引擎。当服务器启动时,它会打开数据文件
并开始检查点和日志记录过程。它会与操作系统进行配合,操作系统的职责主要是对数据
页进行载入载出,以及将数据刷新到磁盘上。该存储引擎有以下几个重要特性。
默认情况下对集合和索引会启用压缩。默认的压缩算法是谷歌的
snappy
。还可以选择
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

大数据项目管理:从规划到实现

大数据项目管理:从规划到实现

Ted Malaska, Jonathan Seidman
Go程序设计语言

Go程序设计语言

艾伦A. A.多诺万, 布莱恩W. 柯尼汉
Spark快速大数据分析(第2版)

Spark快速大数据分析(第2版)

Jules S. Damji, Brooke Wenig, Tathagata Das, Denny Lee
Kafka权威指南(第2版)

Kafka权威指南(第2版)

Gwen Shapira, Todd Palino, Rajini Sivaram, Krit Petty

Publisher Resources

ISBN: 9787115576538