121.
secondary indexes require additional cluster space and processing. This is precisely
what happens in an RDBMS because the act of creating an alternate index requires both
space and processing cycles to update. RBDMS products are more advanced in this
regard to handle alternative index management out of the box. However, HBase scales
better at larger data volumes, so this is a feature trade-off.
source : http://hbase.apache.org/book/secondary.indexes.html
7
659. rowkey
timestamp bio: fam: career:
name birth sex hometown spouse occupation debutYear
Tom Cruise
3 Tom cruise July 3, 1962 M Syracuse, NY Nicole Kidman Actor 1981
4 null Actor, Producer
5 Katie Holmes
6 null
hbase(main):002:0 get ‘movieStar’, ‘Tom Cruise’
Tom Cruise Tom cruise July 3, 1962 M Syracuse, NY null Actor, Producer 1981Result:
hbase(main):002:0 get ‘movieStar’, ‘Tom Cruise’, {TIMERANGE = [0, 6]}
Tom Cruise Tom cruise July 3, 1962 M Syracuse, NY Katie Holmes Actor, Producer 1981Result:
hbase(main):002:0 get ‘movieStar’, ‘Tom Cruise’, {TIMERANGE = [5, 6]}
Tom Cruise Katie HolmesResult:
MVCC(Multi-version
815. 제공
DataTableIndexTable1. get data from index
index가 유효한 시점
지금도 인덱스가 유효할까? 확인!
2. timestamp 비교
4-B. Client에게 유효한 버전의 데이터 전달
4-A. 유효하지 않은 값은 버린다.
3. 인덱스는 유효한 상태인가?
Versioned