Snapshots of a column store
Abstract
Columnar storage provides many performance and space saving benefits for analytic workloads, but previous mechanisms for handling single row update transactions in column stores suffer from poor performance. A columnar data layout facilitates both low-latency random access capabilities together with high-throughput analytical access capabilities, simplifying Hadoop architectures for use cases involving real-time data. In disclosed embodiments, systems may perform read and scan features through which users may have consistent reads of the columnar storage at any given point in time. These scans (e.g., snapshots) allow for analytics to be performed on the data, consistent backups of the data, for incremental backups, perform cross-cluster synchronization, and/or for offline audit analysis.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 74 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A method for implementing read or scan in a distributed database system that supports multi-version concurrency control (MVCC), the method comprising: instantiating a scanner at a particular timepoint, the scanner being configured to provide a point-in-time snapshot of a dataset associated with the particular timepoint, wherein the dataset includes a row stored in an on-disk store via (i) a base data module for storing a column data for the row and (ii) a delta module for storing a set of REDO delta records each indicating a later state of the column data stored in the base data module and a set of UNDO delta records each indicating an earlier state of the column data, wherein each of the set of REDO delta records and the set of UNDO delta records is associated with a unique transaction identifier; performing a delta compaction that causes the column data stored in the base data module to be updated to a particular later state based on applying one or more of the set of REDO delta reco
- Claim 2Depends on #1
The method of claim 1, wherein iteratively applying the mutations comprises: upon determining that a given one of the selected subset of the increased set of UNDO delta records or the decreased set of REDO delta records indicates a delete operation, marking the row as deleted in the output buffer.
- Claim 3Depends on #1
The method of claim 1, wherein the set of UNDO delta records and the set of REDO delta records each correspond to an update operation, delete operation, or reinsert operation to which the row is subjected, wherein unique transaction identifiers for the set of UNDO delta records and the set of REDO delta records are monotonically increasing.
- Claim 4Depends on #1
The method of claim 1, further comprising: storing one or more versions of the row in the database, wherein each of the one or more versions has at least one of the mutations applied to the row.
- Claim 5Depends on #4
The method of claim 4, further comprising: determining which of the one or more versions of the row to garbage collect based on a retention period.
- Claim 6Depends on #1
The method of claim 1, wherein the set of UNDO delta records and the set of REDO delta records are implemented as a singly linked list.
- Claim 7Depends on #6
The method of claim 6, wherein the singly linked list includes a mutation head that points to a given mutation node corresponding to a first mutation of the set of UNDO delta records or the set of REDO delta records, and a next mutation pointer in the given mutation node points to a subsequent mutation node corresponding to a second mutation of the set of UNDO delta records and the set of REDO delta records.
- Claim 8Depends on #6
The method of claim 6, wherein each mutation node of the singly linked list includes a change record field indicating the data of the row to be mutated.
Technical Overview & Description
CROSS REFERENCE TO RELATED APPLICATION This application is a continuation of U.S. patent application Ser. No. 15/881,541, filed Jan. 26, 2018, entitled “ MUTATIONS IN A COLUMN STORE, ” which is a continuation of U.S. patent application Ser. No. 15/149,128, filed May 7, 2016, entitled “ MUTATIONS IN A COLUMN STORE, ” which claims the benefit of U.S. Provisional Application No. 62/158,444, filed May 7, 2015, entitled “ MUTATIONS IN A COLUMN STORE, ” all of which are incorporated herein by reference in their entireties. This application also incorporates by reference in their entireties U.S. Provisional Application No. 62/134,370, filed Mar. 17, 2015, entitled “ COMPACTION POLICY, ” and U.S. patent application Ser. No. 15/073,509, filed Mar. 17, 2016, entitled “ COMPACTION POLICY. ” TECHNICAL FIELD Embodiments of the present disclosure relate to systems and methods for fast and efficient handling of database tables. More specifically, embodiments of the present disclosure relate to a storage engine for structured data which supports low-latency random access together with efficient analytical access patterns. BACKGROUND Some database systems implement database table updates by deleting an existing version of the row and re-inserting the row with updates. This causes an update to incur “ read ” input/output (IO) on every column of the row to be updated, regardless of the number of columns being modified by the transaction. This can lead to significant IO costs. Other systems use “ positional update tracking, ” which avoids this issue but adds a logarithmic cost to row insert operations. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 illustrates an example database table, according to embodiments of the present disclosure. FIGS. 2 A and
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (74)
| Patent | Title | Year | Citations |
|---|---|---|---|
| EP 2,898,432 A2 | Table format for map reduce system | — | 0 |
| JP 2013074665 A | Power conversion controller for automobile | — | 0 |
Non-Patent Literature (10)
- Wikipedia,
- “
- Multiversion concurrency control
- ”
- , May 1, 2015 version (Year: 2015).
- Bernstein et al.,
- “
- Concurrency Control in Distributed Database Systems
- ”
- , Jun. 1981 (Year: 1981).