首页> 外国专利> FAST GRAPH QUERY ENGINE OPTIMIZED FOR TYPICAL REAL-WORLD GRAPH INSTANCES WHOSE SMALL PORTION OF VERTICES HAVE EXTREMELY LARGE DEGREE

FAST GRAPH QUERY ENGINE OPTIMIZED FOR TYPICAL REAL-WORLD GRAPH INSTANCES WHOSE SMALL PORTION OF VERTICES HAVE EXTREMELY LARGE DEGREE

机译:对于小部分比例具有极大程度的典型的世界级图实例,对快速图查询引擎进行了优化

摘要

Techniques herein accelerate graph querying by caching neighbor vertices (NVs) of super-node vertices. In an embodiment, a computer receives a graph query (GQ) to extract result paths from a graph in a database. The GQ has a sequence of query vertices (QVs) and a sequence of query edges (QEs). The computer successively traverses each QE and QV to detect paths of the graph that match the GQ. Traversing each QE and QV entails retrieving NVs of a current graph vertex (CGV) of a current traversal path. If the CGV is a key in a cache whose keys are graph vertices having an excessive degree, then the computer retrieves NVs from the cache. Otherwise, the computer retrieves NVs from the database. If the degree is excessive, and the CGV is not a key in the cache, then the computer stores, into the cache, the CGV as a key for the NVs.
机译:本文中的技术通过缓存超节点顶点的相邻顶点(NV)来加速图查询。在一个实施例中,计算机接收图查询(GQ)以从数据库中的图提取结果路径。 GQ具有一系列查询顶点(QV)和一系列查询边(QE)。计算机依次遍历每个QE和QV,以检测与GQ匹配的图形路径。遍历每个QE和QV都需要检索当前遍历路径的当前图形顶点(CGV)的NV。如果CGV是缓存中的键,其键是度数过多的图形顶点,则计算机从缓存中检索NV。否则,计算机将从数据库中检索NV。如果程度过高,并且CGV不是缓存中的密钥,则计算机会将CGV作为NVs的密钥存储到缓存中。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号