Patents
US 7,676,525 B2#26540404 Most CitedActiveUnited States (USPTO)Utility

Efficient query processing of merge statement

4Forward Citations (#26540404 Global)
0.2/yrCitation Velocity (#28642593 Global)
1.19Citation PageRank (#32601019 Global)
10Prior Art Cited
2Claims (1 Indep. · 1 Dep.)
0Drawings / Sheets

Abstract

Disclosed are systems and methods for optimization and efficient processing of MERGE statements. MERGE allows performing a mix of inserts, updates, and deletes in a single statement, and introduces new challenges compared to legacy DML statements, where the kind of action to be performed is hard-coded and known at compile time. Such optimizations may include Halloween Protection detection for MERGE statements, optimized prevention of non-deterministic MERGE statements, in-place inserts for MERGE statements scanning the “Read Instance” of the target table, and optimized execution of MERGE statements seeking the “Read Instance” of the target table. Such optimizations may be fundamental in order to ensure proper performance and reliable processing times.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 4.

Claims (2 — 1 Independent, 1 Dependent)

  1. Claim 1Independent Claim

    A method for Halloween Protection detection for MERGE statements, the method comprising: during a compile phase, detecting a MERGE statement in a Data Manipulation Language file; analyzing a syntax of the MERGE statement to locate a WHEN MATCHED THEN UPDATE clause; determining whether key or partitioning columns of an index being scanned or sought of a Read Instance intersect with columns being updated in the WHEN MATCHED THEN UPDATE clause; and when the key or partitioning columns of the index being scanned or sought of the Read Instance intersect with the columns being updated in the WHEN MA

  2. Claim 2Depends on #1

    The method of claim 1 , further comprising: determining that Halloween Protection is not required unless the key or partitioning columns of the index bei

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Non-Patent Literature (4)

  • Blakeley, J.A. et al., "Distributed/Heterogeneous Query Processing in Microsoft SQL Server", Proceedings of the 21st International Conference on Data Engineering, 2005, 12 pages, http://ieeexplore.ieee.org.
  • Fitzpatrick, A., "Anecdotes, A Well-Intentioned Query and the Halloween Problem", IEEE Annals of the History of Computing, 2002, 86 thru 89, http://ieeexplore.ieee.org.
  • Graefe, G., "Executing Nested Queries", http://scholar.google.com, 24 pages.
  • Graefe, G., "Implementing Sorting in Database Systems", ACM Computing Surveys, 2006, 38(3), 37 pages, http://delivery.acm.org.