OceanBase 数据库将磁盘切分为大小为 2MB 的定长数据块,称之为宏块(Macro Block),宏块是数据文件写 IO 的基本单位,每个 SSTable 就由若干个宏块构成, 宏块 2M 固定大小的长度不可更改。
适用版本
OceanBase 数据库 V4.x 版本。
操作步骤
查看表的 locations 信息
select tenant_id,ls_id,tablet_id from cdb_ob_table_locations where tenant_id=1004 and database_name='testdb' \G查看宏块信息
select * from __all_virtual_tablet_sstable_macro_info where tenant_id=1001 and ls_id = 1001 and tablet_id=101091;