HBase 運作機制的聰明運用
HBase 與 RDB (Relational Database)
常見的情境是利用 RDB 當作 HBase 的 metadata 儲放處。
也有當作secondary index的,當資料間的關聯非常複雜,可以先使用 RDB 查詢存在 HBase 的資料主鍵 (PK),再使用 PK 從 HBase 取出 raw data。
Row Key 設計
當客戶端需要頻繁的寫一張表格,可以配置隨機的 RowKey 。
當客戶端需要頻繁的讀一張表格,可以配置有序的 RowKey 。
對於時間連續的數據,有序的 RowKey 會很適合用來查詢一段時間的數據 (Scan)。
region pre-split
Last updated
Was this helpful?