1. 뷰 생성 장점?

- 디스크 메모리에 저장되지 않고, 제한된 접근으로 제한된 컬럼만 조회할 수 있다. (실수로 데이터가 지워지는 사고 방지)

 

2. 인덱스 생성

- partition은 hdfs 레벨에서 지원되고, 테이블 레벨에서는 인덱스가 지원된다.

- 인덱스는 컬럼에 생성해준다.

select * from table_name

create index index_name on table table_name(column_name) as 'compact' with defered rebuild;

 

 

'Hadoop > 처리: Hive SQL' 카테고리의 다른 글

Error fixed: Hive bucket table map join data loss  (0) 2022.01.13

+ Recent posts