首页> 外国专利> Method for parallel query processing of data comprising a replica in distributed database

Method for parallel query processing of data comprising a replica in distributed database

机译:分布式数据库中包含副本的数据的并行查询处理方法

摘要

The present invention relates to a technique for reducing a query performance time for large-capacity distributed data having replicas existing by changing a query for data having replicas existing in a distributed database to a plurality of range condition queries in correspondence to the number of nodes in which the replicas are stored, and simultaneously performing the range condition queries in a plurality of nodes. A method for paralleling queries for a table having replicas existing in a distributed database comprises: a first step of allowing a master server to determine a query as a target query to be divided query when a target table includes a column capable of designating a range while being a distributed table by analyzing the query requested from a client in a master server; a second step of allowing the master server to determine whether the number of target records to be searched for the target query to be divided exceeds the preset number of reference records; a third step of allowing the master server to check slave servers having an original and a copy when the number of the target records to be searched exceeds the preset number of reference records in the second step; a fourth step of allowing the master server to generate a range query on each slave server by dividing a record area based on the number of target records to be searched and the number of slave servers having the copy; and a fifth step of allowing the master server to generate a result for the query requested from the client by simultaneously transmitting the range query to each slave server in parallel and collecting execution result data of the range query from each slave server to combine the collected execution result data.
机译:本发明涉及一种用于通过将与具有分布式数据库中存在的副本的数据的查询对应于多个节点中的节点数量而改变为多个范围条件查询,来减少具有存在副本的大容量分布式数据的查询执行时间的技术。其中存储副本,并同时在多个节点中执行范围条件查询。一种用于并行查询具有分布式数据库中存在的副本的表的查询的方法,包括:第一步,当目标表包括能够指定范围的列时,允许主服务器将查询确定为要分割的查询的目标查询。通过分析从主服务器中的客户端请求的查询得到的分布式表;第二步,允许主服务器确定待查询的目标查询的待查询目标记录数是否超过参考记录的预设数;第三步骤,在第二步骤中,当要搜索的目标记录的数量超过参考记录的预设数量时,允许主服务器检查具有原件和副本的从属服务器;第四步骤,允许主服务器通过基于要搜索的目标记录的数量和具有副本的从服务器的数量划分记录区域,在每个从服务器上生成范围查询;第五步,允许主服务器通过同时将范围查询并行发送到每个从属服务器,并从每个从属服务器收集范围查询的执行结果数据以合并收集的执行,从而为客户端请求的查询生成结果结果数据。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号