当前位置:网站首页>Introduction to gbase 8s storage structure and space management
Introduction to gbase 8s storage structure and space management
2022-04-23 01:19:00 【Eight delicacies tofu】
Gbase 8s Instances can create multiple dbspace, One dbspace Can contain multiple physical chunk, One chunk Divided into multiple continuous expansion areas extent, The space occupied by a table or index is called a tablespace, One extent Contains multiple physical pages page.[ among dbspace、tablespace and extent Belongs to logical storage unit ;chunk and page Belongs to physical storage unit ]
Physical storage unit :
- chunk: Continuous disk space for storing data , That is, files or raw devices that store database data , The biggest can be 4TB.
- page: Is the minimum sum of the basic storage units I/O unit . A data page is divided into three parts : Header 、 Footer and data section , The total number of page headers is 24byte Space , It consists of eight parts . The footer consists of two parts : Timestamp and each slots Description information of .
Logical storage unit :
- dbspace: It's one or more chunk Logical set storage unit , The logical storage unit of the database table With physical storage units chunk come together .
- tablespace: It 's a logical concept , Refers to the space occupied by a table or index .
- extent: A collection of physically contiguous data pages ,tablespace( Tables and indexes ) The storage space is extent Assigned as a unit . for example , In the custom Continuous in the table insert When recording , Is a table customer The allocated space will be used up , here , The database needs to expand new space for tables ,gbase 8t With extent Expand by , One extent Contains several physically contiguous data pages .
Large object storage :
-
Simple large objects :blobspace It can only be used to store simple large object data . Simple large objects can be stored in dbspace perhaps blobspace in . There is dbspace The method of writing to the disk is the same as that of ordinary table data , That is, cache the data in the shared memory first buffer in , Then refresh to disk , Record logic at the same time 、 Physical log information . If the specified object is large, it will be stored in blobspace On , The virtual segment will use a smaller cache to write data directly to disk , similar light-append The way , Without taking up a lot of buffer-pool Memory space , This avoids squeezing other tables or indexes out of memory , At the same time checkpoint No influence , Moreover, the log information of the data is not written to the logical log 、 Physical log file . All use one 56byte Pointer to the storage location information of the large object .
-
Intelligent large objects : Smart large objects must be stored in sbspaces On , Storage structure and structure of intelligent large objects I/O Behavior by sbspace Characteristic determination .sbspace One of the first chunk It always consists of three parts : Metadata area 、 User data area and reserved area , other chunk You can share the first chunk The metadata area of . The metadata area holds metadata , Used to represent sbspace Key information and stored in the sbspace Every smart big object on the , In this way, the database server can operate and recover intelligent large objects . The user data area stores user-defined smart large object data , One chunk There can be 1-2 A reserve . When metadata area and user data area need more space , Can be allocated from a reserved area , One chunk There can be 1-2 A reserve . The database server uses shared memory buffer pool To access smart big object data , And stored in dbspace The data on is the same . However, the memory priority of the user data part in the intelligent large object is low , When writing data , When one buffer page When filled , Write to disk now .
Gbase 8t Storage limits :
When we look into the table insert When recording , Problems and solutions :
· The space is insufficient -> Expand the space
·extents Maximum upper limit -> Rebuild table , Use larger extend size and next size Or delete some records in the table
· Maximum data page limit -> Use a shard table or use a larger data page
版权声明
本文为[Eight delicacies tofu]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230117222409.html
边栏推荐
- gin--hello
- [actf2020 freshman competition]
- Lightly: a new generation of cloud IDE
- [interview skills] how to face an interview without a leading group
- 10月24号是什么?中国的高级程序员为什么没有五六十岁的,而国外人、、、,玉念聿辉带你过1024程序员节日
- IMX6ULL裸机开发之EPIT周期性定时器分析及配置过程
- Good test data management, in the end how to do?
- Detailed explanation of the usage of C language getchar
- Hardware IIC analysis and configuration process of imx6ull bare metal development
- 轮转法分片
猜你喜欢

tdengine集群安装部署
![Error: permissionerror: [winerror 32] this file is in use by another program and cannot be accessed by the process. Solution of](/img/eb/9031f00e41666941219974ea2e2274.png)
Error: permissionerror: [winerror 32] this file is in use by another program and cannot be accessed by the process. Solution of "+ file path"
![[Blue Bridge Cup real question 18] scratch addition multiple-choice question youth group scratch Blue Bridge Cup real question and answer explanation](/img/c6/88f1e1712823ec8fdefdbaedcb1b20.png)
[Blue Bridge Cup real question 18] scratch addition multiple-choice question youth group scratch Blue Bridge Cup real question and answer explanation

Detailed explanation of Milvus 2.0 quality assurance system

Earth day collection: Microsoft and Intel invite you to get the green Ambassador badge and give you negative carbon emission!

Research and application of Acrel-5000 building energy consumption monitoring system in Xixian Airport Garden Project

Vs + C realizes that the form input box displays gray text by default

Here's the point. Have you mastered the most complete Web3 jargon guide?

智能手表的下半场,机遇与挑战并存

IMX6ULL裸机开发之GPT通用定时器分析及配置过程
随机推荐
轮转法分片
VRF in Mina
Xizhi technology Shen Yichen was selected as the "global youth leader" of the world economic forum in Davos in 2022
World reading day: 18 it books with Douban score above 9.0 are worth collecting
Android development art exploration notes (23), summary of Android advanced interview questions in 2022
In depth analysis of disk cache mechanism and SSD write amplification under Linux
CVPR | 2022 | expressed by transformer learning multiple hypotheses! A new framework for 3D human pose estimation!
Branch and loop statements
员工公寓楼建设项目电力监控系统的研究与应用
Cloud native Virtualization: building edge computing instances based on kubevirt
天梯赛L2-6 树的遍历
API IX JWT auth plug-in has an error. Risk announcement of information disclosure in response (cve-2022-29266)
Analysis of uboot directory structure
"Open source summer" activity is hot. In the registration, rich bonuses are waiting for you to get!
IMX6ULL裸机开发之GPT通用定时器分析及配置过程
Good test data management, in the end how to do?
Ampere computing releases the computing power of observation cloud "core" and jointly promotes the development of observability
Generating class diagram with EA reverse engineering code
The origin explanation and use example of image pre training model
安全用电管理平台在靖边博物馆安全用电管理系统的应用