发明名称 System and method for computing rows since sequence function in a database system
摘要 A database query compiler and compilation method has special facilities for compiling a query that includes a Rows Since sequence function, Rows Since (search condition). A query normalizer includes a Rows Since function normalizer for normalizing the Rows Since sequence function. The Rows Since function normalizer parses the search condition of the Rows Since function to identify each reference to information from a previously access row and converts each such identified reference into an Offset sequence function, Offset(argument, index). The argument of the Offset sequence function is a specified function of the identified information from a previously accessed row of the table. The previously accessed row has a position that is index rows before the current row referenced by the cursor for the table. The query compiler places the resulting normalized search condition in a search loop that traverses successively earlier rows in the table until it finds a row that satisfies the search condition. An offset sequence function compiler, compiles each Offset sequence function, Offset(argument, index), in the normalized database query into a compiled set of instructions, including instructions for storing and reading the auxiliary fields to and from a buffer that is separate from the table. The buffer is preferably stored in volatile, main memory. As a result, when the Offset sequence function is executed, information from a previous is accessed without having to change the cursor position for the table.
申请公布号 US6289336(B1) 申请公布日期 2001.09.11
申请号 US19990277054 申请日期 1999.03.26
申请人 COMPAQ COMPUTER CORPORATION 发明人 MELTON MARK E.;WEHRMEISTER ROBERT M.;LOHMAN PETER N.
分类号 G06F17/30;(IPC1-7):G06S17/30 主分类号 G06F17/30
代理机构 代理人
主权项
地址