×

Speculative switch database

  • US 8,756,217 B2
  • Filed: 07/12/2011
  • Issued: 06/17/2014
  • Est. Priority Date: 07/12/2011
  • Status: Active Grant
First Claim
Patent Images

1. A non-transitory computer readable medium comprising instructions, the instructions operable when executed by a processor to:

  • receive a database selection message from a database client;

    transmit an unconditional acknowledgement to the database client in response to the database selection message;

    access a database query from a queue of queries from the database client, the database query comprising a user identifier and a database identifier;

    determine whether a matching backend database connection exists, the matching backend database connection having a user identifier equivalent to the user identifier of the database query and a database identifier that is equivalent to the database identifier of the database query;

    if a matching backend database connection exists, forward the database query to the matching backend database connection; and

    determine, in response to determining that the matching backend database does not exist, whether a similar backend database connection exists, the similar backend database connection having a user identifier equivalent to the user identifier of the database query and a database identifier not equivalent to the database identifier of the database query, or having the user identifier not equivalent to the user identifier of the database query and the database identifier that is equivalent to the database identifier of the database query;

    if the similar backend database connection exists and the user identifier of the similar backend database connection is equivalent to the user identifier of the database query, transmit a request to a database server to switch the database identifier of the similar backend connection to the database identifier of the database query; and

    if the similar backend database connection exists and the database identifier of the similar backend database connection is equivalent to the database identifier of the database query, transmit a request to switch the user identifier of the similar backend database connection to the user identifier of the database query.

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