Support and Constraints
A hybrid data warehouse is compatible with all column-store syntax.
| Syntax | Supported |
|---|---|
| CREATE TABLE | Yes |
| CREATE TABLE LIKE | Yes |
| DROP TABLE | Yes |
| INSERT | Yes |
| COPY | Yes |
| SELECT | Yes |
| TRUNCATE | Yes |
| EXPLAIN | Yes |
| ANALYZE | Yes |
| VACUUM | Yes |
| ALTER TABLE DROP PARTITION | Yes |
| ALTER TABLE ADD PARTITION | Yes |
| ALTER TABLE SET WITH OPTION | Yes |
| ALTER TABLE DROP COLUMN | Yes |
| ALTER TABLE ADD COLUMN | Yes |
| ALTER TABLE ADD NODELIST | Yes |
| ALTER TABLE CHANGE OWNER | Yes |
| ALTER TABLE RENAME COLUMN | Yes |
| ALTER TABLE TRUNCATE PARTITION | Yes |
| CREATE INDEX | Yes |
| DROP INDEX | Yes |
| DELETE | Yes |
| Other ALTER TABLE syntax | Yes |
| ALTER INDEX | Yes |
| MERGE | Yes |
| SELECT INTO | Yes |
| UPDATE | Yes |
| CREATE TABLE AS | Yes |
Constraints
- To use HStore tables, you need to change the default values of the following parameters. Otherwise, the performance of HStore tables will deteriorate significantly.
In clusters of version 9.1.1.100 and later versions, the recommended parameter settings are as follows: autovacuum_max_workers_hstore=3, autovacuum_max_workers=2, autovacuum_max_workers_col=2, autovacuum=true.
- In clusters of version 8.2.1 or later, dirty data in column-store B-tree indexes can be cleared. This effectively controls the index space and improves the performance of data import and query in scenarios where data is frequently updated and imported to the database. In real-time scenarios, the psort index should not be used for column storage due to the following reasons:
- The psort index does not support index clearing, and the index space keeps expanding.
- The psort index sorts only the data that is saved to the database in batches, so the performance improvement is limited in real-time scenarios.
- In clusters of version 9.1.1.100, dirty page clearing in hstore tables depends on the column-store vacuum and asynchronous sorting mechanisms. By default, a CU with less than 1,000 rows is regarded as a small CU. Small CUs on dirty pages are merged through asynchronous sorting, and non-small CUs are rewritten to new files through column-store vacuum. Column-store vacuum is controlled by colvacuum_threshold_scale_factor. To modify this parameter, contact technical support.
- When HStore asynchronous sorting is used, DML operations on certain data may be blocked during asynchronous sorting. The maximum blocking granularity is the row threshold for asynchronous sorting. This function is not recommended for frequent DML operations.
Differences Between Column-Store Tables and Delta Tables
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot