CREATE TABLE blackhole.test.orders AS SELECT * from tpch.tiny.orders;
INSERT INTO blackhole.test.orders SELECT * FROM tpch.sf3.orders;
这个操作本质上是衡量从
tpch
catalog
中读取性能,它读取了
150
万条订单记录,然后将
其发送到
blackhole
。使用其他模式(如
tcph.sf100
)会增加数据集的大小。这可以用来
评估你的
Presto
集群的性能。
可以用
RDBMS
、对象存储或键值存储
catalog
进行类似的查询
,帮助我们进行查询开发、
性能测试及改进。
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.