Skip to Content
Presto实战
book

Presto实战

by Matt Fuller, Manfred Moser, Martin Traverso
March 2021
Intermediate to advanced
265 pages
6h 50m
Chinese
Posts & Telecom Press
Content preview from Presto实战
82
6
这两个连接器所展示的
schema
在结构上包括了相同的数据集:
SHOW SCHEMAS FROM tpch;
Schema
--------------------
information_schema
sf1
sf100
sf1000
sf10000
sf100000
sf300
sf3000
sf30000
tiny
(10 rows)
6-1
显示了不同的
schema
如何在
orders
等事务性表中包含越来越多的记录。
6-1:不同TPCH schema中订单表的记录数示例
schema count
tiny 15 000
sf1 1 500 000
sf3 4 500 000
sf100 150 000 000
如第
8
章和第
9
章所述,你可以使用这些数据集来学习更多
Presto
所支持的
SQL
,而无须
连接另一个数据库。
这些连接器的另一个重要使用场景是获得简单可用的数据。可以将这些连接器用于开发和
测试,甚至在
Presto
的生产部署中使用
。由于易于获得很大的数据量,因此你可以构建查
询并在
Presto
集群上施加很大负载
。这可以使你更好地了解集群性能,调整和优化它,并
确保即使发生了跨版本更新或其他变更,它也可以正常工作。
6.4
 用于分布式存储数据源的
Hive
连接器
1.5
节所述,
Presto
是为了在
Facebook
这样的体量上运行快速查询而设计的。鉴于
Facebook
在其
Hive
数据仓库中拥有海量的存储
Hive
连接器自然成为
Presto
最早开发的
连接器之一。 ...
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.
Start your free trial

You might also like

大数据项目管理:从规划到实现

大数据项目管理:从规划到实现

Ted Malaska, Jonathan Seidman
Google系统架构解密: 构建安全可靠的系统

Google系统架构解密: 构建安全可靠的系统

Heather Adkins, Betsy Beyer, Paul Blankinship, Piotr Lewandowski, Ana Oprea, Adam Stubblefield

Publisher Resources

ISBN: 9787115560056