Interception of database queries for delegation to an in memory data grid
First Claim
1. A method for intercepting database queries from a computer program for delegation to an in memory data grid, the method comprising:
- enabling a client database driver for a database management system to delegate database queries from interfacing with a database to interfacing with an in memory data grid;
retrieving database queries from the enabled client database driver from a requesting computer program;
comparing at least a portion of each of the retrieved database queries to a listing of database queries that have been a priori determined for routing onto the in memory data grid; and
,selectively delegating the retrieved database queries to the in memory data grid in lieu of the database management system based upon the comparison and on condition that one of the retrieved database queries is delegated to the in memory data grid in lieu of the database management system, determining a fetch routine from the query routing list from the listing of database queries.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present invention provide a method, system and computer program product for the seamless integration of an application with an in memory data grid. In an embodiment of the invention, a method for intercepting database queries from a computer program for delegation to an in memory data grid is provided. The method includes retrieving database queries from a database driver for a database management system from a requesting computer program and comparing at least a portion of each of the database queries to a listing of database queries. Thereafter, the database queries are selectively routed to a data grid, such as an in memory data grid, in lieu of the database management based upon the comparison.
16 Citations
13 Claims
-
1. A method for intercepting database queries from a computer program for delegation to an in memory data grid, the method comprising:
-
enabling a client database driver for a database management system to delegate database queries from interfacing with a database to interfacing with an in memory data grid; retrieving database queries from the enabled client database driver from a requesting computer program; comparing at least a portion of each of the retrieved database queries to a listing of database queries that have been a priori determined for routing onto the in memory data grid; and
,selectively delegating the retrieved database queries to the in memory data grid in lieu of the database management system based upon the comparison and on condition that one of the retrieved database queries is delegated to the in memory data grid in lieu of the database management system, determining a fetch routine from the query routing list from the listing of database queries. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method for use with a client database driver that selectively forwards incoming database queries to one of the following recipient components:
-
a database or an in memory data grid, the method comprising; receiving, by the client database driver, a grid eligible query type data set including information indicative of query types that are eligible to be sent to the in memory data grid instead of to the database; receiving, by the client database driver, a new database query; determining, by the client database driver and based upon the grid eligible query type data set, that the new database query is of a query type such that the new database query is a grid-eligible database query that is eligible to be sent to the in memory data grid; responsive to the determination that the new database query is a grid-eligible query, determining, by the client database driver, a utilization level value of the in memory data grid; comparing, by the client database driver, the utilization level value of the in memory data grid to a predetermined threshold value to determine that the utilization level value is higher than the predetermined threshold value; and responsive to the determination that the utilization level value is higher than the threshold value, forwarding, by the client database driver, the grid-eligible database query to the database instead of to the in memory data grid. - View Dependent Claims (9, 10)
-
-
11. A method for use with a client database driver that selectively forwards incoming database queries to one of the following recipient components:
- a database or an in memory data grid, the method comprising;
receiving, by the client database driver, a grid eligible query type data set including information indicative of query types that are eligible to be sent to the in memory data grid instead of to the database; receiving, by the client database driver, a new database query; determining, by the client database driver and based upon the grid eligible query type data set, that the new database query is of a query type such that the new database query is a grid-eligible database query that is eligible to be sent to the in memory data grid; responsive to the determination that the new database query is a grid-eligible query, determining, by the client database driver, a utilization level value of the in memory data grid; comparing, by the client database driver, the utilization level value of the in memory data grid to a predetermined threshold value to determine that the utilization level value is lower than the predetermined threshold value; and responsive to the determination that the utilization level value is lower than the predetermined threshold value, forwarding, by the client database driver, the grid-eligible database query to the in memory data grid instead of to the database. - View Dependent Claims (12, 13)
- a database or an in memory data grid, the method comprising;
Specification