Database
[HANA] Internal Columns in CS Table
이반&핫버드
2019. 5. 20. 09:00
* 1986747 - How-To: Analyzing internal Columns in SAP HANA Column Store
==> m_cs_all_columns 에서 column name으로 확인
Internal Columns
- 종류
Internal column type | Naming convention | Description |
CONCAT_ATTRIBUTE | $<col1>$<col2>$...$ | Multi column index (concat attribute) |
$uc_<index>$ | Unique index | |
ROWID | $rowid$ | Row pointer, unique identifier for a record |
Rev. >= 92: TEXT |
$_SYS_SHADOW_<type>$ | Fulltext index |
TREX_EXTERNAL_KEY | $trexexternalkey$ | Multi column primary key index of type inverted value or inverted hash |
TREX_UDIV | $trex_udiv$ | Transaction and visibility management |
VALID_FROM | $valid_from$ | Validity information for records in history tables (begin time) |
VALID_TO | $valid_to$ | Validity information for records in history tables (end time) |
- 특징
- Single column indexes는 single column으로 관리되므로 추가적인 internal column이 필요하지 않음
- 일반적으로 해당 컬럼은 제거할 수 없음
- CONCAT_ATTRIBUTE는 보통 secondary index나 modeling view를 위해서 생성됨
- 이 경우에는 삭제가 가능함 (이를 안쓰는 경우에 삭제)
- Join operation을 위해서 내부적으로 생성되는 경우도 있으며 이 때에는 삭제가 불가
- SPS07부터는 join 수행 시 concat attribute 없이도 부분적으로 join이 가능하도록 됨 -> 따라서 해당 컬럼이 더이상 필요하지 않음
- 이 신기능은 파라미터에 의해서 컨트롤 됨
- indexserver.ini -> [joins] -> optimize_metamodel
- [auto] Use existing concat attributes, but don't create new ones (default)
[on] Use and create concat attributes
[off] Neither use nor create concat attributes
- Hint로도 관리 가능
- OPTIMIZE_METAMODEL , NO_OPTIMIZE_METAMODEL