Help Center/
GaussDB/
Developer Guide(Centralized_2.x)/
Performance Tuning/
SQL Optimization/
Reviewing and Modifying a Table Definition/
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 less frequently selected columns on the top.
- List the columns of the enumerated type at the top.
Parent topic: Reviewing and Modifying a Table Definition
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