首页> 外国专利> QUERY OPTIMIZATION METHOD USING INDEX MERGING ON DISTRIBUTED DATABASE

QUERY OPTIMIZATION METHOD USING INDEX MERGING ON DISTRIBUTED DATABASE

机译:分布式数据库索引融合的查询优化方法

摘要

Provided is a method for generating an index, which is an aggregate of all field data in a column specified in a conditional clause of a query and unique row numbers for accessing a database, to access the database at minimum cost, and to enhance data processing performance through optimized queries. The query optimization method according to an embodiment of the present invention includes: a step for parsing a query in syntax units to extract a condition attribute; a step for generating B+Trees composed of pairs of field values of corresponding columns and corresponding Row Nums by using the extracted condition attribute; a step for arranging the generated B+Trees in ascending order on the basis of the respective field values; and a step for generating only the corresponding rows by means of a query in the B+Trees arranged in ascending order. Accordingly, a unique row number in a table can be used as an access medium to reduce unnecessary access and thereby increase search performance, indexes are internally arranged, thus making it easy to extract a column value of a conditional clause, and unnecessary operations for a changed table can be reduced to generate indexes in a minimal amount of time.
机译:提供了一种用于生成索引的方法,该索引是在查询的条件子句中指定的列中的所有字段数据和用于访问数据库的唯一行号的集合,以最小的成本访问数据库并增强数据处理通过优化查询提高性能。根据本发明实施例的查询优化方法,包括:以语法为单位解析查询以提取条件属性的步骤;通过提取的条件属性生成由对应列和对应行编号的字段值对组成的B +树的步骤;根据各个字段值以升序排列所生成的B +树的步骤;以及通过以升序排列的B +树中的查询仅生成相应行的步骤。因此,表中的唯一行号可以用作访问介质,以减少不必要的访问,从而提高搜索性能,索引在内部进行排列,从而易于提取条件子句的列值,并且可以轻松执行可以减少已更改的表以在最短的时间内生成索引。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号