×

Min/max query with synopsis guided scan order

  • US 9,892,157 B2
  • Filed: 12/07/2016
  • Issued: 02/13/2018
  • Est. Priority Date: 01/27/2016
  • Status: Expired due to Fees
First Claim
Patent Images

1. A computer program product for synopsis guided scan processing of MIN/MAX dataset data value queries, the computer program product comprising:

  • one or more non-transitory computer readable storage media and program instructions stored on the one or more non-transitory computer readable storage media, the program instructions comprising;

    program instructions to, receive, by MIN/MAX query executor, a minimal data query operation or a maximal data query operation to determine at least one of a minimal value result or a maximal value result, respectively;

    program instructions to, receive, by the MIN/MAX query executor, a synopsis store wherein the synopsis store comprises one or more tuple range identifiers and at least one of one or more column minimal metadata values or one or more column maximal metadata values wherein each of the one or more tuple range identifiers is associated with a related dataset column;

    program instructions to, sort, by the MIN/MAX query executor, the synopsis store, creating a search order of the one or more tuple range identifiers based on at least one of the one or more column minimal metadata values or the one or more column maximal metadata values, wherein the search order comprises sorting the one or more column minimal metadata values in ascending order and the one or more column maximal metadata values in descending order;

    program instructions to, filter the search order, by the MIN/MAX query executor, creating an ordered filtered synopsis list comprising a predetermined quantity of the one or more tuple range identifiers wherein the predetermined quantity is based on at least one of a static value, calculated value, metadata statistics or dataset data statistics;

    program instructions to, search, by the MIN/MAX query executor, dataset data values of the related dataset column associated with the one or more tuple range identifiers in the ordered filtered synopsis list for at least one of the minimal value result or the maximal value result until at least one of reaching an end of the ordered filtered synopsis list, the minimal value result is less than or equal to a next column minimal metadata value or the maximal value result is greater than or equal to a next column maximal metadata value respectively;

    program instructions to, respond to reaching the end of the ordered filtered synopsis list, searching, by the MIN/MAX query executor, the dataset data values of the related dataset column further based on executing an unordered search wherein the unordered search searches a reduction of the synopsis store based on a subtraction of the one or more tuple range identifiers in the ordered filtered synopsis list from the synopsis store using a local predicate; and

    program instructions to, output, by MIN/MAX query executor, at least one of the minimal value result or the maximal value result of the related dataset column associated with one of the minimal data query operation and the maximal data query operation respectively.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×