首页 | 官方网站   微博 | 高级检索  
     

一种对象代理数据库的跨类查询优化方法
引用本文:蒋廉,李蓉蓉,彭智勇.一种对象代理数据库的跨类查询优化方法[J].计算机工程与科学,2016,38(7):1425-1433.
作者姓名:蒋廉  李蓉蓉  彭智勇
作者单位:;1.武汉大学软件工程国家重点实验室
基金项目:国家自然科学基金(61232002)
摘    要:对象代理数据库中跨类查询可以充分发挥对象代理模型的灵活性,为用户提供个性化数据服务,其执行效率十分重要。然而在处理多个跨类属性查询时,现有基于路径表达式的跨类查询实现存在对公共路径节点对象进行重复获取的情形,执行效率较低。针对跨类查询中加快获取终点对象的问题,优化核心思想是减少对路径上节点对象的重复与不必要的遍历,包括两个关键策略:首先是将路径节点整体作为虚拟路径视图统一获取节点对象,避免了多跨类属性查询下公共路径节点的冗余遍历;其次是针对路径复杂过长的跨类查询,依据代价估计策略选择物化查询涉及起点与终点对象,利用缓存减少执行时路径上中间节点的遍历。分别在属性数目与结果集规模两方面进行了对比实验,实验结果表明了优化方法的有效性。

关 键 词:对象代理数据库  跨类查询  路径表达式  虚拟路径视图  物化路径选择策略
收稿时间:2015-12-13
修稿时间:2016-07-25

A cross-class query optimization method of object deputy database
JIANG Lian,LI Rong-rong,PENG Zhi-yong.A cross-class query optimization method of object deputy database[J].Computer Engineering & Science,2016,38(7):1425-1433.
Authors:JIANG Lian  LI Rong-rong  PENG Zhi-yong
Affiliation:(State Key Laboratory of Software Engineering,Wuhan University,Wuhan 430072,China)
Abstract:Cross-class query in object deputy database can make full use of object deputy model’s flexibility to provide users with personalized data services, and its efficiency is very important. However, using existing path-expression based methods to handle cross-class query with multiple attributes, the query performance degrades due to redundancy of common path nodes. To solve the problem of terminal object's quick acquisition in cross-class query, we propose an optimization approach to reduce the repeated and unnecessary traverse of common node objects in the path. Our approach consists of two key strategies. The first strategy is to consider the whole path nodes as a virtual path view, so we can obtain node objects uniformly and avoid redundant traverse of common path nodes in multiple cross-class attributes query. The second strategy aims to materialize common path nodes to handle cross-class query with a too long path. We select the origin object and the terminal object of materialized query according to the cost estimation strategy. Particularly we leverage cache to reduce the traverse of intermediate nodes. Comparative experiments on real data regarding both the number of attributes and the scale of result sets verify the effectiveness of our optimization method.
Keywords:object deputy database  cross-class query  path expression  virtual path view  selection strategy of path materialization  
点击此处可从《计算机工程与科学》浏览原始摘要信息
点击此处可从《计算机工程与科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号