Algorithm Search⌘K

Databases

Algorithms that store, index, query, update and integrate data, from relational theory and query optimization to transactions, recovery and streams.

Problems

  • Group-by aggregation problem

    Split the rows of a relation into groups by a key and compute an aggregate such as COUNT, SUM or AVG over each group.

    1 languagesintro
  • Relational join problem

    Given relations R and S and a join condition, output every pair of tuples, one from each relation, that satisfies the condition, combined into one tuple.

    intro
  • Access path selection

    Choose for each relation of a query between a full scan and the indexes that match its predicates, by their estimated cost, and keep the cheapest path for each interesting order.

    core
  • Attribute closure problem

    Given functional dependencies F and an attribute set X, compute X+, the set of all attributes that X determines under F. It takes linear time.

    core
  • Concurrency control problem

    Build a scheduler that interleaves the actions of concurrent transactions, by running, delaying or rejecting each one, so that the output is serializable and recoverable.

    core
  • Crash recovery problem

    After a crash that loses main memory but keeps the disk, bring the database to the state that holds the effects of exactly the committed transactions.

    core
  • Distributed query processing problem

    Compute a query over relations stored at several sites while minimizing data shipped, response time or total cost.

    core
  • Entity resolution

    Find the records in one or more data sets that refer to the same real-world entity, and link or merge them. Exact methods compare all pairs; blocking and windows make it fast.

    O(n^2) worstcore
  • Join ordering problem

    Choose the order and the tree shape in which to join n relations so that the estimated cost is least. NP-hard in general; polynomial for tree queries with ASI costs.

    core
  • Lossless-join decomposition problem

    Decide whether splitting a schema into parts loses information: every relation that satisfies the dependencies must equal the natural join of its projections on the parts.

    1 languagescore
  • Media recovery

    Restore a database after the loss of stable storage from an archive copy and the log written since that copy was taken.

    core
  • Minimal cover problem

    Find an FD set equivalent to F with single-attribute right sides, no extraneous left-side attribute and no redundant FD. Polynomial, but minimal covers are not unique.

    1 languagescore
  • Query optimization problem

    Given a declarative query, find an equivalent execution plan with the least estimated cost. Optimizers combine rewrite rules with a cost-based search over join orders and methods.

    core
  • Schema matching

    Find the correspondences between the elements of two schemas that denote the same thing, as the first step of a mapping.

    core
  • Acyclic join evaluation problem

    Evaluate a join whose hypergraph is alpha-acyclic, that is, has a join tree. It is solvable in time linear in input plus output for full joins.

    1 languagesadvanced
  • Answering queries using views

    Rewrite a query over a schema into one that uses only a given set of views, either equivalently or as a maximally contained rewriting.

    advanced
  • Cardinality estimation

    Estimate the number of tuples that a query or subplan returns, from statistics, samples or sketches, without running it. Errors grow fast with the number of joins.

    advanced
  • Complex event processing

    Detect patterns of events, such as sequences with predicates and time limits, over a stream and report each match.

    Ω(n + T) worstadvanced
  • Consistent query answering

    Return the answers to a query that hold in every repair of an inconsistent database, without choosing one repair.

    advanced
  • Data allocation problem

    Place fragments and their copies on sites to minimize storage, query and update cost under capacity limits. The decision version is NP-complete.

    advanced
  • Data exchange problem

    Given a source instance and a schema mapping, build a target instance that satisfies the mapping and answer queries over it.

    advanced
  • Database repair

    Change a database that violates integrity constraints so that it satisfies them, by deletions, insertions or value updates that are minimal under a chosen measure of change.

    advanced
  • Datalog evaluation problem

    Given a Datalog program and a database, compute the least fixed point of the rules, or the facts of it that a query asks for. P-complete in the data and EXPTIME-complete in the program.

    advanced
  • Dependency implication problem

    Decide whether a set of dependencies implies another. For FDs this takes linear time, but finding a key of size at most k and testing a prime attribute are NP-complete.

    1 languagesadvanced
  • Functional dependency discovery

    Given one relation instance, list every minimal functional dependency X -> A that holds in it. The output can be exponential in the number of attributes.

    O(m n 2^m) worstadvanced
  • Index selection problem

    Choose a set of indexes that fits in a space budget and minimizes the estimated cost of a workload, updates included. NP-hard; tools use greedy search over optimizer estimates.

    1 languagesadvanced
  • Multiple-query optimization

    Optimize a batch of queries together, so that a subexpression common to several queries is computed once and shared. The problem is NP-hard; practical methods are heuristics.

    advanced
  • Multiway join problem

    Given three or more relations, compute their natural join. Plans of two-way joins can build intermediate results far larger than the output; multiway algorithms avoid this.

    advanced
  • Parametric query optimization

    Given a query whose cost depends on parameters unknown at compile time, find a set of plans and a rule that picks, for each parameter value, a plan that is optimal for it.

    advanced
  • Query containment problem

    Decide whether one query returns a subset of the answers of another query on every database. NP-complete for conjunctive queries and undecidable for the full relational calculus.

    advanced
  • Regular path query evaluation

    Find the pairs of nodes of an edge-labeled graph that are joined by a path whose labels spell a word of a given regular language.

    advanced
  • Top-k query problem

    Given m lists that grade the same objects, each sorted by its grade, find the k objects with the highest combined score while reading as little of the lists as possible.

    advanced
  • Truth discovery

    Find the true value of each object from sources that conflict, and estimate how reliable each source is at the same time, without labels. A vote is the baseline.

    O(k n) worstadvanced
  • View maintenance problem

    Keep a materialized view equal to its defining query as the base tables change: by recomputation or by incremental deltas, at once or deferred.

    advanced
  • View selection problem

    Choose which views to materialize so that a query workload runs fastest within a budget. In the data cube lattice, greedy gets at least 1 - 1/e of the best benefit.

    1 languagesadvanced
  • Robustness against weak isolation

    Decide whether every execution of a given set of transactions or programs that a weak isolation level allows is serializable, so the weak level is safe for that workload.

    research
  • Schema mapping composition

    Given mappings from A to B and from B to C, find one mapping from A to C with the same meaning; it may need second-order dependencies.

    research

Algorithms

  • Block nested-loop join

    A nested-loop join that reads the outer relation in blocks of B - 2 pages and scans the inner relation once per block, often with a hash table on the block.

    Θ(p q M N) worst1 languagesintro
  • Hash aggregation

    Group and aggregate rows in a hash table keyed by the group, with one partial state per group; spill new groups to hash partitions when memory is full.

    O(n (1 + d/m)) worst1 languagesintro
  • Hash join

    Build a hash table on the join key of the smaller relation, then scan the larger relation and probe the table with each tuple. One pass, M + N page reads, if the table fits in memory.

    Θ(p q M N) worst1 languagesintro
  • Index nested-loop join

    A nested-loop join that, for each tuple of the outer relation, probes an index on the join attribute of the inner relation instead of scanning it.

    O(p M C + T) worst · average · best1 languagesintro
  • Nested-loop join

    Join two relations by testing every pair of tuples: for each tuple or page of the outer relation, scan the whole inner relation. Works for any join condition.

    Θ(p q M N) worst · average · best1 languagesintro
  • Sort-merge join

    Sort both relations on the join attribute with external merge sort, then scan them in step and pair the groups of equal keys. About 3(M + N) page I/Os with enough memory.

    Θ(p q M N) worst1 languagesintro
  • 3NF synthesis

    Builds a 3NF decomposition that is lossless and dependency preserving: one schema per left side of a minimal cover, plus a key schema if needed, minus subsumed schemas.

    O(n (n + m)²) worst1 languagescore
  • Attribute closure algorithm

    Computes the closure X+ of an attribute set under functional dependencies in linear time, with one counter per FD for its left-side attributes not yet reached.

    Θ(n + m) worst · average · best1 languagescore
  • BCNF decomposition

    Split a relation schema on a functional dependency that violates BCNF, again and again, until every part is in BCNF. The result is a lossless join, but it can lose dependencies.

    O(4^n m) worst1 languagescore
  • Conservative two-phase locking

    Two-phase locking in which a transaction declares its read and write sets and gets all its locks at once before its first action. A waiting transaction holds nothing, so there is no deadlock.

    O(w s k) expected per-admission-pass1 languagescore
  • Fuzzy checkpoint

    A checkpoint that records the dirty pages and active transactions without stopping new updates or forcing pages to disk.

    O(n + m + d) worst1 languagescore
  • GYO reduction

    Test whether a hypergraph is alpha-acyclic by repeatedly deleting vertices in one edge only and edges contained in another edge.

    O(m^3 v^2) worst1 languagescore
  • Grace hash join

    Split both relations into B - 1 partitions on disk with one hash function, then join each pair of partitions with an in-memory hash table and a second hash function. 3(M + N) I/Os.

    Θ(p q M N) worst1 languagescore
  • Greedy operator ordering

    A join ordering heuristic that repeatedly joins the two current subplans whose join has the smallest estimated result.

    O(n^3) worst1 languagescore
  • Multiple granularity locking

    Lock the nodes of a hierarchy of database, tables and rows. Intention modes IS, IX and SIX on the ancestors let a coarse lock and a fine lock see each other with one test per node.

    O(d k) expected per-row-access · per-subtree-lock1 languagescore
  • Optimistic concurrency control

    Transactions run without locks on private copies, then a validation step checks their read sets against the write sets of transactions that committed meanwhile, and aborts on overlap.

    O(r + w + k w) worst1 languagescore
  • Parallel hash join

    Hash-partition both inputs across the nodes on the join key in one round of messages, then let each node join its pair of partitions locally. A frequent key value puts all its work on one node.

    O(n/p + L + D) worst · expected1 languagescore
  • Primary copy locking

    Distributed two-phase locking in which each item has one primary copy whose site grants all locks on the item.

    1 languagescore
  • Read-one write-all

    A replica control protocol that reads any one copy of an item and writes all copies, or all available copies in its fault-tolerant form.

    1 languagescore
  • Sort-based aggregation

    Sort the rows on the grouping key with an external merge sort, and combine rows of equal key into one partial state while the runs are formed and merged.

    O(n log n) worst · best1 languagescore
  • Sorted neighborhood method

    Sort the records by a key and compare each record only with the w - 1 records before it. Several passes with different keys and a transitive closure give the duplicate clusters.

    O(p (n log n + w n)) worst · average · best1 languagescore
  • Strict two-phase locking

    Two-phase locking that keeps exclusive locks until commit or abort. Schedules are strict, so no cascading aborts; the rigorous form keeps all locks and serializes in commit order.

    O(w) per-abort1 languagescore
  • Symmetric hash join

    Keep a hash table for each input; each arriving tuple is inserted in its own table and probes the other, producing results at once.

    O(n^2) worst1 languagescore
  • System R join enumeration

    Find the cheapest left-deep join plan by dynamic programming over subsets of relations, keeping one plan per interesting order. The optimizer of System R (1979).

    O(k^2 n 2^n) worst1 languagescore
  • Tableau test for lossless join

    Decide if a decomposition into any number of parts has a lossless join under FDs. Chase a tableau with one row per part; the join is lossless exactly when some row becomes all distinguished.

    O(k^2 a (1 + m log k)) worst1 languagescore
  • Timestamp ordering

    Give each transaction a timestamp at start and keep, per item, the largest read and write timestamps. An action that arrives too late aborts its transaction. No locks, no deadlocks.

    O(n) total1 languagescore
  • Two-phase locking

    Lock each item before use and never lock again after the first unlock. Every schedule it allows is conflict serializable, in the order of the lock points.

    O(k^2) per-deadlock-check1 languagescore
  • Undo/redo logging

    Log before and after images of each update so that recovery redoes committed work and undoes uncommitted work under any buffer policy.

    O(n) worst1 languagescore
  • Wait-die and wound-wait

    Two rules that prevent deadlock in a locking scheduler by age: in wait-die only older transactions wait, in wound-wait only younger ones do. A restart keeps its timestamp.

    O(1) deadlock-search1 languagescore
  • ARIES recovery

    Write-ahead-log recovery in three passes: analysis rebuilds the transaction and dirty page tables, redo repeats history, undo rolls back losers and logs compensation records.

    O(n + u log m) worst1 languagesadvanced
  • AutoAdmin index selection

    Pick indexes for a workload by finding the best ones for each query, then growing a configuration greedily with what-if costs.

    O((n^m + k n) q k) worst · average1 languagesadvanced
  • Block-nested-loop skyline

    Skyline by scanning: keep a window of incomparable tuples in memory, spill the overflow to a temporary file, and use timestamps to output tuples once they have met all others.

    O(d n^2) worst1 languagesadvanced
  • Bloom join

    Send a Bloom filter of the join keys of S to the site of R, keep only the tuples of R that pass it, and join them with S. False positives cost data but never lose a match.

    Θ(k (p M + q N) + p q M N) worst1 languagesadvanced
  • Bond energy algorithm

    A greedy heuristic that permutes the rows and columns of a matrix so that large values sit next to each other. On an attribute affinity matrix it groups attributes that queries use together.

    O(a^3) worst1 languagesadvanced
  • Bottom-up cube computation (BUC)

    Compute an iceberg cube from the group-by ALL toward more specific group-bys, and skip each partition whose row count is below the threshold.

    O(2^D n (log n + q)) worst1 languagesadvanced
  • Branch-and-bound skyline

    Find the skyline with an R-tree: take entries from a heap in order of L1 mindist from the origin, and drop each entry whose lower corner a skyline point found so far dominates.

    O(r b (log(r b) + s d)) worst1 languagesadvanced
  • Bucket algorithm

    Rewrite a query using views: put in a bucket for each subgoal the views that can cover it, then test each combination of bucket entries for containment.

    O(a n (k m)^(2n) (n m)^(3n)) worst1 languagesadvanced
  • Bulk loading a B+ tree

    Build a B+ tree from a set of entries by sorting them, packing them into leaves to a chosen fill factor, and building each index level from the level below. Each node is written once.

    O(N log N) worst1 languagesadvanced
  • Cascades optimization framework

    A rule-driven top-down optimizer that explores groups of equivalent expressions in a memo with tasks, promises and branch-and-bound pruning.

    O(4^n) exploration1 languagesadvanced
  • Chain scheduling

    Schedule stream operators by the slopes of the lower envelopes of their progress charts, so that tuples shrink as fast as possible and the queues between operators use little memory.

    O(log k) worst1 languagesadvanced
  • Chandy-Misra-Haas edge chasing

    Detects a deadlock spread over sites by sending small probes along the wait-for edges between sites. A probe that comes back to its initiator shows a cycle of waiting processes.

    1 languagesadvanced
  • Chase algorithm

    Repair a tableau of symbols with functional and join dependencies until none is violated. The result decides implication of these dependencies and tests a lossless join.

    O(s^2 n (n + m)) worst1 languagesadvanced
  • Conjunctive query minimization

    Find the smallest equivalent conjunctive query by deleting atoms while the query still maps homomorphically into the smaller one.

    O(a k^(k+1)) worst1 languagesadvanced
  • DBMIN buffer management

    Chou and DeWitt's buffer policy: each file a query opens gets its own locality set of frames, sized and replaced by its reference pattern, and a query starts only if all sets fit.

    O(n + f) worst · average1 languagesadvanced
  • DPccp

    Dynamic programming for join ordering that enumerates exactly the connected subgraph and complement pairs of the query graph.

    O(n c) worst1 languagesadvanced
  • Fagin's algorithm

    Top-k over m graded lists: read all lists in parallel until k objects have been seen in every list, then fetch missing grades by random access.

    O(m^2 n) worst1 languagesadvanced
  • Guaranteed-error estimator

    Estimate the number of distinct values in a column from r random rows of n. Its bias is at most a factor 1 + sqrt(n/r), the order of the lower bound for every estimator that reads r rows.

    O(r) expected1 languagesadvanced
  • HRU greedy view selection

    Choose views of a data cube lattice one at a time by largest benefit. The greedy benefit is at least (e - 1)/e, about 63 percent, of the optimal benefit, for a fixed number k of views.

    O(k n^2) worst1 languagesadvanced
  • Holistic twig join

    Match a tree pattern of an XML query over sorted element streams with one stack per query node. With only ancestor-descendant edges, no intermediate result is wasted.

    O(k (n + l z)) worst1 languagesadvanced
  • Hybrid hash join

    Keeps the first partition of the smaller relation in memory as a hash table while it partitions the rest, so that part of both inputs is joined at once and never written to disk.

    Θ(p q M N) worst1 languagesadvanced
  • IKKBZ algorithm

    Find the optimal left-deep join order without cross products for an acyclic query graph and an ASI cost, in polynomial time.

    O(n^2 log n) worst1 languagesadvanced
  • Incremental view maintenance

    Update a materialized view from the changes to its base tables by delta rules, such as dR join S + R join dS + dR join dS, in place of a full recomputation.

    1 languagesadvanced
  • Inverse rules algorithm

    Turn each local-as-view definition into Datalog rules with Skolem terms that derive global facts from source facts, then evaluate the query and drop answers with Skolem terms.

    O(N^(r(b+1))) worst1 languagesadvanced
  • Key-range locking

    Locking for ordered indexes where a lock on a key also covers the gap below it, so range scans see no phantom inserts. Next-key locking is the usual form.

    O(log n + k) expected per-point-operation1 languagesadvanced
  • MiniCon algorithm

    Rewrite a conjunctive query using views: form minimal descriptions of the subgoals each view can cover, then combine sets of them that cover the query exactly once.

    O(a n k (m+1)^n (n k m+1)^n) worst1 languagesadvanced
  • Multi-level transaction recovery

    Recover transactions whose operations release low-level locks early by undoing completed subtransactions with logical inverse operations.

    O(n + u (c + log m) + c m) worst1 languagesadvanced
  • No-random-access algorithm

    Top-k over m graded lists with sorted access only: keep a lower and an upper bound on each seen score, and stop when no other object can beat the k best lower bounds.

    O(m n) worst1 languagesadvanced
  • R-Swoosh

    Resolve entities with black-box match and merge functions: merge each record with the first resolved record it matches and put the result back. Under the ICAR properties the output is exact.

    O(n^2) worst · average1 languagesadvanced
  • Radix hash join

    Cluster both inputs on the low bits of a hash, in passes with a small fan-out, so that each cluster fits in the cache. Then join each pair of clusters with a small hash table.

    O(P(n + m) + 2^b + n m) worst1 languagesadvanced
  • Rank join

    Join two inputs sorted by score and output the results in order of a monotone combined score. Stop when a threshold shows that no pair not yet formed can enter the top k.

    O(n + m + n m log(n + m)) worst1 languagesadvanced
  • Ripple join

    A join for online aggregation. It reads both inputs in random order, joins each new tuple with all tuples read from the other input, and scales the running sum into an unbiased estimate.

    O(n m) worst1 languagesadvanced
  • SDD-1 semijoin optimization

    Algorithm OPT of SDD-1: add the most profitable semijoin while its estimated benefit is larger than its cost, then send the reduced relations to the site that holds the most data.

    O(q^3 e) worst1 languagesadvanced
  • Semi-naive evaluation

    Bottom-up evaluation of a Datalog program that, in each round, uses only rule instances with at least one fact that is new from the last round. Same result as naive evaluation, less work.

    O(s r k^2 n^v) worst1 languagesadvanced
  • Similarity flooding

    Match two schema graphs by propagating initial similarities of nodes to their neighbors until a fixpoint, then filtering the pairs.

    O(s(v + e) + v log v) worst1 languagesadvanced
  • Sort-filter-skyline

    Skyline by presorting on a monotone score such as entropy, then one window filter: a tuple that no window tuple dominates is in the skyline and is output at once.

    O(n log n + d n^2) worst1 languagesadvanced
  • TANE

    Find all minimal functional dependencies of a relation by a levelwise search over attribute sets. Stripped partitions test each candidate, and candidate sets and keys prune the search.

    O((n + m^2.5) 2^m) worst1 languagesadvanced
  • Threshold algorithm

    Top-k over m graded lists: score each object on first sight by random access, and stop once k objects score at least t applied to the last grades read.

    O(m^2 n) worst1 languagesadvanced
  • Transaction chopping

    Split known transaction programs into pieces that commit one by one, and keep every execution serializable: a chopping is safe when its graph of sibling and conflict edges has no SC-cycle.

    O((m^2 + n^3) α(m)) worst1 languagesadvanced
  • Tree locking protocol

    A protocol for items arranged in a tree that locks a node only while holding its parent and allows early release, yet stays serializable.

    O(1) expected per-request1 languagesadvanced
  • TruthFinder

    Iterate between the trust of sources and the confidence of the facts they claim, with similar facts supporting each other and conflicting facts counting against each other.

    O(k n d) worst · average1 languagesadvanced
  • Volcano optimizer generator

    Generate an optimizer from algebraic rules and physical properties that searches plans top down by dynamic programming with memoization.

    O(4^n) exploration1 languagesadvanced
  • Word-aligned hybrid compression

    Compress a bitmap into literal and fill words of machine size, so that AND, OR and XOR run on the compressed form in time linear in the number of compressed words.

    O(p + q) worst · average1 languagesadvanced
  • XJoin

    A symmetric hash join for unreliable sources that spills partitions to disk and joins them while inputs are blocked.

    O(n^2 h^2) worst1 languagesadvanced
  • Yannakakis algorithm

    Evaluate an acyclic join on its join tree: semijoin passes up and down remove every dangling tuple, then joins in time linear in input plus output.

    O(r n + r z) expected1 languagesadvanced
  • Adaptive merging

    Build an index as a side effect of queries: sorted runs are created on the first scan and each range query merges its keys into the final index.

    O(g m log s + t log m + log N + a) worst · average1 languagesresearch
  • Asynchronous barrier snapshotting

    Take consistent snapshots of a stream job by injecting barriers into the sources and aligning them at each operator, without stopping the job.

    O(s + c + b) worst · average1 languagesresearch
  • Calvin deterministic transaction protocol

    Agree on a global order of transaction inputs first, then execute them deterministically at every replica, so no two-phase commit is needed.

    1 languagesresearch
  • Clock-SI

    Snapshot isolation for partitioned data that takes snapshot and commit timestamps from loosely synchronized local clocks, with no central timestamp server.

    1 languagesresearch
  • Core computation for data exchange

    Compute the core, the smallest universal solution: chase, then retract blocks of nulls. Polynomial in data complexity for s-t tgds, and for weakly acyclic target tgds with egds.

    O(m^(w+2)) worst1 languagesresearch
  • DPhyp

    An extension of DPccp to query hypergraphs, which handles complex join predicates and the reordering of outer joins.

    O(3^n m^2) worst1 languagesresearch
  • DRed algorithm

    Maintains a recursive Datalog view after inserts and deletes of stored facts: overdelete every fact with a derivation through a deleted fact, rederive the ones that remain true, then insert.

    O((s + 1) r k^2 n^v) worst1 languagesresearch
  • Differential dataflow

    Incremental computation for iterative dataflow programs that keeps differences indexed by a partial order of versions and iterations.

    O(d n) worst1 languagesresearch
  • Eddies

    An eddy sends each tuple through the filters and joins of a query in an order it chooses per tuple, from what it sees at run time. With timestamped SteMs, every order gives the same result.

    O(T m^2) expected1 languagesresearch
  • Generic join

    Join many relations one attribute at a time: intersect the candidate values from each relation, loop over the smallest set; the time is within the AGM bound.

    O(k n log n + k r a log n) worst1 languagesresearch
  • Higher-order incremental view maintenance

    Materialize the deltas of a view, the deltas of those deltas and so on, so each update is applied by simple arithmetic on maps.

    O(2^k m) worst · average1 languagesresearch
  • HoloClean probabilistic repair

    Repair data by compiling constraints, value statistics and external data into one probabilistic model, learning its weights on clean cells and inferring the most likely value of each noisy cell.

    O(n^2 a v q p + e n a v (a + q)) worst1 languagesresearch
  • Instant restart

    Admit new transactions right after log analysis and redo or undo each page or transaction on demand when it is first touched.

    O(n + u + m) worst1 languagesresearch
  • Leapfrog triejoin

    A worst-case optimal multiway join: bind one attribute at a time, and intersect sorted trie levels by seeks that jump each list to the largest current key.

    O(k n log n + k r a log n) worst1 languagesresearch
  • NFA-based event pattern matching (SASE)

    Evaluate event sequence patterns with an automaton over the stream and a shared buffer of partial matches, then apply predicates and windows.

    O(k^2 M + k n) worst1 languagesresearch
  • Percolator transaction protocol

    Snapshot isolation over a key-value store that has only single-row transactions, using a timestamp oracle, a primary lock per transaction and lazy cleanup by readers.

    1 languagesresearch
  • RAMP transactions

    Read atomic transactions over partitioned data: a reader sees all or none of the writes of each transaction, never waits for other clients, and needs at most two round trips.

    1 languagesresearch
  • Schism workload-driven partitioning

    Partition and replicate tuples by a balanced min cut of a graph that joins tuples used by one transaction, then explain the cut as range predicates. A heuristic for few distributed transactions.

    O(m d + m k) worst1 languagesresearch
  • Serializable snapshot isolation

    Snapshot isolation plus SIREAD locks and two flags per transaction, which abort any transaction that could be the pivot of two consecutive rw edges, so that every committed history is serializable.

    O(p + v + s + w) worst1 languagesresearch
  • Silo epoch-based OCC

    An optimistic commit protocol for multicore in-memory databases: lock the write set, read a global epoch, validate the read set by TIDs, then install. Reads never write shared memory.

    O(r + w log w) worst1 languagesresearch
  • Wander join

    Estimate SUM or COUNT over a join by random walks through the indexes. Each walk is divided by its probability, so it is an unbiased estimate, and a failed walk counts as 0.

    O(k W) expected1 languagesresearch

Data structures

  • Bitmap index

    An index that keeps, for each value of a column, a bit vector with one bit per row. Bitwise AND, OR and NOT then answer selections.

    O(c n / w) worst1 languagesintro
  • Buffer pool

    A fixed set of memory frames that cache disk pages, with a page table, pin counts, dirty bits and a replacement policy that picks a victim among the unpinned frames.

    O(n B) worst1 languagesintro
  • Heap file

    An unordered file of records in pages, with a page directory or two linked lists to find free space. It is the default storage of a table.

    1 languagesintro
  • Lock table

    A hash table from each locked item to its granted group and a FIFO queue of waiting requests, with a compatibility matrix of lock modes. It is the core of a lock manager.

    O(1 + (1 + a) g) expected release1 languagesintro
  • Slotted page

    A page layout that keeps an array of slots at one end and variable-length records at the other. A record id is (page, slot), so records can move inside the page.

    O(n log n + p) worst1 languagesintro
  • Decomposition storage model

    Store each attribute of a table in its own file of values, in record order, so that a scan reads only the columns it needs. A whole record costs one page per column.

    1 languagescore
  • Histogram (database statistics)

    A few buckets that summarize the value distribution of a column. The optimizer reads them to estimate the selectivity of equality and range predicates.

    O(n^2 B) worst1 languagescore
  • N-ary storage model

    Store each record contiguously in a slotted page, so that a whole row costs one page read. A scan of one column still reads every byte of every row.

    1 languagescore
  • Zone map

    The minimum and maximum of a column in each block of rows. A scan skips each block whose interval misses the predicate. It helps only when the data is sorted or clustered on the column.

    O(n) worst1 languagescore
  • Differential file

    Keep changes in a separate file with a filter of changed keys and merge them into the main file later, which eases backup and recovery.

    Θ(k) worst1 languagesadvanced
  • Generalized search tree (GiST)

    A balanced tree template whose keys are predicates. Six key methods (Consistent, Union, Compress, Decompress, Penalty, PickSplit) turn it into a B+ tree, an R-tree or other indexes.

    O(n) worst1 languagesadvanced
  • Join index

    A stored binary relation of pairs of tuple identifiers (rid of r, rid of s) for the tuples of R and S that join. The join is read from it instead of recomputed, at a cost in updates.

    O(d) expected delete · insert1 languagesadvanced
  • PAX page layout

    Keep the records of a page in that page, as NSM does, but store their values by attribute in one minipage each, so that a scan of one attribute uses whole cache lines.

    1 languagesadvanced
  • Prefix B-tree

    A B+ tree on string keys whose separators are shortest separators, chosen inside a split interval, and whose nodes store keys without the prefix that their fences share.

    O(L log n) worst · average · best1 languagesadvanced
  • ALEX updatable learned index

    A learned index that supports inserts by gapped arrays at its leaves and by splitting and retraining nodes when they fill.

    O(h + C) worst1 languagesresearch
  • Bw-tree

    A latch-free B+ tree that changes pages by prepending delta records and installs them with compare-and-swap on a mapping table.

    O(h (c + log B)) worst · average1 languagesresearch
  • Factorized representation

    A join result stored as nested unions and products over a tree of attributes. It can be much smaller than the list of its tuples, and the tuples can still be listed one by one.

    O(k r (k + n) n^s) worst1 languagesresearch
  • FlatFAT

    A complete binary tree in an array that keeps partial aggregates of a window under any associative operator, with O(log n) operator calls per single update and amortized O(1) resizing.

    O(n) worst · build1 languagesresearch
  • Learned index

    A model of the key distribution predicts where a key lies in a sorted array, with a stored error bound per model. A short search inside the bound finishes the lookup.

    O(log e) worst1 languagesresearch
  • PGM-index

    A learned index of recursive piecewise linear models with a guaranteed error bound, built optimally in one pass over the sorted keys.

    O(log m + log ε) worst · average1 languagesresearch

Techniques

  • Iterator model (Volcano)

    Run a query plan by giving each operator open, next and close. The root pulls tuples one at a time, so most operators pipeline and need no stored result.

    1 languagesintro
  • Predicate pushdown

    Rewrite a query plan so that each selection runs as early as the algebraic laws allow: below joins, projections and outer joins on the preserved side.

    1 languagesintro
  • Blocking for entity resolution

    Group records by cheap keys and compare only pairs within the same block. Several keys raise recall, and pair completeness and reduction ratio measure the result.

    core
  • Checkpointing

    Write a marker and recovery tables to the log, and name it in a master record, so that restart after a crash reads only a bounded tail of the log.

    1 languagescore
  • Delta rules

    Rules that give the change of a query result from the changes of its inputs, for each operator of relational algebra.

    1 languagescore
  • Dictionary encoding

    Replace each value of a column by a small integer code from a dictionary of its distinct values. If the dictionary is sorted, the codes keep the order and range filters run on codes.

    1 languagescore
  • Exchange operator

    An operator that splits a plan into parallel streams by partitioning, broadcasting or merging tuples, so other operators stay serial.

    core
  • Frame-of-reference encoding

    Store the values of a block as small offsets from a base value of the block, packed in as few bits as the largest offset needs.

    1 languagescore
  • Logical logging

    Log the high-level operation, such as insert this key, instead of the bytes changed, so undo can work on a page that has since changed.

    core
  • Multiversion concurrency control

    Keep several committed versions of each item, so that a read can be served by an older version instead of waiting or aborting. The schedule must be one-copy serializable.

    1 languagescore
  • Point-in-time recovery

    Restore a backup and replay the archived log up to a chosen time, which undoes the effect of a later user error.

    1 languagescore
  • Shadow paging

    Recovery without an undo or redo log for page contents: a transaction writes changed pages to new places, and commits by an atomic switch of the root page table pointer.

    1 languagescore
  • Subquery unnesting

    Rewrite a correlated nested subquery as a join or an outer join with grouping, so that it is evaluated once instead of once per row.

    1 languagescore
  • Write-ahead logging

    Log each change to stable storage before the page it changes (the WAL rule), and log all of a transaction before its commit returns (the commit rule). Recovery then redoes and undoes.

    1 languagescore
  • Collective entity resolution

    Resolve references jointly: the links between records, such as shared co-authors, add evidence, and each merge changes the evidence for the pairs that are left.

    advanced
  • Command logging

    Log only the transaction requests of a deterministic in-memory database and recover by replaying them from a checkpoint.

    1 languagesadvanced
  • Commitment ordering

    Commit transactions in the order of their conflicts. Each local schedule is then serializable, and with atomic commitment the global schedule across databases is too.

    advanced
  • Data-centric query compilation

    Compile each pipeline of a plan into one tight loop that pushes tuples through its operators, keeping values in registers.

    advanced
  • Deferred view maintenance

    Record base changes in logs and bring a materialized view up to date later, at query time or on a schedule, not in each update.

    advanced
  • Eager aggregation

    Move a grouping below a join when the conditions of Yan and Larson hold, so the join works on fewer rows.

    1 languagesadvanced
  • Escrow transactional method

    Let concurrent transactions update a numeric quantity by reserving amounts in escrow, as long as all outcomes respect its bounds.

    advanced
  • Group commit

    Make one log write durable for the commit records of many transactions, so the commit rate is no longer bounded by one log device write per transaction.

    1 languagesadvanced
  • Late materialization

    In a column store, run the filters on single columns and pass lists of row positions through the plan. Fetch the other columns of a row only for the positions that survive.

    1 languagesadvanced
  • Mid-query re-optimization

    Count the rows at checkpoints while a plan runs, and optimize the rest of the query again when a count is far from its estimate, reusing the results already computed.

    advanced
  • Online aggregation

    Read the input of an aggregate query in random order and keep a running estimate of each answer with a confidence interval, so that the user can stop as soon as the answer is good enough.

    1 languagesadvanced
  • Pane-based window aggregation

    Split a sliding window of range R and slide S into panes of length gcd(R, S), aggregate each pane once, and compute each window from its R / gcd(R, S) pane partials.

    1 languagesadvanced
  • Partial index

    An index over only the rows that satisfy a predicate, which saves space and update cost when queries target that subset.

    1 languagesadvanced
  • Predicate locking

    Lock the condition of a query instead of the rows it found, so that a write of any row that matches the condition must wait. This is the exact cure for the phantom problem.

    1 languagesadvanced
  • Thomas write rule

    In timestamp ordering, skip a write that a younger write has already made obsolete instead of aborting. It admits some schedules that are view but not conflict serializable.

    1 languagesadvanced
  • Vectorized query execution

    Operators exchange batches of column values instead of single tuples, which amortizes call overhead and lets tight loops use SIMD.

    advanced
  • What-if index analysis

    Estimate the benefit of an index without building it by giving the optimizer statistics of a hypothetical index and costing the plans.

    1 languagesadvanced
  • Database cracking

    Build an index as a side effect of queries. Each range query partitions only the pieces of a column copy that hold its bounds, so the column gets closer to sorted where queries go.

    1 languagesresearch
  • Learned cardinality estimation

    Train a model, on executed queries or on the data itself, to predict the result sizes of queries in place of histograms and independence. Its accuracy is measured, not proved.

    research
  • Learned query optimization

    Choose join orders, whole plans or optimizer hints with a model trained on the measured latency of executed plans. The gains are measured on benchmarks; there is no guarantee.

    research
  • Magic sets transformation

    Rewrites a Datalog program for a query with constants, with magic predicates that pass the bindings sideways, so that bottom-up evaluation derives only facts relevant to the query.

    1 languagesresearch
  • Morsel-driven parallelism

    Split the input of each pipeline into small morsels that worker threads take dynamically, which balances load on many cores.

    research
  • Pessimistic cardinality estimation

    Use a guaranteed upper bound on the size of a join, computed from sizes and maximum degrees of the relations, in place of an estimate. The bound never underestimates, but it can be loose.

    research
  • Stream slicing

    Cut a stream into non-overlapping slices at the window boundaries of all queries, keep one partial aggregate per slice, and combine slices to answer each window, so that windows share work.

    1 languagesresearch
  • Write-behind logging

    A protocol for non-volatile memory that writes data first and logs only commit timestamp ranges, so recovery needs no redo.

    1 languagesresearch

Concepts

  • Clustered index

    An index whose key order is the same as the physical order of the rows. A range query reads only the pages of the matching rows, not one page per row.

    1 languagesintro
  • Covering index

    An index that holds every column a query needs, so the query is answered from the index alone with no reads of the table. Extra columns can ride in the leaves only.

    intro
  • Database normalization

    The theory of splitting relation schemas into smaller ones to remove redundancy and update anomalies, with normal forms 1NF, 2NF, 3NF, BCNF and 4NF as goals.

    intro
  • Query plan

    A tree of operators that computes a query. A logical plan uses algebra operators; a physical plan names the algorithm and access path for each one.

    1 languagesintro
  • Selectivity

    The fraction of tuples that satisfy a predicate. Optimizers estimate it from statistics, and assume independence and uniformity when they lack better data.

    intro
  • Semijoin

    The tuples of R that have at least one matching tuple in S, written R ⋉ S. Semijoins shrink relations before a join and fully reduce the relations of a tree query.

    intro
  • Shared-nothing architecture

    A parallel database design in which each node has its own processors, memory and disks, and the nodes work together only by messages. Partitioned data lets it scale out.

    intro
  • Attribute value independence assumption

    The assumption that predicates on different columns are independent, so the selectivity of a conjunction is the product of their selectivities. With correlated columns it underestimates.

    core
  • Conflict graph

    A directed graph on the transactions of a schedule, with an edge Ti -> Tj when an action of Ti conflicts with a later action of Tj. It is acyclic exactly when the schedule is conflict serializable.

    1 languagescore
  • Eager and lazy replication

    Eager replication updates every copy inside the transaction, lazy replication after commit; in the analytical model of Gray et al., eager deadlocks grow as the cube of the node count.

    core
  • Global-as-view and local-as-view

    Two ways to relate sources to a mediated schema: define each global relation as a view of sources, or each source as a view of the global schema.

    core
  • Interesting orders

    Sort orders of intermediate results that a later join, grouping or ORDER BY can use, which a plan enumerator keeps alongside cost.

    core
  • Left-deep and bushy join trees

    The shapes of join plans: a left-deep tree has a base relation as each inner input, a bushy tree may join two intermediate results.

    core
  • Materialized view

    A view whose result is computed and stored. Queries can read it in place of the base tables, but it must be kept up to date when the base tables change.

    core
  • Physiological logging

    Log records that name a page physically but describe the change inside the page logically, which keeps records small and redo per page.

    core
  • Pipelining and materialization

    Operators either pass tuples to the next operator as they are produced or write a full intermediate result; blocking operators break pipelines.

    core
  • Query cost model

    A formula that gives each physical query plan a number, mostly page I/O plus a weighted CPU term, so that the optimizer can compare plans without running them.

    core
  • Steal and force buffer policies

    Two buffer manager choices: may a page with uncommitted changes go to disk (steal), and must commit write all changed pages (force). Steal needs undo; no-force needs redo.

    core
  • Three-valued logic of SQL nulls

    SQL gives a comparison with NULL the value UNKNOWN, combines truth values by Kleene's three-valued logic and keeps a row only when its condition is TRUE, so answers need not be certain.

    core
  • Transaction anomalies

    The ways concurrent transactions go wrong under weak isolation, from dirty writes to write skew. Each is a pattern of operations or a cycle of dependencies, and levels are named by what they forbid.

    core
  • Watermark (event time)

    A timestamp that moves forward with the stream and claims that no more elements with an earlier event time will arrive. Elements that arrive behind it are late.

    core
  • Write skew

    Two concurrent transactions each read data that the other writes, and write different items. Each is correct alone, but together they break a rule that spans the items. Snapshot isolation allows it.

    core
  • Phantom problem

    A query reads the rows that match a condition, and another transaction then inserts a matching row. Row locks cannot stop this, so two-phase locking on rows is not serializable.

    1 languagesadvanced
  • Punctuation (data streams)

    A marker embedded in a data stream that says no later tuple will match a given predicate, so that blocking operators can emit results and stateful operators can drop state.

    advanced
  • Highly available transactions

    The isolation and session guarantees that a replicated database can give while each client still gets an answer during network partitions that may never heal.

    research

Definitions

  • ACID properties

    The four guarantees of a database transaction: atomicity (all or nothing), consistency (constraints kept), isolation (as if alone) and durability (commits survive crashes).

    intro
  • Boyce-Codd normal form (BCNF)

    A schema is in BCNF when the left side of every nontrivial functional dependency that holds is a superkey. Testing a schema against its own FDs is polynomial; testing a projection is coNP-complete.

    1 languagesintro
  • Candidate key

    A set of attributes that functionally determines every attribute of a relation and has no proper subset that does.

    intro
  • Dense and sparse indexes

    A dense index has an entry for every search key value of the file. A sparse index has one entry per block, and it works only on a file sorted on the key.

    intro
  • First normal form (1NF)

    A relation is in first normal form if each attribute value is atomic: no value is itself a set, a list or a relation. Codd's 1970 normalization removes nested relations.

    intro
  • Functional dependency

    A constraint X → Y on a relation: any two tuples that agree on the attributes X must also agree on the attributes Y. Keys are the special case Y = all attributes.

    1 languagesintro
  • Relational algebra

    The query language of six operators on relations: selection, projection, renaming, union, difference and product. Join, intersection and division are derived from them.

    1 languagesintro
  • Schedule (transaction history)

    An interleaving of the read, write, commit and abort actions of several transactions that keeps the order within each transaction.

    intro
  • Second normal form (2NF)

    A relation in first normal form in which no non-prime attribute depends on a proper subset of a candidate key.

    intro
  • Third normal form (3NF)

    A schema is in 3NF if, for each nontrivial FD X → A that holds, X is a superkey or A is in some key. Each schema has a lossless, dependency-preserving 3NF split.

    1 languagesintro
  • Acyclic hypergraph

    A hypergraph whose edges can be arranged in a tree so that the edges that contain any vertex form a connected subtree.

    core
  • Cascadeless schedule

    A schedule in which transactions read only values written by committed transactions, so one abort never forces another.

    core
  • Compensation log record

    A redo-only log record written when an update is undone, which points to the next record to undo so rollback is never repeated.

    core
  • Conflict serializability

    A schedule is conflict serializable if it orders every pair of conflicting actions the same way as some serial schedule. This holds exactly when its conflict graph is acyclic.

    1 languagescore
  • Conjunctive query

    A query built from relational atoms with conjunction and existential quantification; it is the select-project-join part of SQL.

    core
  • Continuous query

    A query that is registered once and runs over unbounded input streams, producing new results as data arrives.

    core
  • Data cube

    The aggregates of a fact table over all subsets of a set of grouping attributes, as defined by the CUBE operator of Gray et al.

    core
  • Dependency-preserving decomposition

    A decomposition preserves the dependencies F when the dependencies that hold inside the parts imply all of F. A polynomial test computes closures without building the projections.

    1 languagescore
  • Fourth normal form (4NF)

    A schema in which every nontrivial multivalued dependency has a superkey on its left side, which removes redundancy from independent facts.

    core
  • Horizontal fragmentation

    Split a relation into subsets of rows defined by selection predicates or by a join with another fragmented relation.

    1 languagescore
  • Inclusion dependency

    A constraint that the projection of one relation on some attributes is a subset of the projection of another, as a foreign key states.

    core
  • Isolation levels

    Weaker forms of serializability, named read uncommitted, read committed, repeatable read and serializable in SQL-92, and defined by the anomalies each one forbids.

    1 languagescore
  • Log sequence number

    A monotone address of a log record; each page stores the LSN of its last update so recovery knows which updates it already holds.

    core
  • Multivalued dependency

    X ->> Y holds when, for each value of X, the Y values and the values of the other attributes combine freely as a cross product.

    core
  • One-copy serializability

    An execution on replicated data is one-copy serializable when it is equivalent to a serial execution on a single copy of each item.

    core
  • Recoverable schedule

    A schedule in which each transaction commits only after every transaction whose writes it read has committed.

    core
  • Relational calculus

    First-order logic over relation names, in tuple or domain form, used as the declarative query language of the relational model. Its answers depend on the domain unless the query is domain independent.

    core
  • Savepoint

    A named point inside a transaction to which it can roll back, undoing later updates while keeping the earlier ones.

    core
  • Schema mapping

    A specification, usually by tuple-generating dependencies, of how the data of a source schema relates to a target schema.

    core
  • Serializability

    A concurrent schedule of transactions is serializable if it is equivalent to some serial schedule. Final-state, view and conflict equivalence give three nested classes.

    1 languagescore
  • Snapshot isolation

    Each transaction reads the committed state as of its start and commits only if no concurrent committed transaction wrote an item it wrote. It allows write skew, so it is not serializable.

    1 languagescore
  • Strict schedule

    A schedule in which no item is read or overwritten until the last transaction that wrote it has committed or aborted.

    core
  • Vertical fragmentation

    Split a relation into projections that each keep the key, grouping attributes that queries use together.

    1 languagescore
  • Adya's generalized isolation levels

    Isolation levels defined by the cycles they forbid in a graph of dependencies between committed transactions, so that locking, optimistic and multiversion systems can all meet them.

    advanced
  • Certain answers

    The tuples that are answers to a query in every possible database consistent with the data and the mapping.

    advanced
  • Conditional functional dependency

    A functional dependency that holds only on the tuples that match a pattern of constants and wildcards. It can also fix the value that a matching tuple must have.

    1 languagesadvanced
  • Data complexity and combined complexity

    Vardi's measures of the cost of query evaluation: with the query fixed and only the database as input (data), with both as input (combined), or with the database fixed (expression).

    advanced
  • Denial constraint

    A constraint that forbids any choice of tuples that makes a conjunction of comparisons true. It generalizes functional dependencies and is used to detect errors.

    1 languagesadvanced
  • Domain-independent query

    A calculus query whose answer depends only on the database and not on the domain of values. The property is undecidable; the safe-range queries are a decidable subclass with the same power.

    advanced
  • Equality-generating dependency

    A first-order constraint that whenever some tuples are present, two of their values must be equal; functional dependencies are a case.

    advanced
  • Fifth normal form (5NF)

    A schema in which every nontrivial join dependency is implied by the candidate keys, so no lossless split into projections removes redundancy.

    advanced
  • Hypertree width

    A width measure of the hypergraph of a query; conjunctive queries of bounded hypertree width can be evaluated in polynomial time.

    advanced
  • Join dependency

    A constraint that a relation equals the natural join of its projections on given sets of attributes; an MVD is the case of two sets.

    advanced
  • Multiversion serializability

    A multiversion schedule is serializable when its reads-from relation is that of a serial run on one copy of each item. A version order with an acyclic MVSG proves it.

    advanced
  • Self-maintainable view

    A materialized view that can be updated from its old contents and the base changes alone, without reading the base relations.

    advanced
  • Tuple-generating dependency

    A first-order constraint that whenever some tuples are present, tuples with possibly new values must be present too.

    advanced
  • Universal solution

    A solution to a data exchange problem that maps homomorphically into every other solution; the chase computes one when it ends.

    advanced
  • View serializability

    A schedule is view serializable if some serial schedule has the same reads-from relation and the same final writes. It is strictly larger than conflict serializability and NP-complete to test.

    1 languagesadvanced
  • Why-provenance and where-provenance

    The sets of input tuples that witness an output tuple, and the input locations from which each output value was copied.

    advanced
  • Fractional hypertree width

    The width of a tree decomposition whose bags are covered by fractional edge covers; bounded width gives polynomial time join evaluation.

    research

Theorems

  • Armstrong's axioms

    Reflexivity, augmentation and transitivity derive exactly the functional dependencies that a set of FDs implies: the rules are sound and complete (Armstrong 1974).

    1 languagescore
  • Codd's theorem

    Relational algebra and the domain-independent (or safe-range) relational calculus express exactly the same queries, under set semantics, and each translates into the other.

    core
  • Equivalence rules of relational algebra

    Laws such as join commutativity, associativity and the pushing of selections and projections, which let an optimizer rewrite a plan. Some hold for sets only, others for sets and bags.

    core
  • Five-minute rule

    Keep a page in memory if it is used again within the break-even interval, set by the price of memory, the price of a disk and its access rate. In 1987 it was about five minutes.

    core
  • Heath's theorem

    If X -> Y holds in a relation over the attributes XYZ, the relation is the join of its projections on XY and XZ. Fagin showed that the exact condition is the MVD X ->> Y.

    core
  • Serializability theorem

    A schedule is conflict serializable exactly when its conflict graph is acyclic, and a topological order gives an equivalent serial order.

    core
  • Two-phase locking theorem

    Every schedule produced by transactions that follow two-phase locking is conflict serializable, in the order of their lock points.

    core
  • AGM bound

    A join's output size is at most the product of |R_e|^(x_e) for any fractional edge cover x of its hypergraph; the best cover gives a bound that some instances reach.

    1 languagesadvanced
  • Chandra-Merlin theorem

    A conjunctive query Q1 is contained in Q2 if and only if there is a homomorphism from Q2 to Q1, if and only if the head of Q1 is an answer of Q2 on the canonical database of Q1.

    1 languagesadvanced
  • Dangerous structure theorem

    Every cycle in the dependency graph of a snapshot isolation history has two rw-antidependency arcs in a row between concurrent transactions, and the last of the three commits first.

    advanced
  • Exponential propagation of estimation errors

    If each frequency that a join size estimate uses is off by at most a factor 1 + e, the estimate for a join of n relations is off by at most (1 + e)^n, and this bound is reached.

    advanced
  • NP-completeness of rewriting queries using views

    Deciding whether a conjunctive query has an equivalent rewriting using conjunctive views is NP-complete, and a rewriting needs no more view atoms than the query has subgoals.

    advanced
  • NP-completeness of the prime attribute problem

    Deciding whether an attribute belongs to some candidate key of a schema with functional dependencies is NP-complete (Lucchesi and Osborn 1978). Finding one key is easy.

    advanced
  • NP-completeness of view serializability

    Testing whether a schedule is view serializable is NP-complete, unlike conflict serializability, which a cycle test decides.

    advanced
  • NP-hardness of join ordering

    Finding an optimal join order is NP-hard in general, while for tree queries under an ASI cost function it is polynomial.

    advanced
  • Sagiv-Yannakakis theorem

    A union of conjunctive queries is contained in another union exactly when each of its members is contained in some member of the other.

    advanced
  • Weak acyclicity and chase termination

    If the dependency graph of the tgds has no cycle through a special edge, each chase stops in polynomially many steps, for a fixed set of dependencies, in the size of the instance (data complexity).

    advanced
  • Dalvi-Suciu dichotomy theorem

    Each union of conjunctive queries on a tuple-independent database can be evaluated in polynomial time by lifted rules or is #P-hard.

    research
  • Invariant confluence

    Transactions can keep an invariant with no coordination, staying available and convergent, exactly when merging two states reachable from a common valid state keeps it.

    research

Models

  • Entity-relationship model

    Chen's conceptual model of entities, attributes and relationships with cardinality constraints, and its mapping to relation schemas.

    intro
  • Relational data model

    Codd's model of data: a database is a finite set of relations, each a finite set of tuples over named attributes, with keys and other integrity constraints.

    intro
  • Fellegi-Sunter model

    A probabilistic model of record linkage: score each pair by the likelihood ratio of its field agreements under match and non-match, and link, review or reject it by two thresholds.

    core
  • CQL stream-relation model

    Define stream queries by window operators that turn streams into relations, relational operators, and operators that turn relations back into streams.

    advanced
  • Dataflow model

    A model of stream computation that separates what is computed, where in event time (windows), when in processing time (triggers) and how results refine (accumulation).

    advanced
  • Datalog

    A query language of function-free Horn rules over relations. Its meaning is the least fixed point of the rules, which adds recursion to the select-project-join-union queries.

    advanced
  • Probabilistic database

    A database whose tuples are present with given probabilities; a query returns each answer with the probability that it holds.

    advanced
  • Provenance semirings

    Annotate tuples with elements of a commutative semiring and carry them through positive queries; provenance polynomials are the most general.

    advanced
  • Sagas

    A long-lived transaction written as a sequence of local transactions, each with a compensating transaction that undoes it on failure.

    advanced
  • DBSP

    A model of incremental computation over streams of changes to Z-sets, with an algorithm that turns any query into an incremental circuit.

    research
  • Timely dataflow

    A dataflow model with logical timestamps on messages and progress tracking, which supports cyclic, incremental and low-latency computation.

    research