System and method for performing database operations on a continuous stream of tuples
Abstract
The SQL compiler and SQL executor in a database management system are extended to process queries requiring streaming mode processing of data stored in a table. A scan operator performs table access functions during execution of the streaming mode query. The scan operator first performs an initial scan to access rows in a specified database table, and then performs a delta scan to access new rows added to the table, as well as rows modified by other queries. The scan operator continues to process new data added to the table until the initiating user or application closes the associated cursor. A set of data structures are provided to keep track of active scan operators, including a session control block that includes fields for keeping track of whether the scan operator is performing an initial scan or a delta scan. The session control block also includes, for streaming mode scan operators, a delta scan list of new and modified rows to be processed in the delta scan. When a transaction terminates, any streaming mode scan operators whose operation was suspended because of rows locked by the transaction are automatically rescheduled for execution.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 37 · Forward citations: 56.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method of processing a stream of data in a database management system, in accordance with a specified query, comprising: using a scan operator, scanning a defined range of rows in a database table in accordance with the specified query, and returning qualifying rows in the defined range to a calling application; using the scan operator, suspending operation of the scanning step when there are no qualifying rows in the defined range; and automatically resuming operation of the scanning step when one or more qualifying rows in the defined range are added to the database table.
- Claim 2Depends on #1
The method of claim 1 , further including suspending operation of the scanning step when the scanning step encounters a row in the database table that is locked in a mode that conflicts with a data access mode associate
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 56 total)
References Cited — Backward Prior Art (37)
Non-Patent Literature (2)
- "RDF Synchronization", Summer 1992, Tandem Systems Review, pp. 6-23.
- "RDF: An Overview", Oct. 1991, Tandem Systems Review, pp. 34-43.