当前位置:网站首页>Tips for using dm8huge table
Tips for using dm8huge table
2022-07-06 03:54:00 【Song Xiaorong】
HUGE A table is a columnar storage table , Stored in a specific HUGE Tablespace . Ordinary table spaces , Data is passed through segments 、 cluster 、 Page to manage , And in a fixed size (4K、8K、16K、32K) The page of is management unit ; and HUGE Tablespace is through HFS Storage mechanism , It is equivalent to a file system . Create a HUGE Table and insert data , The database will be in the specified HTS Create a series of directories and files under the table space directory .
The following figure shows the different storage methods of the same table data in row storage table and column storage table .

Row storage diagram Column storage diagram
HUGE The storage method of tables has the following advantages :
① Data in the same column is stored continuously , It can speed up the data query of a certain column ;
② Continuously stored column data , It has larger compression unit and data similarity , The compression efficiency is much better than that of row storage , The unit of compression is area ;
③ Conditional scanning is used to accurately filter the statistical information of the data area , Can further reduce IO, Improve scanning efficiency ;
④ Allow secondary indexing ;
⑤ Support with ALTERTABLE Add or delete PK and UNIQUE constraint .
HUGE Table classification
Non transactional HUGE surface
Non transactional HUGE The increase of the table 、 Delete 、 Change it directly to HUGE Table for write operations , Don't write UNDO journal , Directly manipulate files , Fast , Concurrency performance is not high , But it also leads to unsupported transactions . When non transactional HUGE When the table has problems such as system crash or power failure during operation , Because the strategy of writing directly is adopted when modifying , Therefore, data inconsistency may occur .
transactional HUGE surface
transactional HUGE surface , By increasing the RAUX、DAUX and UAUX Row auxiliary table , Reduced transactional HUGE Table addition 、 Delete 、 The operation of IO, Increase of efficiency , At the same time, improve the parallel performance . transactional HUGE Table support UNDO journal , Implements transaction characteristics .
HUGE Table creation
Create transactional HUGE surface , The database is created by default
HUGE The table specifies an ordinary table space to store errors

HUGE Table not specified HUGE Table space , The default is HMAIN Table space .

It should be noted that , When specifying the creation of transactional HUGE Table time , Appoint HUGE Table options for image file scheme LOGNONE|LOG LAST|LOG ALL invalid .
Create non transactional HUGE surface
You need to change the parameter HUGE_WITH_DELTA It is amended as follows 0, Otherwise, it is not supported to create non transactional HUGE surface .

Successfully created HUGE A directory will be generated after the table , The directory name is SCH+ The length is 9 Of ID A string composed of numbers .

Inquire about HUGE surface
When querying a single column , The database performance has been significantly improved .

Use HUGE You should pay attention to the following limitations when using the table
1. build HUGE Table only supports definition NULL、NOTNULL、UNIQUE Constraints and PRIMARYKEY, The latter two constraints can also be passed ALTERTABLE The way to add , But these two constraints do not check uniqueness ;
2.HUGE Clustered indexes are not allowed , Allow secondary indexing , Bitmap indexing is not supported , among UNIQUE The index does not check for uniqueness ;
3. I won't support it SPACELIMIT( Space restriction );
4. Full text indexing is not supported ;
5. Custom types are not supported ;
6. Reference constraints are not supported ;
7. I won't support it IDENTITY On the column ;
8. Large field columns are not supported ;
9. Trigger creation is not supported ;
10. Cursor modification is not supported ;
11.PK and UNIQUE Constraints do not check uniqueness , The corresponding indexes are virtual indexes ;UNIQUE The index does not check for uniqueness , Is a real index , The index tag does not contain a uniqueness tag , That is, it is the same as the ordinary secondary index ;
12. It is not allowed to set SECTION and WITH/WITHOUTDELTA;
13. When transactional HUGE When more additions, deletions and modifications are made to the table , The data shall be reorganized , To improve performance .
边栏推荐
- Ethernet port &arm & MOS &push-pull open drain &up and down &high and low sides &time domain and frequency domain Fourier
- Why do you want to start pointer compression?
- math_ Derivative function derivation of limit & differential & derivative & derivative / logarithmic function (derivative definition limit method) / derivative formula derivation of exponential functi
- Cubemx 移植正点原子LCD显示例程
- 【Qt5】Qt QWidget立刻出现并消失
- Thread sleep, thread sleep application scenarios
- C#(二十八)之C#鼠标事件、键盘事件
- Facebook and other large companies have leaked more than one billion user data, and it is time to pay attention to did
- Développement d'un module d'élimination des bavardages à clé basé sur la FPGA
- No qualifying bean of type ‘......‘ available
猜你喜欢

Network security - Security Service Engineer - detailed summary of skill manual (it is recommended to learn and collect)

BUAA喜鹊筑巢

C form application of C (27)

Scalpel like analysis of JVM -- this article takes you to peek into the secrets of JVM

Ks003 mall system based on JSP and Servlet

Facebook等大廠超十億用戶數據遭泄露,早該關注DID了

2.2 fonctionnement stm32 GPIO

1. New project

2.2 STM32 GPIO操作

自动化测试的好处
随机推荐
51nod 1130 n factorial length V2 (Stirling approximation)
JS Vanke banner rotation chart JS special effect
[prediction model] difference method model
Facebook等大厂超十亿用户数据遭泄露,早该关注DID了
Record the pit of NETCORE's memory surge
Chinese brand hybrid technology: there is no best technical route, only better products
Security xxE vulnerability recurrence (XXe Lab)
Failure causes and optimization methods of LTE CSFB
Take you to wechat applet development in 3 minutes
Proof of Stirling formula
RT thread -- FTP of LwIP (2)
AcWing 243. A simple integer problem 2 (tree array interval modification interval query)
Use js to complete an LRU cache
[optimization model] Monte Carlo method of optimization calculation
[Qt5] QT QWidget immediately appears and disappears
Microkernel structure understanding
【可调延时网络】基于FPGA的可调延时网络系统verilog开发
【按鍵消抖】基於FPGA的按鍵消抖模塊開發
Mapping between QoE and KQI
Blue Bridge Cup - day of week