Partition key adjustment based on query workload

US2022012245A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2022012245-A1
Application numberUS-202016926831-A
CountryUS
Kind codeA1
Filing dateJul 13, 2020
Priority dateJul 13, 2020
Publication dateJan 13, 2022
Grant date

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Disclosed is a computer-implemented method to adjust partition keys. The method includes identifying a target table that is a target of a query, the target table including a set of initial partitions. The method also includes determining a set of common queries, wherein each of the common queries are configured to retrieve data from the target table. The method further includes identifying a plurality of core ranges. The method includes merging the core ranges into a new set of partitions. The method further includes setting, in response to the merging, updated partition keys. Further aspects of the present disclosure are directed to systems and computer program products containing functionality consistent with the method described above.

First claim

Opening claim text (preview).

What is claimed is: 1 . A computer-implemented method for adjust partition keys comprising: identifying a target table that is a target of a query, the target table including a set of initial partitions; determining a set of common queries, wherein each of the common queries are configured to retrieve data from the target table; identifying a plurality of core ranges; merging the core ranges into a new set of partitions; and setting, in response to the merging, updated partition keys. 2 . The method of claim 1 , wherein each common query includes a weight. 3 . The method of claim 2 , wherein the merging is based on the weight of each common query. 4 . The method of claim 1 , wherein each common query includes a plurality of entries. 5 . The method of claim 1 , wherein at least one of the new set of partitions includes a different number of entries than the number of entries in the initial set of partitions. 6 . The method of claim 5 , wherein a number of entries in each new partition of the new set of partitions is greater than a low entry threshold, and less than a high entry threshold. 7 . The method of claim 1 further comprising: dividing each of the plurality of core ranges into one or blocks; and mapping the one or blocks to a set of physical partitions. 8 . The method of claim 7 , wherein the set of physical partitions is equivalent to the set of initial partitions. 9 . The method of claim 1 , wherein the set of initial partitions is a range partition. 10 . The method of claim 1 , wherein the set of initial partitions is a list partition. 11 . A system configured to adjust partition keys comprising: a processor; and a computer-readable storage medium communicatively coupled to the processor and storing program instructions which, when executed by the processor, are configured to cause the processor to: identify a target table, that is a target of a query, the target table including a set of initial partitions; determine a set of common queries, wherein each of the common queries are configured to retrieve data from the target table; identify a plurality of core ranges; merge the core ranges into a new set of partitions; and set, in response to the merging, updated partition keys. 12 . The system of claim 11 , wherein each common query includes a weight. 13 . The system of claim 12 , wherein the merging is based on the weight of each common query. 14 . The system of claim 11 , wherein each common query includes a plurality of entries. 15 . The system of claim 11 , wherein at least one of the new set of partitions includes a different number of entries than the number of entries in the initial set of partitions. 16 . A computer program product, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processing unit to cause the processing unit to: identify a target table, that is a target of a query, the target table including a set of initial partitions; determine a set of common queries, wherein each of the common queries are configured to retrieve data from the target table; identify a plurality of core ranges; merge the core ranges into a new set of partitions; and set, in response to the merging, updated partition keys. 17 . The computer program product of claim 16 , wherein each common query includes a weight. 18 . The computer program product of claim 17 , wherein the merging is based on the weight of each common query. 19 . The computer program product of claim 16 , wherein each common query includes a plurality of entries. 20 . The computer program product of claim 16 , wherein at least one of the new set of partitions includes a different number of entries than the number of entries in the initial set of partitions.

Assignees

Inventors

Classifications

  • Tablespace storage structures; Management thereof · CPC title

  • Presentation of query results · CPC title

  • Updating · CPC title

  • Unary operations; Data partitioning operations · CPC title

  • using cached or materialised query results · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US2022012245A1 cover?
Disclosed is a computer-implemented method to adjust partition keys. The method includes identifying a target table that is a target of a query, the target table including a set of initial partitions. The method also includes determining a set of common queries, wherein each of the common queries are configured to retrieve data from the target table. The method further includes identifying a pl…
Who is the assignee on this patent?
IBM
What technology area does this patent fall under?
Primary CPC classification G06F16/2282. Mapped technology areas include Physics.
When was this patent published?
Publication date Thu Jan 13 2022 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).