×

Priority queue using two differently-indexed single-index tables

  • US 9,514,170 B1
  • Filed: 05/15/2013
  • Issued: 12/06/2016
  • Est. Priority Date: 05/15/2013
  • Status: Active Grant
First Claim
Patent Images

1. A system, comprising:

  • one or more hardware computing devices configured to;

    in response to a request to generate an instance of a priority queue using a provisioned-input-output (provisioned-I/O) database that permits no more than one index per database table, configure an identifier-indexed table and a priority-indexed table in the database, wherein each queue entry of the instance is represented by a pair of tuples comprising a tuple in the identifier-indexed table and a tuple in the priority-indexed table;

    in response to a request to insert a queue entry into the instance, insert one tuple with a corresponding identifier into the identifier-indexed table and one tuple with the corresponding identifier into the priority-indexed table; and

    in response to a request to remove a queue entry with a specified identifier from the instance,identify, using an index lookup of the specified identifier, a first target tuple to be removed from the identifier-indexed table;

    remove the first target tuple from the identifier-indexed table; and

    defer a removal of a second target tuple from the priority-indexed table until, in response to a request to retrieve an identifier of a queue entry based at least in part on a priority criterion, a determination is made that the first target tuple has been removed from the identifier-indexed table.

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