프로젝션
-
버티카 프로젝션과 OS 물리적 영역간 매핑 방법VERTICA/04. Admin 관리 2019. 1. 23. 16:52
메모리 영역(wos) + 디스크 영역(ros) 의 테이블 및 프로젝션 매핑확인 쿼리 select a.node_name , a.schema_name , p.anchor_table_name , 'ls -lrt '||d.location_path||'/'||substring(a.storage_oid::varchar,15,17)||'/'||a.sal_storage_id||'*' as proj_full_path , p.projection_name , a.storage_type , a.total_row_count , a.deleted_row_count , a.used_bytes , a.grouping from storage_containers a inner join storage_locations d on a.nod..
-
Projection : sort key의 중요성VERTICA/03. Architecture 2016. 6. 1. 17:42
오늘은 Projection 특징중에서 sort 부분을 이야기 하겠습니다. 그림을 잘보면.. 짙은 녹색으로 칠해진 컬럼이 sort 된 컬럼입니다. 하나의 논리 Table에 여러개 Proejction 을 만들수 있다고 http://vertica.tistory.com/13 여기서 언급했었습니다. 결론적으로 sort 키 선정을 잘하면 IO를 효율적으로 줄여 줄 수 있습니다. 다시 그림으로 보면.. 성별+클래스+등급으로 sort 하였습니다. 컬럼전체를 읽는것이 아니고 필요한 부분만 읽게되어 조건절 혹은 group by 혹은 join 조건에 들어가게된다면 그에 맞는 sort 키를 선정하는것이 중요합니다. 위와 같이 Projection에 sort를 잘 지정하면 범위가 제한된 조건을 효율적으로 처리 할 수 있습니다..