arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1602.00033cs.DB
收藏

快速内存SQL图形分析

Fast In-Memory SQL Analytics on Graphs

Chunbin Lin, Benjamin Mandel, Yannis Papakonstantinou, Matthias Springer

摘要:

我们研究一类图分析SQL查询,我们称之为关系查询。关系查询是固定长度图可达性查询和树模式查询的广泛超集。直观地,它发现从查询指定的源实体可到达的目标实体。它通常还找到聚合分数,这些分数对应于目标实体,并通过对测量属性应用聚合函数来计算,这些测量属性在目标实体、源实体和从源到目标的路径上找到。我们提出了现实世界的OLAP场景,需要高效的关系查询。然而,行存储、列存储和图形数据库在这样的OLAP场景中慢得令人无法接受。我们简要评论的关系查询,允许访问任意模式的直接扩展。GQ-Fast内存分析引擎采用了一种自下而上的完全流水线查询执行模型,该模型运行在一种新颖的数据组织上,该数据组织结合了基于列的组织、索引和压缩的显著特征。此外,GQ-Fast将其查询计划编译成可执行的C++源代码。除了实现运行时效率外,GQ-Fast还减少了主内存需求,因为与列数据库不同,GQ-Fast选择性地允许更密集的压缩形式,包括不支持随机访问的重加权压缩。我们使用GQ-Fast来加速生物医学领域的两个OLAP仪表板的查询。它比Postgres高出2-4个数量级,比MonetDB和Neo4j高出1-3个数量级。此外,由于压缩方法的适当使用,它通常可以节省空间。

英文摘要:

We study a class of graph analytics SQL queries, which we call relationship queries. Relationship queries are a wide superset of fixed-length graph reachability queries and of tree pattern queries. Intuitively, it discovers target entities that are reachable from source entities specified by the query. It usually also finds aggregated scores, which correspond to the target entities and are calculated by applying aggregation functions on measure attributes, which are found on the target entities, the source entities and the paths from the sources to the targets. We present real-world OLAP scenarios, where efficient relationship queries are needed. However, row stores, column stores and graph databases are unacceptably slow in such OLAP scenarios. We briefly comment on the straightforward extension of relationship queries that allows accessing arbitrary schemas. The GQ-Fast in-memory analytics engine utilizes a bottom-up fully pipelined query execution model running on a novel data organization that combines salient features of column-based organization, indexing and compression. Furthermore, GQ-Fast compiles its query plans into executable C++ source codes. Besides achieving runtime efficiency, GQ-Fast also reduces main memory requirements because, unlike column databases, GQ-Fast selectively allows more dense forms of compression including heavy-weighted compressions, which do not support random access. We used GQ-Fast to accelerate queries for two OLAP dashboards in the biomedical field. It outperforms Postgres by 2-4 orders of magnitude and outperforms MonetDB and Neo4j by 1-3 orders of magnitude when all of them are running on RAM. In addition, it generally saves space due to the appropriate use of compression methods.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑