Help Center/
GaussDB/
Developer Guide(Distributed_2.x)/
Best Practices/
Best Practices of Table Design/
Using PCKs
Updated on 2023-10-23 GMT+08:00
Using PCKs
The PCK is the column-store-based technology. It can minimize or maximize sparse indexes to quickly filter base tables. You are advised to select a maximum of two columns as PCKs. Use the following principles to specify PCKs:
- The selected PCKs must be restricted by simple expressions in base tables. Such constraints are usually represented by col op const, in which col indicates the column name, op indicates operators, (including =, >, >=, <=, and <), and const indicates constants.
- Select columns that are frequently selected (to filter much more undesired data) in simple expressions.
- List the most frequently selected columns at the top.
- List the columns of the enumerated type at the top.
Parent topic: Best Practices of Table Design
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot