首页> 外国专利> TAIL-BASED TOP-N QUERY EVALUATION

TAIL-BASED TOP-N QUERY EVALUATION

机译:基于尾部的TOP-N查询评估

摘要

Techniques are described for executing a query with a top-N clause to select a first N-number of rows in a data source arranged at least according to a first key and a second key of the data source using a first sort order respectively specified for the first key and a second sort order respectively specified for the second key by the query. The data source may include one or more tiles that include at least a portion of the first key and the second key. To execute the query, in an embodiment, a DBMS determines, in a first vector of first key values that are in a first tile, row identifiers identifying entries of the first vector that contain values equal to a tail value that follows a particular top number of the first key values. The DBMS may select, from a second vector of values of the second key in the first tile, second key values identified based on the determined row identifiers of the first vector. In an embodiment, the DBMS generates a result set of the query that includes at least a value from the second key values selected from the second vector based on the determined first row identifiers.
机译:描述了用于执行带有top-N子句的查询以使用分别指定用于第一和第二顺序的第一排序顺序来选择至少根据数据源的第一关键字和第二关键字排列的数据源中的前N个行的查询的技术。查询分别为第二关键字指定的第一关键字和第二排序顺序。数据源可以包括一个或多个图块,其包括第一密钥和第二密钥的至少一部分。为了执行查询,在一个实施例中,DBMS在第一图块中的第一键值的第一向量中确定行标识符,该行标识符标识第一向量的条目,该条目包含的值等于后跟特定顶部数的尾值。的第一个键值。 DBMS可以从第一瓦片中的第二键的值的第二向量中选择基于确定的第一向量的行标识符来识别的第二键值。在一个实施例中,DBMS基于所确定的第一行标识符来生成查询的结果集,该查询的结果集至少包括来自从第二向量中选择的第二键值的值。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号