【 使用环境 】测试环境
【 OB or 其他组件 】OB
【 使用版本 】4.3.5
【问题描述】
我现在在测试tpc-h,需要测试100G和1T的场景。
首先使用TPCH生成了100G的数据,导入到数据库,一切正常,也可以查询数据。
obclient(root@yh)[(none)]> use tpch;
Database changed
obclient(root@yh)[tpch]> show tables
->
-> ;
+----------------+
| Tables_in_tpch |
+----------------+
| customer |
| lineitem |
| nation |
| orders |
| part |
| partsupp |
| region |
| revenue0 |
| supplier |
+----------------+
9 rows in set (0.017 sec)
obclient(root@yh)[tpch]> select count(*) from customer;
+----------+
| count(*) |
+----------+
| 15000000 |
+----------+
1 row in set (0.027 sec)
obclient(root@yh)[tpch]> select count(*) from lineitem;
+-----------+
| count(*) |
+-----------+
| 600037902 |
+-----------+
1 row in set (0.100 sec)
后续我需要删除表,测试1T的场景。
还是按照官网文档 步骤六,进行建表操作。
例如:
drop tablegroup IF EXISTS tpch_tg_SF_TPC_USER_lineitem_order_group_1000;
drop tablegroup IF EXISTS tpch_tg_SF_TPC_USER_partsupp_part_1000;
create tablegroup tpch_tg_SF_TPC_USER_lineitem_order_group_1000 binding true partition by key 1 partitions 256;
create tablegroup tpch_tg_SF_TPC_USER_partsupp_part_1000 binding true partition by key 1 partitions 256;
DROP TABLE IF EXISTS LINEITEM;
CREATE TABLE lineitem (
l_orderkey bigint NOT NULL,
l_partkey int(32) NOT NULL,
l_suppkey int(32) NOT NULL,
l_linenumber int(32) NOT NULL,
l_quantity decimal(32,2) NOT NULL,
l_extendedprice decimal(32,2) NOT NULL,
l_discount decimal(15,2) NOT NULL,
l_tax decimal(15,2) NOT NULL,
l_returnflag varchar(64) DEFAULT NULL,
l_linestatus varchar(64) DEFAULT NULL,
l_shipdate date NOT NULL,
l_commitdate date DEFAULT NULL,
l_receiptdate date DEFAULT NULL,
l_shipinstruct varchar(64) DEFAULT NULL,
l_shipmode varchar(64) DEFAULT NULL,
l_comment varchar(64) DEFAULT NULL,
primary key(l_shipdate, l_orderkey, l_linenumber)
)row_format = condensed
tablegroup = tpch_tg_SF_TPC_USER_lineitem_order_group_1000
partition by key (l_orderkey) partitions 256 with column group(each column);
alter table lineitem CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
此时我在数据库查询数据的时候,是查不到数据的。
这都很正常。
但是为啥删除前后我的磁盘空间没有变化?
这不合理吧?
难道是数据存储有预分配空间吗?