首页> 外国专利> Method and system for processing queries in a database system using index structures that are not native to the database system

Method and system for processing queries in a database system using index structures that are not native to the database system

机译:使用非数据库系统本机的索引结构在数据库系统中处理查询的方法和系统

摘要

A method and apparatus for processing a query in a database system using index types that are not built into the database system are disclosed. Routines for managing an index structure that is not supported by a database system are generated. Data that identifies the routines are submitted to the database system, thereby "registering" the index types with the database system. In response to statements issued to the database system by a client, the database system calls the routines, causing the routines to create an index structure using data from a data container in the database, and to generate data that indicates which data in the data container satisfies a query issued by the client. The routines of the registered index type extend the indexing capabilities of the database systems and one or more such index types can be registered with the database system. The index structure managed by the routines may be maintained within segments of the database, and the segments may be accessed as index-only tables. Storing a row of data in a database using index-only tables involves storing in a leaf node an index entry that includes a key value along with all other values in the row of data. If the row of data exceeds a predetermined size, then a portion of the row of data is stored in an overflow area. Retrieving a row of data from an index-only table for a user-supplied key involves identifying a leaf node for the key, and reading a row of data from the index entry and any remaining portion from the overflow area when the row exceeds the predetermined size.
机译:公开了一种用于使用未内置在数据库系统中的索引类型在数据库系统中处理查询的方法和装置。生成用于管理数据库系统不支持的索引结构的例程。标识例程的数据将提交给数据库系统,从而在数据库系统中“注册”索引类型。响应于客户机向数据库系统发出的语句,数据库系统调用例程,使例程使用数据库中数据容器中的数据创建索引结构,并生成指示数据容器中哪些数据的数据。满足客户端发出的查询。已注册索引类型的例程扩展了数据库系统的索引功能,并且可以向数据库系统注册一种或多种此类索引类型。由例程管理的索引结构可以维护在数据库的各段内,并且这些段可以作为仅索引表来访问。使用仅索引表将数据行存储在数据库中涉及在叶节点中存储索引条目,该索引条目包括键值以及该行数据中的所有其他值。如果数据行超过预定大小,则数据行的一部分存储在溢出区域中。从用户提供的键的仅索引表中检索一行数据涉及标识该键的叶节点,并在该行超出预定值时从索引条目中读取一行数据,并从溢出区域中读取任何剩余部分尺寸。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号