×

Fair scheduling for mixed-query loads

  • US 10,817,513 B2
  • Filed: 06/27/2017
  • Issued: 10/27/2020
  • Est. Priority Date: 03/14/2013
  • Status: Active Grant
First Claim
Patent Images

1. A computing system, comprising:

  • one or more processors;

    storage media;

    one or more programs stored in the storage media and configured for execution by the one or more processors, the one or more programs comprising instructions configured for;

    obtaining a query for execution by a database management system and a cost estimate for the database management system to execute the query;

    enqueuing an item for the query onto a queue, the queue having a head, a tail, and a maximum number of allowed items;

    based, at least in part, on the cost estimate, dividing the query into a plurality of sub-queries;

    based, at least in part, on an item for the query reaching the head of the queue, causing a first sub-query of the plurality of sub-queries to be executed by the database management system; and

    based, at least in part, on determining there are more sub-queries of the plurality of sub-queries to be executed by the database management system;

    re-enqueuing an item for the query onto the tail of the queue if a current number of items in the queue is less than the maximum number of allowed items, orwaiting until a current number of items in the queue is less than the maximum number of allowed items before re-enqueuing an item for the query onto the tail of the queue if a current number of items in the queue is not less than the maximum number of allowed items.

View all claims
  • 7 Assignments
Timeline View
Assignment View
    ×
    ×