当前位置:网站首页>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 .
边栏推荐
- mysql关于自增长增长问题
- Serial port-rs232-rs485-ttl
- Prime Protocol宣布在Moonbeam上的跨链互连应用程序
- 2.13 weekly report
- Suggestions for new engineer team members
- [FPGA tutorial case 11] design and implementation of divider based on vivado core
- 2.2 fonctionnement stm32 GPIO
- 20、 EEPROM memory (AT24C02) (similar to AD)
- Stc8h development (XII): I2C drive AT24C08, at24c32 series EEPROM storage
- Custom event of C (31)
猜你喜欢
![[FPGA tutorial case 11] design and implementation of divider based on vivado core](/img/39/f337510c2647d365603a8485583a20.png)
[FPGA tutorial case 11] design and implementation of divider based on vivado core

2. GPIO related operations

Blue Bridge Cup - Castle formula
![[Massey] Massey font format and typesetting requirements](/img/27/6b641551d6d8699683972f40f3b8e5.jpg)
[Massey] Massey font format and typesetting requirements

Suggestions for new engineer team members

Svg drag point crop image JS effect

Plus d'un milliard d'utilisateurs de grandes entreprises comme Facebook ont été compromis, il est temps de se concentrer sur le did

Blue Bridge Cup - day of week

JS music online playback plug-in vsplayaudio js

Flask learning and project practice 9: WTF form verification
随机推荐
在字节做测试5年,7月无情被辞,想给划水的兄弟提个醒
Ks008 SSM based press release system
LTE CSFB test analysis
[meisai] meisai thesis reference template
mysql从一个连续时间段的表中读取缺少数据
[001] [stm32] how to download STM32 original factory data
Flask learning and project practice 9: WTF form verification
JS music online playback plug-in vsplayaudio js
Blue Bridge Cup - Castle formula
KS003基于JSP和Servlet实现的商城系统
Schnuka: visual positioning system working principle of visual positioning system
2.2 STM32 GPIO operation
Overview of super-resolution reconstruction of remote sensing images
Indicator system of KQI and KPI
Take you to wechat applet development in 3 minutes
C#(二十七)之C#窗体应用
JVM的手术刀式剖析——一文带你窥探JVM的秘密
Plus d'un milliard d'utilisateurs de grandes entreprises comme Facebook ont été compromis, il est temps de se concentrer sur le did
Error 1045 (28000): access denied for user 'root' @ 'localhost' (using password: no/yes
20、 EEPROM memory (AT24C02) (similar to AD)