US9928274B2

Dynamically adjust duplicate skipping method for increased performance

Summary by NHIP

Dynamic Duplicate Skipping Method

The method dynamically adjusts duplicate-skipping granularity during database query execution based on estimated distances between index keys. It performs a coarse binary search from the tree root when keys reside in leaf pages at least one page apart, then switches to a finer binary search within the same leaf page when keys are closer together.

Claim Score by NHIP

Read claim 1, the broadest

Abstract

Embodiments presented herein provide techniques for setting different methods of skipping duplicate values when executing a query statement in a relational database. A distance between a two distinct keys in an index, a current index key and a next distinct index key, are estimated. Based on the estimated distance, an appropriate duplicate-skipping method is determined. If the proximity between the distinct keys is relatively far apart (e.g., the keys reside in index pages that are at least an index page apart), then a “big skip” method is performed. Otherwise, if the proximity between the distinct keys is relatively near (e.g., the keys reside in the same index page), then a “little skip” method is performed.

US9928274B2, drawing sheet 1
Sheet 1 of 6

Term

Projected expiry 13 July 2034.

  1. Priority and filed
  2. Granted
  3. Today
  4. Projected expiry

21 claims: 1 independent, 20 dependent

  1. 1
    Broadest claimClaim Score 32, narrow(NHIP)A computer-implemented method to dynamically adjust a granularity with which to skip duplicate index keys in a database index when identifying records in a database that satisfy a database query, the computer-implemented method comprising:estimating a first distance in the database index between a first index key and a next, distinct index key relative to the first index key upon determining that the estimated first distance satisfies a first criterion, identifying a second index key by operation of one or more computer processors and by performing a coarser duplicate-skipping operation comprising a binary search from a root of a tree of the database index, the second index key comprising the next, distinct index key relative to the first index key;estimating a second distance in the database index between the second index key and a next, distinct index key relative to the second index key;and upon determining that the estimated second distance satisfies a second criterion, identifying a third index key by performing a finer duplicate-skipping operation comprising a binary search within a leaf page where the second index key resides, the third index key comprising the next, distinct index key relative to the second index key.