US20030200209A1 - System and method for routing database requests to a database and a cache - Google Patents

System and method for routing database requests to a database and a cache Download PDF

Info

Publication number
US20030200209A1
US20030200209A1 US10/458,382 US45838203A US2003200209A1 US 20030200209 A1 US20030200209 A1 US 20030200209A1 US 45838203 A US45838203 A US 45838203A US 2003200209 A1 US2003200209 A1 US 2003200209A1
Authority
US
United States
Prior art keywords
database
cache
request
database request
driver
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US10/458,382
Inventor
Erik Smith
Paul Conley
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mec Management LLC
Xylon LLC
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to US10/458,382 priority Critical patent/US20030200209A1/en
Publication of US20030200209A1 publication Critical patent/US20030200209A1/en
Assigned to INFOCRUISER reassignment INFOCRUISER ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: CONLEY, PAUL ALAN, SMITH, ERIK RICHARD
Assigned to SUNSTONE COMPONENTS LLC reassignment SUNSTONE COMPONENTS LLC ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: APPFLUENT TECHNOLOGY, INC.
Assigned to APPFLUENT TECHNOLOGY, INC. reassignment APPFLUENT TECHNOLOGY, INC. CHANGE OF NAME (SEE DOCUMENT FOR DETAILS). Assignors: INFOCRUISER, INC.
Assigned to INFOCRUISER, INC. (DE) reassignment INFOCRUISER, INC. (DE) MERGER (SEE DOCUMENT FOR DETAILS). Assignors: INFOCRUISER, INC. (CA)
Assigned to MEC MANAGEMENT, LLC reassignment MEC MANAGEMENT, LLC ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: BYLAS DISTRICT ECONOMIC ENTERPRISE LLC
Assigned to INTELLECTUAL VENTURES ASSETS 114 LLC, INTELLECTUAL VENTURES ASSETS 119 LLC reassignment INTELLECTUAL VENTURES ASSETS 114 LLC SECURITY INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: BYLAS DISTRICT ECONOMIC ENTERPRISE, LLC
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • G06F16/24534Query rewriting; Transformation
    • G06F16/24539Query rewriting; Transformation using cached or materialised query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2452Query translation
    • G06F16/24524Access plan code generation and invalidation; Reuse of access plans
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10TECHNICAL SUBJECTS COVERED BY FORMER USPC
    • Y10STECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10S707/00Data processing: database and file management or data structures
    • Y10S707/99931Database or file accessing
    • Y10S707/99933Query processing, i.e. searching
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10TECHNICAL SUBJECTS COVERED BY FORMER USPC
    • Y10STECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10S707/00Data processing: database and file management or data structures
    • Y10S707/99931Database or file accessing
    • Y10S707/99938Concurrency, e.g. lock management in shared database
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10TECHNICAL SUBJECTS COVERED BY FORMER USPC
    • Y10STECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10S707/00Data processing: database and file management or data structures
    • Y10S707/99951File or database maintenance
    • Y10S707/99952Coherency, e.g. same view to multiple users

Definitions

  • the present invention relates generally to computer databases and more particularly to a system and method for routing database requests from application logic to a cache and a database.
  • a database refers to a collection of information organized in such a way that a computer program can quickly select desired pieces of data.
  • a database might use a database to store contact information from their rolodex, such as names, addresses, and phone numbers, whereas a business entity might store information tracking inventory or customer orders.
  • Databases include the hardware that physically stores the data, and the software that utilizes the hardware's file system to store the data and provide a standardized method for retrieving or changing the data.
  • a database management system provides access to information in a database. This is a collection of programs that enables a user to enter, organize, and select data in a database.
  • the DBMS accepts requests for data (referred to herein as database requests) from an application program and instructs the operating system to transfer the appropriate data.
  • Database requests can include, for example, read-only requests for database information (referred to herein as informational database requests) and requests to modify database information (referred to herein as transactional database requests).
  • informational database requests requests to modify database information
  • FIG. 3A depicts a conventional database configuration 300 A, wherein a computer application 102 accesses information stored in a database 104 having a DBMS 120 .
  • Application 102 includes application logic 110 and a database driver 114 .
  • Application 102 and database 104 interact in a client/server relationship, where application 102 is the client and database 104 is the server.
  • Application logic 110 establishes a connection 310 to DBMS 120 using database driver 114 .
  • Database driver 114 provides an Application Programming Interface (API) that allows application logic 110 to communicate with database 104 using function calls included in the API.
  • Conventional database drivers 114 typically handle communication between a client (e.g., application logic 110 ) and a single database server, or possibly between multiple servers of the same basic type.
  • Many conventional database drivers 114 make use of a proprietary client/server communication protocol (shown as line 310 in FIG. 3A).
  • FIG. 3B depicts a second conventional database configuration 300 B wherein a cache 106 is inserted between application 102 and database 104 .
  • This configuration is referred to herein as an inline cache.
  • Application logic 110 uses a cache driver 302 to establish a connection with cache 106 .
  • Cache 106 provides rapid access to a subset of the database information stored in database 104 , as will be apparent to those skilled in the art.
  • Cache 106 establishes a connection 314 with DBMS 120 using database driver 114 , where the driver can be integrated within the cache.
  • Cache 106 may handle requests differently depending on the type of operation requested and whether the target data is stored in cache 106 .
  • informational database requests can be handled by cache 106 without going to database 104 , so long as the information that is the target of the request (i.e., the target data) in stored in cache 106 . Since the response time of cache 106 is significantly faster than that of database 104 , performance is increased as the percentage of information database requests grows in relation to the total number of database requests.
  • Transactional database requests are performed in both cache 106 and database 104 . Consistency between cache 106 and database 104 is maintained because transactional requests are performed on the database information stored in both locations. As a result, application logic 110 can only utilize those transactional requests that are understood by both cache 106 and database 104 for consistency to be maintained. For example, if application logic 110 issued a transactional request that was understood by database 104 but not by cache 106 , the information would be changed in database 104 but not in cache 106 , and the two would no longer be consistent. Therefore, only those requests for which database 104 and cache 106 share a common vocabulary are supported in this configuration.
  • database manufacturers provide for the execution of stored procedures within database 104 which can increase flexibility and performance.
  • the implementation of these database-side capabilities may be proprietary to the database manufacturer.
  • Third party manufacturers of inline caches may not have access to this proprietary information, and may therefore be unable to implement corresponding capabilities within the cache.
  • consistency cannot be maintained between cache 106 and database 104 in inline cache configuration 300 B if application logic 110 is allowed to utilize these database-side capabilities.
  • This limitation forces software vendors to re-code their applications 102 , eliminating any calls to database-side capabilities in favor of those operations within the vocabulary common to both cache and database.
  • the fault tolerance of the inline cache configuration depends upon the fault tolerance of the inline cache. Failure of the inline cache will result in database 104 being cut off from its clients, since all client request must pass through the failed cache 106 .
  • the present invention provides a system and method for routing database requests from application logic to a cache and a database, including receiving a database request from the application logic, determining whether the request is informational or transactional, routing the request to the cache if the database request is informational, and routing the request to the database if the request is transactional.
  • a first example embodiment of the present invention includes a database which is accessed using a first driver, a cache, and a second driver which determines whether database requests received from application logic are informational or transactional, where informational requests are routed to the cache and transactional requests are routed to the database using the first driver.
  • An advantage of the present invention is that transactional requests are routed to the database without passing through the cache, thereby enabling the application logic to utilize whatever proprietary database mechanisms and/or database-side execution capabilities are provided the database. Routing transactional requests to the database without passing through the cache also decreases the amount of time the client must remain locked pending completion of the transactional request.
  • Another advantage of the present invention is that informational requests are routed to, and handled by, the cache. As a result, those informational requests that can be handled by the cache need never be forwarded on to the database.
  • the database freed of the responsibility of handling these informational requests, may more efficiently handle those other requests that are routed to the database.
  • Another advantage of the present invention is that the fault-tolerance of the system does not depend upon the fault-tolerance of the cache. If the cache fails, all requests may be routed directly to the database until the cache is again operational. In other words, according to the present invention, the cache is not a system point of failure.
  • the present invention provides for the efficient processing of database requests, particularly where the requesting application issues informational requests in disproportion to the number of transactional requests. For example, applications which maintain a web site receive many more request for data than requests to change data. As a result, these applications will issue many more informational requests (that are not sensitive to cache consistency) than transactional requests to a backend database.
  • the present invention is particularly well suited to processing database requests in this type of environment.
  • FIG. 1 depicts a cache configuration according to an example embodiment of the present invention.
  • FIG. 2A depicts a first example hardware configuration, wherein an application runs on a client computer in communication with a database running on a server computer.
  • FIG. 2B depicts a second example hardware configuration, wherein a database utilizes multiple servers.
  • FIG. 2C depicts a third example hardware configuration, wherein multiple applications operate on one or more client computers to access a database.
  • FIG. 2D depicts a fourth example hardware configuration employing two or more caches.
  • FIG. 3A depicts a conventional database configuration, wherein a computer application accesses information stored in a database having a database management system.
  • FIG. 3B depicts an inline cache configuration.
  • FIG. 4 is a flowchart that describes a method for routing database requests according to the present invention.
  • FIG. 5 is a flowchart that describes determining whether a database request is appropriate for cache processing in greater detail according to an example embodiment of the present invention.
  • FIG. 6 depicts an example database request being subject to lexical and semantic analysis.
  • FIG. 7 is a flowchart that describes an alternative example embodiment of the present directed to routing database requests to a remote cache.
  • FIG. 8 is a flowchart that describes routing a database request to a database in greater detail according to an example embodiment of the present invention.
  • FIG. 9 is a flowchart that describes routing a database request to a cache in greater detail according to an example embodiment of the present invention.
  • FIG. 10 depicts a replication component in greater detail according to an example embodiment of the present invention.
  • FIG. 11 is a flowchart that describes the operation of a replication component according to an example embodiment of the present invention.
  • the present invention provides a system and method for routing database requests from application logic to a cache and a database.
  • database requests are selectively routed to a cache and/or a database depending upon whether the request is determined to be appropriate for cache processing.
  • Various embodiments of the present invention are described below.
  • FIG. 1 depicts a cache configuration 100 according to an example embodiment of the present invention.
  • Application 102 includes application logic 110 , an improved cache driver 112 , and database driver 114 .
  • Database 104 includes DBMS 120 and a replication component 122 .
  • Application logic 110 establishes a connection 134 with cache 106 by calling cache driver 112 .
  • Cache driver 112 calls database driver 114 to establish a connection 130 with DBMS 120 .
  • Replication component 122 communicates with cache 106 via connection 132 .
  • Database 104 represents computer software that utilizes the database hardware's file system to store database information and provide a standardized method for retrieving or changing the data.
  • DBMS 120 represents a collection of programs that enables a client to enter, organize, and select database information.
  • DBMS 120 in response to a database request, instructs the operating system (not shown) to perform the desired operation(s) on the appropriate data.
  • database 104 (and cache 106 ) store database information as relational data, based on the well known principles of Relational Database Theory wherein data is stored in the form of related tables.
  • Relational Database Theory wherein data is stored in the form of related tables.
  • Many database products in use today work with relational data, such as products from INGRES, Oracle, Sybase, and Microsoft.
  • Other alternative embodiments can employ different data models, such as object or object relational data models.
  • cache 106 provides rapid access to a subset of the database information stored in database 104 .
  • Cache 106 processes database requests from a connection established by a client and returns database information corresponding to the database request (target data).
  • the faster response time of cache 106 provides an increase in performance for those database requests that can be handled by the cache.
  • cache 106 represents a high performance computer application running on a dedicated machine.
  • the cache's primary architecture is preferably based on a main memory database (MMDB).
  • MMDB main memory database
  • An MMDB provides the ability to process database requests orders of magnitude faster than traditional disk based systems.
  • cache 106 may also include a secondary disk based cache (not shown) to handle database requests that are too large to fit in main memory.
  • Application 102 can represent any computer application that accesses database 104 , such as a contact manager, order tracking software, or any application executing on an application server connected to the Internet.
  • Application logic 110 represents the portion of application 102 devoted to implementing the application functionality.
  • application logic 110 can include a graphical user interface (GUI) to control user interactions with application 102 , various processing routines for computing items of interest, and other routines for accessing and manipulating database information stored in database 104 .
  • GUI graphical user interface
  • Database driver 114 represents software that allows application logic 110 to establish a connection (as a client) to DBMS 120 .
  • database driver 114 provides an API that can include a variety of other function calls for interacting with DBMS 120 .
  • database driver 114 represents the driver software that is distributed by the manufacturer of database 104 .
  • connection 130 represents a connection established according to the manufacturer's proprietary client/server communication protocol.
  • database driver 114 and cache driver 112 support the Open Database Connectivity (ODBC) and Java Database Connectivity (JDBC) standards. Generally speaking, clients using these types of drivers can generate SQL query requests for the server to process.
  • cache 106 also supports the ability to respond to Extensible Markup Language Query Language (XQL) queries which do not specify a particular driver type (driverless) and use an open standard mechanism, such as Hypertext Transfer Protocol (HTTP), for its communication protocol.
  • XQL Extensible Markup Language
  • driverless driver type
  • HTTP Hypertext Transfer Protocol
  • Replication component 122 detects changes that occur in database information stored within database 104 , and insures that these changes propagate to cache 106 .
  • the operation of replication component 122 according to the present invention is described in greater detail below.
  • Cache driver 112 causes database requests from application logic 110 to be routed to DBMS 120 and/or cache 106 .
  • Cache driver 112 provides an API that can include a variety of function calls for use by application logic 110 .
  • the cache driver API can include one or more of the function calls defined in the database driver API.
  • FIG. 2A depicts a first example hardware configuration 200 A, wherein application 102 runs on a client computer 202 , in communication with database 104 running on a server computer 204 (via a communication link 210 ), and in communication with cache 106 (via a communication link 212 ).
  • cache 106 shares common computer hardware with client computer 202 .
  • FIG. 2B depicts a second example hardware configuration 200 B, wherein database 104 utilizes multiple servers 204 (shown as 204 A through 204 C). That multiple servers 204 are being used can be transparent to the client application whose communications with DBMS 120 remain the same regardless of the backend server configuration.
  • FIG. 1 depicts a first example hardware configuration 200 A, wherein application 102 runs on a client computer 202 , in communication with database 104 running on a server computer 204 (via a communication link 210 ), and in communication with cache 106 (via a communication link 212 ).
  • cache 106 shares common computer hardware with client computer 202 .
  • FIG. 2C depicts a third example hardware configuration 200 C, wherein multiple applications 102 (shown as 102 A through 102 C) operate on one or more client computers 202 (shown as 202 A through 202 C) to access database 104 .
  • applications 102 shown as 102 A through 102 C
  • client computers 202 shown as 202 A through 202 C
  • FIG. 2D depicts a fourth example hardware configuration 200 D employing two or more caches 106 (shown as 106 A through 106 C).
  • load balancing techniques may be used with multiple cache configuration 200 D.
  • Database requests from application 102 may be directed at the cluster of caches in round-robin fashion, thereby distributing the processing burdens across multiple caches.
  • the database information that would have been stored in a single cache may be partitioned and stored across a cluster of caches. This allows for the storage of larger tables than would otherwise be possible using a single cache.
  • Communication links 210 and 212 can represent any connection, logical or physical, over which the information described herein can be transmitted.
  • communication links 210 and 212 can represent a software connection between software modules, cable connection, a local area network (LAN), a wide area network (WAN), the Internet, a satellite communications network, a wireless network, or any combination of the above.
  • application logic 110 calls cache driver 112 to establish a connection (as a client) to cache 106 .
  • Those database requests routed to cache 106 may be passed via this connection.
  • cache driver 112 calls database driver 114 to establish a connection with DBMS 120 , and then uses the function calls provided by the database driver API. The operation of cache driver 112 is described in greater detail below.
  • the present invention includes one or more computer programs which embody the functions described herein and illustrated in the appended flowcharts.
  • the invention should not be construed as limited to any one set of computer program instructions.
  • a skilled programmer would be able to write such a computer program to implement the disclosed invention without difficulty based on the flowcharts and associated written description included herein. Therefore, disclosure of a particular set of program code instructions is not considered necessary for an adequate understanding of how to make and use the invention.
  • the inventive functionality of the claimed computer program will be explained in more detail in the following description in conjunction with the remaining figures illustrating the program flow.
  • FIG. 4 is a flowchart 400 that describes a method for routing database requests according to the present invention.
  • the operations depicted in flowchart 400 are described with respect to cache configuration 100 depicted in FIG. 1.
  • the methods described herein are not necessarily limited to operations performed by cache configuration 100 . Rather, the methods described herein may be accomplished by any database configuration capable of performing the described operations.
  • a database request is received from application logic 110 .
  • the form of the database request can vary, depending upon the particular database language used. For example, SQL queries are typically in the form of a text string.
  • application logic 110 passes the database request to cache driver 112 .
  • the database request is analyzed to determine whether or not the request is appropriate for processing by cache 106 .
  • those database requests determined to be informational are considered appropriate for cache processing, whereas transactional requests are considered inappropriate for cache processing.
  • other factors may also be considered when making this determination, such as whether the target data is stored within cache 106 (if not, then even informational requests are not appropriate for cache processing).
  • cache driver 112 preferably makes the determination described in operation 404 , i.e., cache driver 112 includes a routine for analyzing the database request and making the determination based on some established criteria.
  • those requests determined not to be appropriate for cache processing are routed from application 102 to database 104 for processing.
  • Database 104 may then process the request, possibly resulting in database information being stored, retrieved, and/or manipulated according to the request.
  • cache driver 112 accomplishes this by calling database driver 114 to establish a connection with DBMS 120 , and then transferring the request to database 104 for processing.
  • Cache driver 112 therefore makes use of database driver 114 as a “slave” driver in the sense that the two operate in a master/slave relationship.
  • Using a slave driver in this way avoids the need to re-implement within cache driver 112 the specifics of communicating with databases produced by different manufacturers. This is particularly important where cache 106 and database 104 are produced by different manufacturers, and where the manufacturer of cache 106 desires to produce a product that supports databases from multiple manufacturers.
  • cache driver 112 accomplishes this by establishing a connection to cache 106 and transferring the request so that it may be processed by the cache.
  • FIGS. 1 and 4 are now described in greater detail according to various alternative embodiments of the present invention.
  • FIG. 5 is a flowchart that describes operation 404 in greater detail according to an example embodiment of the present invention.
  • the determination of whether a request is appropriate for cache processing depends upon whether the request is determined to be informational or transactional. As described below, additional factors may also be considered when determining the appropriateness of cache processing.
  • Cache driver 112 in cache configuration 100 .
  • Cache driver 112 therefore preferably includes the functions necessary to perform operation 404 .
  • the functions associated with operation 404 may be performed by other components of application 102 .
  • one or more of these functions might alternatively be performed by application logic 110 rather than cache driver 112 , with only minor modifications.
  • one or more of the operations depicted in FIG. 5 may be performed in an order different than the order depicted.
  • the order of operations 502 and 504 may be switched with only minor modifications.
  • one or more of the operations depicted in FIG. 5 may be omitted entirely, or other operations added that reflect different criteria used in the determination of the appropriateness of cache processing.
  • the operations of FIG. 5 will be described with respect to an example SQL database request.
  • the example SQL database request (received from application logic 110 in operation 402 ) is a text specified query described as: SELECT expr1 [,expr2, . . . ] FROM table1,[table2, . . . ] [WHERE condition]
  • the SELECT clause indicates expressions that will define each column in a table of results.
  • the expressions may indicate fields that belong to one of the tables listed in the FROM clause.
  • Field names might additionally be prefixed with a table name and a dot to resolve ambiguity between fields in different tables with the same name.
  • the FROM clause specifies which tables are to be involved in the request.
  • join condition specifies how records in one table are related to records in another. This is typically specified as follows:
  • a join condition between two tables may specify either a one-to-one mapping of records or a one-to-many relationship, depending on the nature and content of the two tables.
  • the WHERE clause also serves to specify conditions for records in a table.
  • a condition may also restrict the records returned for a given table to only those records which meet the condition. An example might be:
  • an isolation level and/or a concurrency setting associated with the database request is analyzed to determine whether the request is appropriate for cache processing.
  • Certain driver environments allow a transaction isolation level to be associated with the database request.
  • the isolation level is compared to a first threshold. Only those database requests having an isolation level less than or equal to the first threshold are determined to be appropriate for cache processing. Those database requests having an isolation level greater than the first threshold are determined to be inappropriate for cache processing and, as shown in FIG. 5, in operation 406 the request is routed to database 104 .
  • concurrency setting may allow a related setting called the concurrency setting. This setting is roughly the inverse of the transaction isolation level.
  • the concurrency setting is compared to a second threshold, wherein those requests that meet or exceed the second threshold are considered appropriate for caching.
  • Still other driver embodiments, such as ODBC provide for both an isolation level and a concurrency setting.
  • Alternative embodiments of the present invention are contemplated wherein neither of these measures is considered, either one is considered, or both are considered when determining the appropriateness of cache processing.
  • the database request is parsed to extract information that is used to determine the appropriateness of cache processing.
  • an SQL database request is parsed, for example, by scanning characters in the SQL text string and performing well known techniques for lexical and semantic analysis.
  • the information extracted as a result of the SQL parsing process can be used for further analysis and for execution of the request.
  • This information is preferably assembled into a data structure that includes basic information such as the tables and fields that are being requested (i.e., the target data).
  • Any expressional elements of the request such as field expressions and the WHERE condition expression, are preferably stored in the data structure as trees, as will be apparent.
  • An expression tree is an easy data structure to access, navigate and manipulate in subsequent operations.
  • FIG. 6 depicts the example database request 602 described above being subject to lexical and semantic analysis 604 .
  • the resulting data structure 606 includes several items (Query Type, Fields, Tables) and a WHERE expression tree. If the request is not a SELECT request, then a data structure will preferably be generated with a Query Type field not equal to type SELECT.
  • the information parsed from the database request is analyzed to determine whether the database request is informational.
  • informational requests are read-only queries for database information.
  • SELECT requests or variants thereof are determined to be informational (as shown above in the example SQL request).
  • Other types of SQL requests are determined to be transactional. As shown in FIG. 5, those requests that are determined not to be informational are routed to database 104 in operation 406 .
  • FIG. 7 is a flowchart 700 that describes an alternative example embodiment of the present directed to routing database requests to a cache 106 that is accessible via a network, referred to herein as a remote cache.
  • Flowchart 700 identifies those operations that are performed by application 102 and those operations that are performed by cache 106 .
  • operation 404 preferably includes determining whether the target data is stored in cache 106 (operation 508 ). However, this operation is predictive in nature whenever cache 106 is remote because there is a delay between when the cache content changes and when the cache content data structure is updated to reflect the changes. Typically, routing errors resulting from this latency are not significant because of the relatively low frequency of changes in the cache content.
  • requests deemed appropriate for cache processing are sent to the remote cache in operation 408 .
  • a second check is done at the remote cache to ensure that the target data is actually available. This is an authoritative check because it is done locally within cache 106 , obviating the latency issue encountered with a remote check. If the target data is available, the database request is processed by cache 106 in operation 704 . If the target data is not available, the database request is sent back to application logic 110 and rerouted to database 106 in operation 406 .
  • the information parsed from the database request is analyzed to determine whether the database request is otherwise suitable for cache processing.
  • the criteria analyzed in this operation may vary according to the driver type and database language used.
  • the parsed data structure is checked to see if all SQL features are supported by cache 106 .
  • the general complexity of the request is also preferably checked for cache support.
  • Cache 106 may also decline the request if it is determined that cache 106 cannot handle the request efficiently.
  • FIG. 8 is a flowchart that describes operation 406 in greater detail according to an example embodiment of the present invention.
  • transactional requests are preferably routed to database 104 for processing (as determined in operation 404 ).
  • the database request is marked as transactional so that the request may be more easily routed through subsequent operations.
  • cache driver 112 sends the database request to database driver 114 for processing by database 104 .
  • Cache driver 112 preferably calls database driver 114 , as described above, according to a master/slave relationship.
  • Cache driver 112 is thereby able to establish a connection with database 104 , and to employ those functions defined with the database driver API for communicating with database 104 . Any remaining request processing duties (if any) are passed on to database driver 114 . Subsequent communications related to the submitted request from application logic 110 are redirected to database driver 114 for handling.
  • FIG. 9 is a flowchart that describes operation 408 in greater detail according to an example embodiment of the present invention.
  • informational requests are preferably routed to cache 106 for processing (as determined in operation 404 ).
  • the database request is marked as informational so that the request may be more easily routed through subsequent operations.
  • cache driver 112 establishes a connection with cache 106 and sends the database request to cache 106 for processing. Any remaining request processing duties are preferably performed by cache 106 .
  • database 104 preferably includes replication component 122 that is responsible for detecting changes that occur in the information stored in database 104 and for propagating those changes to caches 106 .
  • FIG. 10 depicts replication component 122 in greater detail according to an example embodiment of the present invention.
  • Replication component 122 includes one or more triggers 1002 (shown as 1002 A through 1002 C), a change table 1004 (shown as 1004 A through 1004 C) associated with each trigger 1002 , a signaling routine 1006 , a master change table 1008 .
  • Each trigger 1002 is associated with a database table 1020 (shown as 1020 A through 1020 C).
  • Database table 1020 represents a table of relational data stored in database 104 .
  • Trigger 1002 represents a program in the native database execution environment which is executed when a change occurs on the associated table 1020 .
  • Trigger 1002 has access to the old and new values of each record or set of records that were updated in table 1020 .
  • a different trigger 1020 is installed for each table 1020 that is selected for caching.
  • Many database environments support multiple triggers per table so that the addition of trigger 1002 need not interfere with existing application triggers.
  • each change table 1004 is associated with one of the trigger/table pairs.
  • Change table 1004 stores information about each change that has occurred in the associated table 1020 , as detected by trigger 1002 .
  • Master change table 1008 holds information about the update status of those tables 1020 that have been selected for caching.
  • change tables 1004 are eliminated in favor of a single master change table that is updated by all of the triggers.
  • master change table 1008 is eliminated and the separate change tables 1004 retained.
  • signaling routine 1006 queries each change table 1004 to assemble the information that is preferably stored in master change table 1008 .
  • Signaling routine 1006 signals cache 106 that an update has occurred in response to receiving an appropriate signal from trigger 1002 .
  • Signaling routine 1006 is preferably implemented as an external routine.
  • External routines are mechanisms provided by the database vendor for executing external third party code within the native database environment.
  • FIG. 11 is a flowchart that describes the operation of replication component 122 according to an example embodiment of the present invention.
  • one of the triggers 1002 is executed upon detecting a change operation being performed on associated table 1020 .
  • operations which could produce a change in table 1020 are generally in the form of an SQL INSERT, UPDATE, or DELETE command.
  • trigger 1002 updates change table 1004 by storing the old record value and the new record value in change table 1004 .
  • trigger 1002 calls signaling routine 1006 to notify cache 106 that a change has occurred.
  • signaling routine 1006 may also provide additional information about the fields involved in the change and the change data itself.
  • Cache 106 can use this additional information to determine whether the database information currently stored within cache 106 is affected by the changes. Cache 106 can avoid querying database 104 altogether if it is determined that cache 106 is unaffected by the changes.
  • trigger 1002 ceases execution.
  • cache 106 receives notification from signaling routine 1006 . In response to this notification, cache 106 submits a replication request to replication component 122 in operation 1112 .
  • the replication request will cause replication component 122 to gather all changes that have been stored since the last replication request.
  • the replication request is preferably submitted at the highest isolation level (serializable) to ensure that it executes in isolation of other transactions and therefore captures only completely committed changes.
  • replication component 122 executes the replication request received from cache 106 .
  • signaling routine 1006 is thereby called at the appropriate time to signal cache 106 that a change has occurred, with the result being that the replication request generated in response to the signal is assured of executing after the current transaction has completed. This is because the replication request must wait for all pending transactions (including the signaling transaction) to complete. Signaling in this manner obviates the need for cache 106 to perform a polling operation to detect possible changes.
  • cache 106 can perform a polling operation to periodically check for changes in those tables 1020 that are also stored in cache 106 .
  • master replication table 1008 is checked to determine which tables 1020 have updates since the last replication request. If it is determined in operation 1118 that a table has been updated, then in operation 1122 the corresponding change table 1004 is queried to retrieve the changes. In operation 1124 , the changes retrieved from change table 1004 in operation 1122 are then deleted from change table 1004 , or alternatively, the changes are marked as having been read. In operation 1126 , master change table 1008 is updated to show that the current table's changes have been read.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A system and method for routing database requests from application logic to a cache and a database, including receiving a database request from the application logic, determining whether the database request is informational or transactional, routing the database request to the cache if the database request is informational, and routing the database request to the database if the database request is transactional. A first example embodiment includes a database which is accessed using a first driver, a cache, and a second driver which determines whether database requests received from application logic are informational or transactional, where informational database requests are routed to the cache and transactional database requests are routed to the database using the first driver.

Description

    BACKGROUND
  • 1. Field of the Invention [0001]
  • The present invention relates generally to computer databases and more particularly to a system and method for routing database requests from application logic to a cache and a database. [0002]
  • 2. Discussion of the Related Art [0003]
  • Many computer applications today utilize a database to store, retrieve, and manipulate information. Simply put, a database refers to a collection of information organized in such a way that a computer program can quickly select desired pieces of data. For example, an individual might use a database to store contact information from their rolodex, such as names, addresses, and phone numbers, whereas a business entity might store information tracking inventory or customer orders. [0004]
  • Databases include the hardware that physically stores the data, and the software that utilizes the hardware's file system to store the data and provide a standardized method for retrieving or changing the data. A database management system (DBMS) provides access to information in a database. This is a collection of programs that enables a user to enter, organize, and select data in a database. The DBMS accepts requests for data (referred to herein as database requests) from an application program and instructs the operating system to transfer the appropriate data. Database requests can include, for example, read-only requests for database information (referred to herein as informational database requests) and requests to modify database information (referred to herein as transactional database requests). With respect to hardware, database machines are often specially designed computers that store the actual databases and run the DBMS and related software. [0005]
  • FIG. 3A depicts a [0006] conventional database configuration 300A, wherein a computer application 102 accesses information stored in a database 104 having a DBMS 120. Application 102 includes application logic 110 and a database driver 114. Application 102 and database 104 interact in a client/server relationship, where application 102 is the client and database 104 is the server. Application logic 110 establishes a connection 310 to DBMS 120 using database driver 114. Database driver 114 provides an Application Programming Interface (API) that allows application logic 110 to communicate with database 104 using function calls included in the API. Conventional database drivers 114 typically handle communication between a client (e.g., application logic 110) and a single database server, or possibly between multiple servers of the same basic type. Many conventional database drivers 114 make use of a proprietary client/server communication protocol (shown as line 310 in FIG. 3A).
  • The performance of the conventional client/server database design depicted in FIG. 3A can be improved with the addition of a cache. FIG. 3B depicts a second [0007] conventional database configuration 300B wherein a cache 106 is inserted between application 102 and database 104. This configuration is referred to herein as an inline cache. Application logic 110 uses a cache driver 302 to establish a connection with cache 106. Cache 106 provides rapid access to a subset of the database information stored in database 104, as will be apparent to those skilled in the art. Cache 106 establishes a connection 314 with DBMS 120 using database driver 114, where the driver can be integrated within the cache.
  • All database requests from [0008] application logic 110 are routed first to cache 106. Cache 106 may handle requests differently depending on the type of operation requested and whether the target data is stored in cache 106. For example, informational database requests can be handled by cache 106 without going to database 104, so long as the information that is the target of the request (i.e., the target data) in stored in cache 106. Since the response time of cache 106 is significantly faster than that of database 104, performance is increased as the percentage of information database requests grows in relation to the total number of database requests.
  • Transactional database requests are performed in both [0009] cache 106 and database 104. Consistency between cache 106 and database 104 is maintained because transactional requests are performed on the database information stored in both locations. As a result, application logic 110 can only utilize those transactional requests that are understood by both cache 106 and database 104 for consistency to be maintained. For example, if application logic 110 issued a transactional request that was understood by database 104 but not by cache 106, the information would be changed in database 104 but not in cache 106, and the two would no longer be consistent. Therefore, only those requests for which database 104 and cache 106 share a common vocabulary are supported in this configuration.
  • Many database manufacturers provide for the execution of stored procedures within [0010] database 104 which can increase flexibility and performance. The implementation of these database-side capabilities may be proprietary to the database manufacturer. Third party manufacturers of inline caches may not have access to this proprietary information, and may therefore be unable to implement corresponding capabilities within the cache. As a result, consistency cannot be maintained between cache 106 and database 104 in inline cache configuration 300B if application logic 110 is allowed to utilize these database-side capabilities. This limitation forces software vendors to re-code their applications 102, eliminating any calls to database-side capabilities in favor of those operations within the vocabulary common to both cache and database.
  • Also, while the addition of the inline cache results in some performance improvement for the processing of informational requests, performance can degrade for the processing of transactional requests. The client generating the request must wait until the inline cache commits the changes to both the cache and the database. Adding the inline cache can therefore increase the amount of time the client must wait when processing transactional requests as compared to a database configuration without a cache ([0011] 300A). Further, the requirement that the inline cache be inserted between the client and server and receive all database requests limits the flexibility of the inline configuration. For example, some application logic 110 cannot easily be modified to allow for the insertion of the inline cache.
  • Finally, the fault tolerance of the inline cache configuration depends upon the fault tolerance of the inline cache. Failure of the inline cache will result in [0012] database 104 being cut off from its clients, since all client request must pass through the failed cache 106.
  • What is needed is an improved system and method for routing database requests from application logic to a cache and a database that is both flexible and fault-tolerant, wherein transactional requests are handled efficiently and the application logic is able to take advantage of proprietary database mechanisms and/or database-side execution capabilities. [0013]
  • SUMMARY OF THE INVENTION
  • The present invention provides a system and method for routing database requests from application logic to a cache and a database, including receiving a database request from the application logic, determining whether the request is informational or transactional, routing the request to the cache if the database request is informational, and routing the request to the database if the request is transactional. [0014]
  • A first example embodiment of the present invention includes a database which is accessed using a first driver, a cache, and a second driver which determines whether database requests received from application logic are informational or transactional, where informational requests are routed to the cache and transactional requests are routed to the database using the first driver. [0015]
  • An advantage of the present invention is that transactional requests are routed to the database without passing through the cache, thereby enabling the application logic to utilize whatever proprietary database mechanisms and/or database-side execution capabilities are provided the database. Routing transactional requests to the database without passing through the cache also decreases the amount of time the client must remain locked pending completion of the transactional request. [0016]
  • Another advantage of the present invention is that informational requests are routed to, and handled by, the cache. As a result, those informational requests that can be handled by the cache need never be forwarded on to the database. The database, freed of the responsibility of handling these informational requests, may more efficiently handle those other requests that are routed to the database. [0017]
  • Another advantage of the present invention is that the fault-tolerance of the system does not depend upon the fault-tolerance of the cache. If the cache fails, all requests may be routed directly to the database until the cache is again operational. In other words, according to the present invention, the cache is not a system point of failure. [0018]
  • The present invention provides for the efficient processing of database requests, particularly where the requesting application issues informational requests in disproportion to the number of transactional requests. For example, applications which maintain a web site receive many more request for data than requests to change data. As a result, these applications will issue many more informational requests (that are not sensitive to cache consistency) than transactional requests to a backend database. The present invention is particularly well suited to processing database requests in this type of environment. [0019]
  • These and other features and advantages of the present invention will become apparent from the following drawings and description.[0020]
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • The present invention is described with reference to the accompanying drawings. In the drawings, like reference numbers indicate identical or functionally similar elements. Additionally, the left-most digit(s) of a reference number identifies the drawing in which the reference number first appears. [0021]
  • FIG. 1 depicts a cache configuration according to an example embodiment of the present invention. [0022]
  • FIG. 2A depicts a first example hardware configuration, wherein an application runs on a client computer in communication with a database running on a server computer. [0023]
  • FIG. 2B depicts a second example hardware configuration, wherein a database utilizes multiple servers. [0024]
  • FIG. 2C depicts a third example hardware configuration, wherein multiple applications operate on one or more client computers to access a database. [0025]
  • FIG. 2D depicts a fourth example hardware configuration employing two or more caches. [0026]
  • FIG. 3A depicts a conventional database configuration, wherein a computer application accesses information stored in a database having a database management system. [0027]
  • FIG. 3B depicts an inline cache configuration. [0028]
  • FIG. 4 is a flowchart that describes a method for routing database requests according to the present invention. [0029]
  • FIG. 5 is a flowchart that describes determining whether a database request is appropriate for cache processing in greater detail according to an example embodiment of the present invention. [0030]
  • FIG. 6 depicts an example database request being subject to lexical and semantic analysis. [0031]
  • FIG. 7 is a flowchart that describes an alternative example embodiment of the present directed to routing database requests to a remote cache. [0032]
  • FIG. 8 is a flowchart that describes routing a database request to a database in greater detail according to an example embodiment of the present invention. [0033]
  • FIG. 9 is a flowchart that describes routing a database request to a cache in greater detail according to an example embodiment of the present invention. [0034]
  • FIG. 10 depicts a replication component in greater detail according to an example embodiment of the present invention. [0035]
  • FIG. 11 is a flowchart that describes the operation of a replication component according to an example embodiment of the present invention.[0036]
  • DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
  • The present invention provides a system and method for routing database requests from application logic to a cache and a database. Generally speaking, according to the present invention database requests are selectively routed to a cache and/or a database depending upon whether the request is determined to be appropriate for cache processing. Various embodiments of the present invention are described below. [0037]
  • Overview [0038]
  • FIG. 1 depicts a [0039] cache configuration 100 according to an example embodiment of the present invention. Application 102 includes application logic 110, an improved cache driver 112, and database driver 114. Database 104 includes DBMS 120 and a replication component 122. Application logic 110 establishes a connection 134 with cache 106 by calling cache driver 112. Cache driver 112 calls database driver 114 to establish a connection 130 with DBMS 120. Replication component 122 communicates with cache 106 via connection 132.
  • [0040] Database 104 represents computer software that utilizes the database hardware's file system to store database information and provide a standardized method for retrieving or changing the data. As described above, DBMS 120 represents a collection of programs that enables a client to enter, organize, and select database information. DBMS 120, in response to a database request, instructs the operating system (not shown) to perform the desired operation(s) on the appropriate data. According to an example embodiment of the present invention, database 104 (and cache 106) store database information as relational data, based on the well known principles of Relational Database Theory wherein data is stored in the form of related tables. Many database products in use today work with relational data, such as products from INGRES, Oracle, Sybase, and Microsoft. Other alternative embodiments can employ different data models, such as object or object relational data models.
  • As described above with respect to [0041] inline cache configuration 300B, cache 106 provides rapid access to a subset of the database information stored in database 104. Cache 106 processes database requests from a connection established by a client and returns database information corresponding to the database request (target data). The faster response time of cache 106 provides an increase in performance for those database requests that can be handled by the cache. According to an example embodiment of the present invention, cache 106 represents a high performance computer application running on a dedicated machine. The cache's primary architecture is preferably based on a main memory database (MMDB). An MMDB provides the ability to process database requests orders of magnitude faster than traditional disk based systems. As will be apparent, other cache architectures may be used. Further, cache 106 may also include a secondary disk based cache (not shown) to handle database requests that are too large to fit in main memory.
  • [0042] Application 102 can represent any computer application that accesses database 104, such as a contact manager, order tracking software, or any application executing on an application server connected to the Internet. Application logic 110 represents the portion of application 102 devoted to implementing the application functionality. For example, application logic 110 can include a graphical user interface (GUI) to control user interactions with application 102, various processing routines for computing items of interest, and other routines for accessing and manipulating database information stored in database 104.
  • [0043] Database driver 114 represents software that allows application logic 110 to establish a connection (as a client) to DBMS 120. As described above, database driver 114 provides an API that can include a variety of other function calls for interacting with DBMS 120. According to an example embodiment of the present invention, database driver 114 represents the driver software that is distributed by the manufacturer of database 104. As a result, connection 130 represents a connection established according to the manufacturer's proprietary client/server communication protocol.
  • According to an example embodiment of the present invention, [0044] database driver 114 and cache driver 112 support the Open Database Connectivity (ODBC) and Java Database Connectivity (JDBC) standards. Generally speaking, clients using these types of drivers can generate SQL query requests for the server to process. In another example embodiment, cache 106 also supports the ability to respond to Extensible Markup Language Query Language (XQL) queries which do not specify a particular driver type (driverless) and use an open standard mechanism, such as Hypertext Transfer Protocol (HTTP), for its communication protocol.
  • [0045] Replication component 122 detects changes that occur in database information stored within database 104, and insures that these changes propagate to cache 106. The operation of replication component 122 according to the present invention is described in greater detail below.
  • [0046] Cache driver 112 causes database requests from application logic 110 to be routed to DBMS 120 and/or cache 106. Cache driver 112 provides an API that can include a variety of function calls for use by application logic 110. According to an example embodiment of the present invention, the cache driver API can include one or more of the function calls defined in the database driver API.
  • FIG. 2A depicts a first [0047] example hardware configuration 200A, wherein application 102 runs on a client computer 202, in communication with database 104 running on a server computer 204 (via a communication link 210), and in communication with cache 106 (via a communication link 212). According to an example alternative embodiment, cache 106 shares common computer hardware with client computer 202. FIG. 2B depicts a second example hardware configuration 200B, wherein database 104 utilizes multiple servers 204 (shown as 204A through 204C). That multiple servers 204 are being used can be transparent to the client application whose communications with DBMS 120 remain the same regardless of the backend server configuration. FIG. 2C depicts a third example hardware configuration 200C, wherein multiple applications 102 (shown as 102A through 102C) operate on one or more client computers 202 (shown as 202A through 202C) to access database 104. As will be apparent from the principles described herein, many other hardware configurations, including various combinations of the example hardware configurations described above, are contemplated within the scope of the present invention.
  • FIG. 2D depicts a fourth [0048] example hardware configuration 200D employing two or more caches 106 (shown as 106A through 106C). According to the present invention, load balancing techniques may be used with multiple cache configuration 200D. Database requests from application 102 may be directed at the cluster of caches in round-robin fashion, thereby distributing the processing burdens across multiple caches. Alternatively, the database information that would have been stored in a single cache may be partitioned and stored across a cluster of caches. This allows for the storage of larger tables than would otherwise be possible using a single cache.
  • [0049] Communication links 210 and 212 can represent any connection, logical or physical, over which the information described herein can be transmitted. For example, communication links 210 and 212 can represent a software connection between software modules, cable connection, a local area network (LAN), a wide area network (WAN), the Internet, a satellite communications network, a wireless network, or any combination of the above.
  • According to an example embodiment of the present invention, [0050] application logic 110 calls cache driver 112 to establish a connection (as a client) to cache 106. Those database requests routed to cache 106 may be passed via this connection. With respect to database requests routed to database 104, cache driver 112 calls database driver 114 to establish a connection with DBMS 120, and then uses the function calls provided by the database driver API. The operation of cache driver 112 is described in greater detail below.
  • General Operation [0051]
  • The present invention includes one or more computer programs which embody the functions described herein and illustrated in the appended flowcharts. However, it should be apparent that there could be many different ways of implementing the invention in computer programming, and the invention should not be construed as limited to any one set of computer program instructions. Further, a skilled programmer would be able to write such a computer program to implement the disclosed invention without difficulty based on the flowcharts and associated written description included herein. Therefore, disclosure of a particular set of program code instructions is not considered necessary for an adequate understanding of how to make and use the invention. The inventive functionality of the claimed computer program will be explained in more detail in the following description in conjunction with the remaining figures illustrating the program flow. [0052]
  • FIG. 4 is a [0053] flowchart 400 that describes a method for routing database requests according to the present invention. The operations depicted in flowchart 400 are described with respect to cache configuration 100 depicted in FIG. 1. However, as will be apparent, the methods described herein are not necessarily limited to operations performed by cache configuration 100. Rather, the methods described herein may be accomplished by any database configuration capable of performing the described operations.
  • In [0054] operation 402, a database request is received from application logic 110. The form of the database request can vary, depending upon the particular database language used. For example, SQL queries are typically in the form of a text string. In cache configuration 100, application logic 110 passes the database request to cache driver 112.
  • In [0055] operation 404, the database request is analyzed to determine whether or not the request is appropriate for processing by cache 106. According to an example embodiment of the present invention, those database requests determined to be informational are considered appropriate for cache processing, whereas transactional requests are considered inappropriate for cache processing. As described in greater detail below, other factors may also be considered when making this determination, such as whether the target data is stored within cache 106 (if not, then even informational requests are not appropriate for cache processing). In cache configuration 100, cache driver 112 preferably makes the determination described in operation 404, i.e., cache driver 112 includes a routine for analyzing the database request and making the determination based on some established criteria.
  • In [0056] operation 406, those requests determined not to be appropriate for cache processing are routed from application 102 to database 104 for processing. Database 104 may then process the request, possibly resulting in database information being stored, retrieved, and/or manipulated according to the request.
  • According to the example embodiment of [0057] cache configuration 100, cache driver 112 accomplishes this by calling database driver 114 to establish a connection with DBMS 120, and then transferring the request to database 104 for processing. Cache driver 112 therefore makes use of database driver 114 as a “slave” driver in the sense that the two operate in a master/slave relationship. Using a slave driver in this way avoids the need to re-implement within cache driver 112 the specifics of communicating with databases produced by different manufacturers. This is particularly important where cache 106 and database 104 are produced by different manufacturers, and where the manufacturer of cache 106 desires to produce a product that supports databases from multiple manufacturers.
  • In [0058] operation 408, those requests determined to be appropriate for cache processing are routed from application 102 to cache 106 for processing. Cache 106 may then process the request in much the same manner as database 104. In cache configuration 100, cache driver 112 accomplishes this by establishing a connection to cache 106 and transferring the request so that it may be processed by the cache.
  • Since transactional requests are routed to [0059] database 104 and bypass cache 106, there are no vocabulary restrictions on application logic 110. In other words, there is no requirement that cache 106 duplicate the functionality of database 104 (as with the inline cache configuration) because transactional requests are not routed to cache 106. Application logic 110 may therefore take full advantage of any database-side execution capabilities of database 104. As described below, replication component 122 ensures that changes made to database 104 are replicated in cache 106.
  • FIGS. 1 and 4 are now described in greater detail according to various alternative embodiments of the present invention. [0060]
  • Operation of Cache Driver [0061]
  • FIG. 5 is a flowchart that describes [0062] operation 404 in greater detail according to an example embodiment of the present invention. The determination of whether a request is appropriate for cache processing depends upon whether the request is determined to be informational or transactional. As described below, additional factors may also be considered when determining the appropriateness of cache processing.
  • The operations described in FIG. 5 with respect to [0063] operation 404 are preferably performed by cache driver 112 in cache configuration 100. Cache driver 112 therefore preferably includes the functions necessary to perform operation 404. However, as will be apparent, other alternative embodiments are contemplated wherein the functions associated with operation 404 may be performed by other components of application 102. For example, one or more of these functions might alternatively be performed by application logic 110 rather than cache driver 112, with only minor modifications.
  • As will be apparent, one or more of the operations depicted in FIG. 5 may be performed in an order different than the order depicted. For example, the order of [0064] operations 502 and 504 may be switched with only minor modifications. Also, one or more of the operations depicted in FIG. 5 may be omitted entirely, or other operations added that reflect different criteria used in the determination of the appropriateness of cache processing.
  • The operations of FIG. 5 will be described with respect to an example SQL database request. The example SQL database request (received from [0065] application logic 110 in operation 402) is a text specified query described as:
    SELECT expr1 [,expr2, . . . ]
    FROM table1,[table2, . . . ]
    [WHERE condition]
  • The SELECT clause indicates expressions that will define each column in a table of results. The expressions may indicate fields that belong to one of the tables listed in the FROM clause. Field names might additionally be prefixed with a table name and a dot to resolve ambiguity between fields in different tables with the same name. [0066]
  • The FROM clause specifies which tables are to be involved in the request. [0067]
  • The WHERE clause specifies conditions and constraints that apply when performing the request. One type of constraint is called a “join condition.” A join condition specifies how records in one table are related to records in another. This is typically specified as follows: [0068]
  • WHERE table1.id=table2.id [0069]
  • A join condition between two tables may specify either a one-to-one mapping of records or a one-to-many relationship, depending on the nature and content of the two tables. The WHERE clause also serves to specify conditions for records in a table. A condition may also restrict the records returned for a given table to only those records which meet the condition. An example might be: [0070]
  • WHERE age>18 [0071]
  • Multiple instances of both types of conditions can be combined in a WHERE clause using the logical operators AND and OR. WHERE clauses may also incorporate a set of relational operators (=,<,>,<>) and special functions (LIKE,UPPER) defined in conventional SQL specifications. [0072]
  • Referring now to FIG. 5, in [0073] operation 502 an isolation level and/or a concurrency setting associated with the database request is analyzed to determine whether the request is appropriate for cache processing. Certain driver environments allow a transaction isolation level to be associated with the database request. According to an example embodiment of the present invention, the isolation level is compared to a first threshold. Only those database requests having an isolation level less than or equal to the first threshold are determined to be appropriate for cache processing. Those database requests having an isolation level greater than the first threshold are determined to be inappropriate for cache processing and, as shown in FIG. 5, in operation 406 the request is routed to database 104.
  • Other driver environments may allow a related setting called the concurrency setting. This setting is roughly the inverse of the transaction isolation level. The concurrency setting is compared to a second threshold, wherein those requests that meet or exceed the second threshold are considered appropriate for caching. Still other driver embodiments, such as ODBC, provide for both an isolation level and a concurrency setting. Alternative embodiments of the present invention are contemplated wherein neither of these measures is considered, either one is considered, or both are considered when determining the appropriateness of cache processing. [0074]
  • In [0075] operation 504, the database request is parsed to extract information that is used to determine the appropriateness of cache processing. According to an example embodiment of the present invention, an SQL database request is parsed, for example, by scanning characters in the SQL text string and performing well known techniques for lexical and semantic analysis. The information extracted as a result of the SQL parsing process can be used for further analysis and for execution of the request. This information is preferably assembled into a data structure that includes basic information such as the tables and fields that are being requested (i.e., the target data). Any expressional elements of the request, such as field expressions and the WHERE condition expression, are preferably stored in the data structure as trees, as will be apparent. An expression tree is an easy data structure to access, navigate and manipulate in subsequent operations.
  • FIG. 6 depicts the [0076] example database request 602 described above being subject to lexical and semantic analysis 604. The resulting data structure 606 includes several items (Query Type, Fields, Tables) and a WHERE expression tree. If the request is not a SELECT request, then a data structure will preferably be generated with a Query Type field not equal to type SELECT.
  • In [0077] operation 506, the information parsed from the database request is analyzed to determine whether the database request is informational. As described above, informational requests are read-only queries for database information. In the example SQL embodiment, SELECT requests (or variants thereof) are determined to be informational (as shown above in the example SQL request). Other types of SQL requests are determined to be transactional. As shown in FIG. 5, those requests that are determined not to be informational are routed to database 104 in operation 406.
  • In [0078] operation 508, a determination is made whether the request's target data is stored in cache 106. If the target data is not available in cache 106, then in operation 406 the request is routed to database 104 for processing. According to an example embodiment of the present invention, the target data is compared against a cache content data structure that provides information about what database information is stored in the cache, preferably at the table level, since the last time the cache was checked.
  • FIG. 7 is a [0079] flowchart 700 that describes an alternative example embodiment of the present directed to routing database requests to a cache 106 that is accessible via a network, referred to herein as a remote cache. Flowchart 700 identifies those operations that are performed by application 102 and those operations that are performed by cache 106. As described above, operation 404 preferably includes determining whether the target data is stored in cache 106 (operation 508). However, this operation is predictive in nature whenever cache 106 is remote because there is a delay between when the cache content changes and when the cache content data structure is updated to reflect the changes. Typically, routing errors resulting from this latency are not significant because of the relatively low frequency of changes in the cache content.
  • As depicted in FIG. 7, requests deemed appropriate for cache processing are sent to the remote cache in [0080] operation 408. In operation 702, a second check is done at the remote cache to ensure that the target data is actually available. This is an authoritative check because it is done locally within cache 106, obviating the latency issue encountered with a remote check. If the target data is available, the database request is processed by cache 106 in operation 704. If the target data is not available, the database request is sent back to application logic 110 and rerouted to database 106 in operation 406.
  • Returning now to FIG. 5, in operation [0081] 510 the information parsed from the database request is analyzed to determine whether the database request is otherwise suitable for cache processing. The criteria analyzed in this operation may vary according to the driver type and database language used. In the example SQL embodiment, the parsed data structure is checked to see if all SQL features are supported by cache 106. The general complexity of the request is also preferably checked for cache support. Cache 106 may also decline the request if it is determined that cache 106 cannot handle the request efficiently.
  • Routing Database Requests [0082]
  • Returning again to FIG. 4, once it is determined in [0083] operation 404 whether the database request is appropriate for cache processing, those requests deemed inappropriate are routed to database 104 in operation 406. Otherwise, those requests deemed appropriate for cache processing are routed to cache 106 in operation 408.
  • FIG. 8 is a flowchart that describes [0084] operation 406 in greater detail according to an example embodiment of the present invention. As described above, transactional requests are preferably routed to database 104 for processing (as determined in operation 404). In operation 802, the database request is marked as transactional so that the request may be more easily routed through subsequent operations.
  • In [0085] operation 804, cache driver 112 sends the database request to database driver 114 for processing by database 104. Cache driver 112 preferably calls database driver 114, as described above, according to a master/slave relationship. Cache driver 112 is thereby able to establish a connection with database 104, and to employ those functions defined with the database driver API for communicating with database 104. Any remaining request processing duties (if any) are passed on to database driver 114. Subsequent communications related to the submitted request from application logic 110 are redirected to database driver 114 for handling.
  • FIG. 9 is a flowchart that describes [0086] operation 408 in greater detail according to an example embodiment of the present invention. As described above, informational requests are preferably routed to cache 106 for processing (as determined in operation 404). In operation 902, the database request is marked as informational so that the request may be more easily routed through subsequent operations. In operation 904, cache driver 112 establishes a connection with cache 106 and sends the database request to cache 106 for processing. Any remaining request processing duties are preferably performed by cache 106.
  • Data Replication Component [0087]
  • Returning to FIG. 1, [0088] database 104 preferably includes replication component 122 that is responsible for detecting changes that occur in the information stored in database 104 and for propagating those changes to caches 106. FIG. 10 depicts replication component 122 in greater detail according to an example embodiment of the present invention. Replication component 122 includes one or more triggers 1002 (shown as 1002A through 1002C), a change table 1004 (shown as 1004A through 1004C) associated with each trigger 1002, a signaling routine 1006, a master change table 1008. Each trigger 1002 is associated with a database table 1020 (shown as 1020A through 1020C). Database table 1020 represents a table of relational data stored in database 104.
  • Trigger [0089] 1002 represents a program in the native database execution environment which is executed when a change occurs on the associated table 1020. Trigger 1002 has access to the old and new values of each record or set of records that were updated in table 1020. In an example embodiment, a different trigger 1020 is installed for each table 1020 that is selected for caching. Many database environments support multiple triggers per table so that the addition of trigger 1002 need not interfere with existing application triggers.
  • According to an example embodiment, each change table [0090] 1004 is associated with one of the trigger/table pairs. Change table 1004 stores information about each change that has occurred in the associated table 1020, as detected by trigger 1002. Master change table 1008 holds information about the update status of those tables 1020 that have been selected for caching.
  • As will be clear to those skilled in the art, various other configurations of change tables could be used to similar effect. For example, according to a first alternative embodiment, the separate change tables [0091] 1004 are eliminated in favor of a single master change table that is updated by all of the triggers. However, where the number of triggers becomes large, contention between the triggers to update the master change table can result in some performance degradation. According to a second alternative embodiment, master change table 1008 is eliminated and the separate change tables 1004 retained. In this alternative embodiment, signaling routine 1006 queries each change table 1004 to assemble the information that is preferably stored in master change table 1008.
  • [0092] Signaling routine 1006 signals cache 106 that an update has occurred in response to receiving an appropriate signal from trigger 1002. Signaling routine 1006 is preferably implemented as an external routine. External routines are mechanisms provided by the database vendor for executing external third party code within the native database environment.
  • FIG. 11 is a flowchart that describes the operation of [0093] replication component 122 according to an example embodiment of the present invention. In operation 1102, one of the triggers 1002 is executed upon detecting a change operation being performed on associated table 1020. In the example SQL embodiment, operations which could produce a change in table 1020 are generally in the form of an SQL INSERT, UPDATE, or DELETE command.
  • In [0094] operation 1104, trigger 1002 updates change table 1004 by storing the old record value and the new record value in change table 1004. There may be more than one row associated with a change, in which case each record's old and new value are preferably stored in change table 1004.
  • In [0095] operation 1106, trigger 1002 calls signaling routine 1006 to notify cache 106 that a change has occurred. According to an alternative embodiment, signaling routine 1006 may also provide additional information about the fields involved in the change and the change data itself. Cache 106 can use this additional information to determine whether the database information currently stored within cache 106 is affected by the changes. Cache 106 can avoid querying database 104 altogether if it is determined that cache 106 is unaffected by the changes. In operation 1108, trigger 1002 ceases execution.
  • In [0096] operation 1110, cache 106 receives notification from signaling routine 1006. In response to this notification, cache 106 submits a replication request to replication component 122 in operation 1112. The replication request will cause replication component 122 to gather all changes that have been stored since the last replication request. The replication request is preferably submitted at the highest isolation level (serializable) to ensure that it executes in isolation of other transactions and therefore captures only completely committed changes. In operation 1114, replication component 122 executes the replication request received from cache 106.
  • According to an example embodiment of the present invention, signaling routine [0097] 1006 is thereby called at the appropriate time to signal cache 106 that a change has occurred, with the result being that the replication request generated in response to the signal is assured of executing after the current transaction has completed. This is because the replication request must wait for all pending transactions (including the signaling transaction) to complete. Signaling in this manner obviates the need for cache 106 to perform a polling operation to detect possible changes. However, according to an alternative embodiment of the present invention, cache 106 can perform a polling operation to periodically check for changes in those tables 1020 that are also stored in cache 106.
  • In [0098] operation 1116, master replication table 1008 is checked to determine which tables 1020 have updates since the last replication request. If it is determined in operation 1118 that a table has been updated, then in operation 1122 the corresponding change table 1004 is queried to retrieve the changes. In operation 1124, the changes retrieved from change table 1004 in operation 1122 are then deleted from change table 1004, or alternatively, the changes are marked as having been read. In operation 1126, master change table 1008 is updated to show that the current table's changes have been read.
  • The process described by [0099] operations 1122 through 1126 continues until each changed table has been queried. Once all the change data has been gathered, in operation 1120 cache 106 updates the appropriate tables stored in cache 106 according to the gathered change data.
  • Conclusion
  • While various embodiments of the present invention have been described above, it should be understood that they have been presented by way of example only, and not limitation. Thus, the breadth and scope of the present invention should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents. [0100]
  • The previous description of the preferred embodiments is provided to enable any person skilled in the art to make or use the present invention. While the invention has been particularly shown and described with reference to preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention. [0101]

Claims (36)

What is claimed is:
1. A method for processing database requests from application logic, comprising:
(a) receiving a database request;
(b) determining whether said database request is informational or transactional;
(c) routing said database request to a cache if said database request is informational; and
(d) routing said database request to a database if said database request is transactional.
2. The method of claim 1, wherein said database request includes a transaction isolation level, said method further comprising determining whether said transaction isolation level is greater than a first threshold, and if so, routing said database request to said database.
3. The method of claim 1, wherein said database request includes a concurrency setting, said method further comprising determining whether said concurrency setting is less than a second threshold, and if so, routing said database request to said database.
4. The method of claim 1, wherein said database request is routed to said cache using a second driver, said database request is routed to said database using a first driver, and said first driver is a slave to said second driver.
5. The method of claim 1, wherein said determining whether said database request is informational or transactional comprises determining whether said database request is read only, and if so, identifying said database request as informational, and if not, identifying said database request as transactional.
6. The method of claim 1, wherein said database request includes a reference to target data, and wherein said method further comprises determining whether said target data is stored within said cache, and if not, routing said database request to said database.
7. The method of claim 1, wherein said method further comprises determining whether said database request is suitable for processing by said cache, and if not, routing said database request to said database.
8. The method of claim 1, wherein said database request includes a reference to target data, and wherein said routing said database request to said cache comprises determining whether said cache is remote from the application logic, and if so, sending said database request to said cache and determining whether said target data is stored within said cache, and if not, routing said database request to said database.
9. The method of claim 1, wherein said database stores a memory portion and said cache stores a subset of said memory portion, wherein said method further comprises determining whether said database request changes said subset stored in said database, and if so, updating said subset stored in said cache.
10. The method of claim 9, wherein said database request comprises an SQL request, and wherein said subset is changed if said SQL request is an INSERT, UPDATE, or DELETE command.
11. The method of claim 1, wherein said database stores a memory portion and said cache stores a subset of said memory portion, wherein said method further comprises polling said database to determine whether said subset stored in said database has changed, and if so, updating said subset stored in said cache.
12. The method of claim 1, further comprising:
(e) detecting changes to said database; and
(f) replicating said changes in said cache.
13. A system for processing a database request from application logic, wherein target data associated with the database request is stored in a database, and wherein the database is accessed using a first driver, said system comprising:
a cache; and
a second driver to determine whether the database request is informational or transactional,
wherein informational database requests are routed to said cache using said second driver and transactional database requests are routed to the first driver.
14. The system of claim 13, wherein said cache comprises a main memory database.
15. The system of claim 14, wherein said cache further comprises a secondary disk cache coupled to said main memory database.
16. The system of claim 13, wherein said cache stores relational data.
17. The system of claim 13, wherein the application logic loads said second driver, and said second driver provides an application programming interface (API) for the application logic.
18. The system of claim 17, wherein the database requests comprise Structured Query Language (SQL) requests.
19. The system of claim 18, wherein said second driver supports the Open Database Connectivity (ODBC) standard.
20. The system of claim 18, wherein said second driver supports the Java Database Connectivity (JDBC) standard.
21. The system of claim 13, wherein said cache communicates with said second driver according to Hypertext Transfer Protocol (HTTP).
22. The system of claim 13, wherein said cache supports XML Query Language (XQL).
23. The system of claim 13, wherein said second driver calls the first driver to establish a connection with the database.
24. The system of claim 13, further comprising:
means for detecting changes to said database; and
means for replicating said changes in said cache.
25. Computer executable software code, comprising:
code to receive a database request from application logic;
code to determine whether said database request is informational or transactional;
code to route said database request to a cache if said database request is informational; and
code to route said database request to a database if said database request is transactional.
26. The software code of claim 25, wherein said database request includes a transaction isolation level, said software code further comprising code to determine whether said transaction isolation level is greater than a first threshold, and if so, to route said database request to said database.
27. The software code of claim 25, wherein said database request includes a concurrency setting, said software code further comprising code to determine whether said concurrency setting is less than a second threshold, and if so, to route said database request to said database.
28. The software code of claim 25, wherein code to determine whether said database request is informational or transactional comprises code to determine whether said database request is read only, and if so, to identify said database request as informational, and if not, to identify said database request as transactional.
29. The software code of claim 25, wherein said database request includes a reference to target data, and wherein said software code further comprises code to determine whether said target data is stored within said cache, and if not, to route said database request to said database.
30. The software code of claim 25, wherein said software code further comprises code to determine whether said database request is suitable for processing by said cache, and if not, to route said database request to said database.
31. The software code of claim 25, wherein said database request includes a reference to target data, and wherein said code to route said database request to said cache comprises code to determine whether said cache is remote from the application logic, and if so, to send said database request to said cache and to determine whether said target data is stored within said cache, and if not, to route said database request to said database.
32. The software code of claim 25, wherein said database stores a memory portion and said cache stores a subset of said memory portion, wherein said software code further comprises code to determine whether said database request changes said subset stored in said database, and if so, to update said subset stored in said cache.
33. The software code of claim 32, wherein said database request comprises an SQL request, and wherein said subset is changed if said SQL request is an INSERT, UPDATE, or DELETE command.
34. The software code of claim 25, wherein said database stores a memory portion and said cache stores a subset of said memory portion, wherein said software code further comprises code to poll said database to determine whether said subset stored in said database has changed, and if so, to update said subset stored in said cache.
35. The software code of claim 25, further comprising:
code to detect changes to said database; and
code to replicate said changes in said cache.
36. The software code of claim 35, wherein said code to replicate said changes in said cache comprises code to notify said cache of said changes.
US10/458,382 2000-11-15 2003-06-11 System and method for routing database requests to a database and a cache Abandoned US20030200209A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US10/458,382 US20030200209A1 (en) 2000-11-15 2003-06-11 System and method for routing database requests to a database and a cache

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US09/711,881 US6609126B1 (en) 2000-11-15 2000-11-15 System and method for routing database requests to a database and a cache
US10/458,382 US20030200209A1 (en) 2000-11-15 2003-06-11 System and method for routing database requests to a database and a cache

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US09/711,881 Continuation US6609126B1 (en) 2000-11-15 2000-11-15 System and method for routing database requests to a database and a cache

Publications (1)

Publication Number Publication Date
US20030200209A1 true US20030200209A1 (en) 2003-10-23

Family

ID=24859905

Family Applications (2)

Application Number Title Priority Date Filing Date
US09/711,881 Expired - Lifetime US6609126B1 (en) 2000-11-15 2000-11-15 System and method for routing database requests to a database and a cache
US10/458,382 Abandoned US20030200209A1 (en) 2000-11-15 2003-06-11 System and method for routing database requests to a database and a cache

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US09/711,881 Expired - Lifetime US6609126B1 (en) 2000-11-15 2000-11-15 System and method for routing database requests to a database and a cache

Country Status (4)

Country Link
US (2) US6609126B1 (en)
EP (1) EP1342180A4 (en)
AU (1) AU2002216654A1 (en)
WO (1) WO2002041553A2 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070208753A1 (en) * 2004-12-30 2007-09-06 Ncr Corporation Routing database requests among multiple active database systems
US20080082681A1 (en) * 2006-09-29 2008-04-03 Phoenix Contact Gmbh & Co. Kg Programmable logic control device with integrated database driver
US20090199211A1 (en) * 2008-02-05 2009-08-06 International Business Machines Corporation Global, dynamic, remote and central system for database driver configuration
US20100174863A1 (en) * 2007-11-30 2010-07-08 Yahoo! Inc. System for providing scalable in-memory caching for a distributed database
US20100257200A1 (en) * 2009-04-03 2010-10-07 International Business Machines Corporation A common architecture for administration of client side property settings in a distributed and heterogeneous environment
US20110225120A1 (en) * 2010-03-11 2011-09-15 Yahoo! Inc. System for maintaining a distributed database using leases
US20110225121A1 (en) * 2010-03-11 2011-09-15 Yahoo! Inc. System for maintaining a distributed database using constraints
US8185689B1 (en) * 2008-02-04 2012-05-22 Netlogic Microsystems, Inc. Processor with compare operations based on any of multiple compare data segments
US20130097204A1 (en) * 2011-09-23 2013-04-18 Corent Technology, Inc. Multi-Tenant Agile Database Connector
US8548945B2 (en) * 2011-09-23 2013-10-01 International Business Machines Corporation Database caching utilizing asynchronous log-based replication
US8694461B2 (en) * 2012-02-21 2014-04-08 American Express Travel Related Services Company, Inc. Systems and methods for interval control element chain architecture
US20170277655A1 (en) * 2016-03-25 2017-09-28 Microsoft Technology Licensing, Llc Memory sharing for working data using rdma
US20180225325A1 (en) * 2017-02-07 2018-08-09 International Business Machines Corporation Application resiliency management using a database driver

Families Citing this family (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020087798A1 (en) * 2000-11-15 2002-07-04 Vijayakumar Perincherry System and method for adaptive data caching
US8255791B2 (en) 2000-11-29 2012-08-28 Dov Koren Collaborative, flexible, interactive real-time displays
US8001242B2 (en) * 2001-05-08 2011-08-16 International Business Machines Corporation Method for redirection of host data access to multiple non-host file systems or data stores
US7024420B2 (en) * 2002-04-30 2006-04-04 Bmc Software, Inc. Run-time access techniques for database images
US20040199552A1 (en) * 2003-04-01 2004-10-07 Microsoft Corporation Transactionally consistent change tracking for databases
US7089235B2 (en) * 2003-04-17 2006-08-08 International Business Machines Corporation Method for restricting queryable data in an abstract database
US7222117B1 (en) 2003-11-14 2007-05-22 Advent Software, Inc. Segmented global area database
US20050132367A1 (en) * 2003-12-16 2005-06-16 Vijay Tewari Method, apparatus and system for proxying, aggregating and optimizing virtual machine information for network-based management
US20050132363A1 (en) * 2003-12-16 2005-06-16 Vijay Tewari Method, apparatus and system for optimizing context switching between virtual machines
US20050132364A1 (en) * 2003-12-16 2005-06-16 Vijay Tewari Method, apparatus and system for optimizing context switching between virtual machines
EP1548613A1 (en) * 2003-12-23 2005-06-29 Sap Ag Method and apparatus for performance improvement in a client/server system.
US7421562B2 (en) * 2004-03-01 2008-09-02 Sybase, Inc. Database system providing methodology for extended memory support
US9606821B2 (en) * 2004-12-17 2017-03-28 Intel Corporation Virtual environment manager for creating and managing virtual machine environments
US7735081B2 (en) * 2004-12-17 2010-06-08 Intel Corporation Method, apparatus and system for transparent unification of virtual machines
US20060143617A1 (en) * 2004-12-29 2006-06-29 Knauerhase Robert C Method, apparatus and system for dynamic allocation of virtual platform resources
US7797307B2 (en) * 2006-01-27 2010-09-14 Oracle International Corporation Query generation method for queries for inline views for aggregation referring to identified subgraphs
US7788243B2 (en) * 2006-09-08 2010-08-31 Sybase, Inc. System and methods for optimizing data transfer among various resources in a distributed environment
US7831772B2 (en) * 2006-12-12 2010-11-09 Sybase, Inc. System and methodology providing multiple heterogeneous buffer caches
GB2446624A (en) * 2007-02-13 2008-08-20 Ali Guryel Secure network used in educational establishments
US8458217B1 (en) 2009-08-24 2013-06-04 Advent Software, Inc. Instantly built information space (IBIS)
KR101377461B1 (en) * 2010-09-17 2014-07-08 한국전자통신연구원 Remote Maintenance and Monitoring Service Framework for Heterogeneous Device and System
US8874696B1 (en) * 2010-12-17 2014-10-28 Emc Corporation Common cache service
US8769350B1 (en) 2011-09-20 2014-07-01 Advent Software, Inc. Multi-writer in-memory non-copying database (MIND) system and method
US8332349B1 (en) 2012-01-06 2012-12-11 Advent Software, Inc. Asynchronous acid event-driven data processing using audit trail tools for transaction systems
IN2015DN01332A (en) * 2012-09-27 2015-07-03 Amadeus Sas
US9037801B2 (en) 2012-09-27 2015-05-19 Amadeus S.A.S. Method and system of storing and retrieving data
ES2773048T3 (en) 2012-09-27 2020-07-09 Amadeus Sas Data storage and retrieval method and system
US20140372488A1 (en) * 2013-06-13 2014-12-18 Sap Ag Generating database processes from process models
CN104239357B (en) * 2013-06-21 2019-01-18 Sap欧洲公司 Concurrent request processing for db transaction
US8886671B1 (en) 2013-08-14 2014-11-11 Advent Software, Inc. Multi-tenant in-memory database (MUTED) system and method
US20160125029A1 (en) * 2014-10-31 2016-05-05 InsightSoftware.com International Intelligent caching for enterprise resource planning reporting
KR101780041B1 (en) 2016-05-30 2017-09-19 주식회사 인피니플럭스 Method and apparatus for improving throughput of database

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5701461A (en) * 1995-01-27 1997-12-23 Microsoft Corporation Method and system for accessing a remote database using pass-through queries
US5829022A (en) * 1995-08-29 1998-10-27 Fuji Xerox Co., Ltd. Method and apparatus for managing coherency in object and page caches
US5835908A (en) * 1996-11-19 1998-11-10 Microsoft Corporation Processing multiple database transactions in the same process to reduce process overhead and redundant retrieval from database servers
US5974129A (en) * 1997-05-21 1999-10-26 Lucent Technologies Inc. Distributed virtual cache method for use in a database query control system
US6081875A (en) * 1997-05-19 2000-06-27 Emc Corporation Apparatus and method for backup of a disk storage system
US6148337A (en) * 1998-04-01 2000-11-14 Bridgeway Corporation Method and system for monitoring and manipulating the flow of private information on public networks
US6185608B1 (en) * 1998-06-12 2001-02-06 International Business Machines Corporation Caching dynamic web pages
US6233331B1 (en) * 1997-05-22 2001-05-15 At&T Corp. Method of enhancing call processing in a number portability environment

Family Cites Families (61)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1341310C (en) 1988-07-15 2001-10-23 Robert Filepp Interactive computer network and method of operation
JP2533266B2 (en) * 1991-06-14 1996-09-11 インターナショナル・ビジネス・マシーンズ・コーポレイション Locking method of data resource in shared data system and data lock management method between systems
DE4497149T1 (en) 1993-09-24 1996-10-17 Oracle Corp Method and device for replicating data
CA2130395C (en) 1993-12-09 1999-01-19 David G. Greenwood Multimedia distribution over wide area networks
WO1996017306A2 (en) 1994-11-21 1996-06-06 Oracle Corporation Media server
WO1996016497A1 (en) 1994-11-21 1996-05-30 Oracle Corporation Transferring binary large objects (blobs) in a network environment
US5758149A (en) * 1995-03-17 1998-05-26 Unisys Corporation System for optimally processing a transaction and a query to the same database concurrently
US5727203A (en) * 1995-03-31 1998-03-10 Sun Microsystems, Inc. Methods and apparatus for managing a database in a distributed object operating environment using persistent and transient cache
US5721914A (en) 1995-09-14 1998-02-24 Mci Corporation System and method for hierarchical data distribution
US6061504A (en) 1995-10-27 2000-05-09 Emc Corporation Video file server using an integrated cached disk array and stream server computers
US5761673A (en) 1996-01-31 1998-06-02 Oracle Corporation Method and apparatus for generating dynamic web pages by invoking a predefined procedural package stored in a database
US5892945A (en) 1996-03-21 1999-04-06 Oracle Corporation Method and apparatus for distributing work granules among processes based on the location of data accessed in the work granules
US5806085A (en) 1996-05-01 1998-09-08 Sun Microsystems, Inc. Method for non-volatile caching of network and CD-ROM file accesses using a cache directory, pointers, file name conversion, a local hard disk, and separate small database
US5799306A (en) 1996-06-21 1998-08-25 Oracle Corporation Method and apparatus for facilitating data replication using object groups
US5991768A (en) 1996-06-21 1999-11-23 Oracle Corporation Finer grained quiescence for data replication
US5768589A (en) 1996-07-12 1998-06-16 Oracle Corporation Method and apparatus for executing stored procedures in a foreign database management system
US5920700A (en) 1996-09-06 1999-07-06 Time Warner Cable System for managing the addition/deletion of media assets within a network based on usage and media asset metadata
US5870759A (en) 1996-10-09 1999-02-09 Oracle Corporation System for synchronizing data between computers using a before-image of data
US5926816A (en) 1996-10-09 1999-07-20 Oracle Corporation Database Synchronizer
US5870765A (en) 1996-10-09 1999-02-09 Oracle Corporation Database synchronizer
US5884325A (en) 1996-10-09 1999-03-16 Oracle Corporation System for synchronizing shared data between computers
US5765162A (en) 1996-10-25 1998-06-09 International Business Machines Corporation Method for managing queryable datastore persistent objects and queryable datastore collections in an object-oriented environment
US5781907A (en) 1996-10-25 1998-07-14 International Business Machines Corporation Method for the incremental presentation of non-object-oriented datastores using an object-oriented queryable datastore collection
US5794247A (en) 1996-10-25 1998-08-11 International Business Machines Corporation Method for representing data from non-relational, non-object-oriented datastores as queryable datastore persistent objects
US5870761A (en) 1996-12-19 1999-02-09 Oracle Corporation Parallel queue propagation
US5933593A (en) 1997-01-22 1999-08-03 Oracle Corporation Method for writing modified data from a main memory of a computer back to a database
US6026404A (en) 1997-02-03 2000-02-15 Oracle Corporation Method and system for executing and operation in a distributed environment
US6845505B1 (en) 1997-02-03 2005-01-18 Oracle International Corporation Web request broker controlling multiple processes
US6247056B1 (en) 1997-02-03 2001-06-12 Oracle Corporation Method and apparatus for handling client request with a distributed web application server
US5899986A (en) 1997-02-10 1999-05-04 Oracle Corporation Methods for collecting query workload based statistics on column groups identified by RDBMS optimizer
US6138162A (en) 1997-02-11 2000-10-24 Pointcast, Inc. Method and apparatus for configuring a client to redirect requests to a caching proxy server based on a category ID with the request
US5832521A (en) 1997-02-28 1998-11-03 Oracle Corporation Method and apparatus for performing consistent reads in multiple-server environments
US5937414A (en) 1997-02-28 1999-08-10 Oracle Corporation Method and apparatus for providing database system replication in a mixed propagation environment
US6021470A (en) 1997-03-17 2000-02-01 Oracle Corporation Method and apparatus for selective data caching implemented with noncacheable and cacheable data for improved cache performance in a computer networking system
US5878218A (en) 1997-03-17 1999-03-02 International Business Machines Corporation Method and system for creating and utilizing common caches for internetworks
US6182122B1 (en) 1997-03-26 2001-01-30 International Business Machines Corporation Precaching data at an intermediate server based on historical data requests by users of the intermediate server
JP4134357B2 (en) 1997-05-15 2008-08-20 株式会社日立製作所 Distributed data management method
US5926819A (en) * 1997-05-30 1999-07-20 Oracle Corporation In-line triggers
US6073163A (en) 1997-06-10 2000-06-06 Oracle Corporation Method and apparatus for enabling web-based execution of an application
US5987463A (en) 1997-06-23 1999-11-16 Oracle Corporation Apparatus and method for calling external routines in a database system
US6041344A (en) 1997-06-23 2000-03-21 Oracle Corporation Apparatus and method for passing statements to foreign databases by using a virtual package
US5937409A (en) 1997-07-25 1999-08-10 Oracle Corporation Integrating relational databases in an object oriented environment
US6112281A (en) 1997-10-07 2000-08-29 Oracle Corporation I/O forwarding in a cache coherent shared disk computer system
US6192398B1 (en) 1997-10-17 2001-02-20 International Business Machines Corporation Remote/shared browser cache
US6128701A (en) 1997-10-28 2000-10-03 Cache Flow, Inc. Adaptive and predictive cache refresh policy
US6108664A (en) 1997-10-31 2000-08-22 Oracle Corporation Object views for relational data
US6026391A (en) 1997-10-31 2000-02-15 Oracle Corporation Systems and methods for estimating query response times in a computer system
US6334114B1 (en) 1997-10-31 2001-12-25 Oracle Corporation Method and apparatus for performing transactions in a stateless web environment which supports a declarative paradigm
US6134558A (en) 1997-10-31 2000-10-17 Oracle Corporation References that indicate where global database objects reside
WO1999023558A1 (en) 1997-10-31 1999-05-14 Oracle Corporation Method and apparatus for conducting a transaction in a stateless web environment
US6078963A (en) * 1998-01-16 2000-06-20 At&T Corp. Router with de-centralized processing using intelligent ports
US6353836B1 (en) 1998-02-13 2002-03-05 Oracle Corporation Method and apparatus for transferring data from the cache of one node to the cache of another node
US5987233A (en) 1998-03-16 1999-11-16 Skycache Inc. Comprehensive global information network broadcasting system and implementation thereof
US6112279A (en) 1998-03-31 2000-08-29 Lucent Technologies, Inc. Virtual web caching system
US6108703A (en) 1998-07-14 2000-08-22 Massachusetts Institute Of Technology Global hosting system
JP4590105B2 (en) 1999-01-28 2010-12-01 ヤフー! インコーポレイテッド Web server content replication
US6314465B1 (en) 1999-03-11 2001-11-06 Lucent Technologies Inc. Method and apparatus for load sharing on a wide area network
US6701415B1 (en) 1999-03-31 2004-03-02 America Online, Inc. Selecting a cache for a request for information
US7526481B1 (en) 1999-04-19 2009-04-28 Oracle International Corporation Web servers with queryable dynamic caches
US6920475B1 (en) 1999-04-23 2005-07-19 Oracle International Corporation Communication architecture for distributed computing environment
US6405191B1 (en) 1999-07-21 2002-06-11 Oracle Corporation Content based publish-and-subscribe system integrated in a relational database system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5701461A (en) * 1995-01-27 1997-12-23 Microsoft Corporation Method and system for accessing a remote database using pass-through queries
US5829022A (en) * 1995-08-29 1998-10-27 Fuji Xerox Co., Ltd. Method and apparatus for managing coherency in object and page caches
US5835908A (en) * 1996-11-19 1998-11-10 Microsoft Corporation Processing multiple database transactions in the same process to reduce process overhead and redundant retrieval from database servers
US6081875A (en) * 1997-05-19 2000-06-27 Emc Corporation Apparatus and method for backup of a disk storage system
US5974129A (en) * 1997-05-21 1999-10-26 Lucent Technologies Inc. Distributed virtual cache method for use in a database query control system
US6233331B1 (en) * 1997-05-22 2001-05-15 At&T Corp. Method of enhancing call processing in a number portability environment
US6148337A (en) * 1998-04-01 2000-11-14 Bridgeway Corporation Method and system for monitoring and manipulating the flow of private information on public networks
US6185608B1 (en) * 1998-06-12 2001-02-06 International Business Machines Corporation Caching dynamic web pages

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070208753A1 (en) * 2004-12-30 2007-09-06 Ncr Corporation Routing database requests among multiple active database systems
US20080082681A1 (en) * 2006-09-29 2008-04-03 Phoenix Contact Gmbh & Co. Kg Programmable logic control device with integrated database driver
US8205005B2 (en) * 2006-09-29 2012-06-19 Phoenix Contact Gmbh & Co. Kg Programmable logic control device with integrated database driver
US20100174863A1 (en) * 2007-11-30 2010-07-08 Yahoo! Inc. System for providing scalable in-memory caching for a distributed database
US8185689B1 (en) * 2008-02-04 2012-05-22 Netlogic Microsystems, Inc. Processor with compare operations based on any of multiple compare data segments
US20090199211A1 (en) * 2008-02-05 2009-08-06 International Business Machines Corporation Global, dynamic, remote and central system for database driver configuration
US8260821B2 (en) * 2008-02-05 2012-09-04 International Business Machines Corporation Global, dynamic, remote and central system for database driver configuration
US20100257200A1 (en) * 2009-04-03 2010-10-07 International Business Machines Corporation A common architecture for administration of client side property settings in a distributed and heterogeneous environment
US8214389B2 (en) 2009-04-03 2012-07-03 International Business Machines Corporation Common architecture for administration of client side property settings in a distributed and heterogeneous environment
US20110225120A1 (en) * 2010-03-11 2011-09-15 Yahoo! Inc. System for maintaining a distributed database using leases
US20110225121A1 (en) * 2010-03-11 2011-09-15 Yahoo! Inc. System for maintaining a distributed database using constraints
US8548945B2 (en) * 2011-09-23 2013-10-01 International Business Machines Corporation Database caching utilizing asynchronous log-based replication
US20130097204A1 (en) * 2011-09-23 2013-04-18 Corent Technology, Inc. Multi-Tenant Agile Database Connector
US8712961B2 (en) * 2011-09-23 2014-04-29 International Business Machines Corporation Database caching utilizing asynchronous log-based replication
US9495372B2 (en) * 2011-09-23 2016-11-15 Corent Technology, Inc. Multi-tenant agile database connector
US10824591B2 (en) 2011-09-23 2020-11-03 Corent Technology, Inc. Automatic transformation of single-tenant software applications to multi-tenant SAAS systems
US8694461B2 (en) * 2012-02-21 2014-04-08 American Express Travel Related Services Company, Inc. Systems and methods for interval control element chain architecture
US9501518B2 (en) 2012-02-21 2016-11-22 American Express Travel Related Services Company, Inc. Systems and methods for interval control element chain architecture
US20170039257A1 (en) * 2012-02-21 2017-02-09 American Express Travel Related Services Company, Inc. Callable change record data
US9805103B2 (en) * 2012-02-21 2017-10-31 American Express Travel Related Services Company, Inc. Callable change record data
US20170277655A1 (en) * 2016-03-25 2017-09-28 Microsoft Technology Licensing, Llc Memory sharing for working data using rdma
CN108780406A (en) * 2016-03-25 2018-11-09 微软技术许可有限责任公司 Memory sharing working data using RDMA
US10303646B2 (en) * 2016-03-25 2019-05-28 Microsoft Technology Licensing, Llc Memory sharing for working data using RDMA
US20180225325A1 (en) * 2017-02-07 2018-08-09 International Business Machines Corporation Application resiliency management using a database driver

Also Published As

Publication number Publication date
AU2002216654A1 (en) 2002-05-27
WO2002041553A2 (en) 2002-05-23
WO2002041553A3 (en) 2002-08-22
EP1342180A2 (en) 2003-09-10
EP1342180A4 (en) 2007-10-03
US6609126B1 (en) 2003-08-19

Similar Documents

Publication Publication Date Title
US6609126B1 (en) System and method for routing database requests to a database and a cache
US7181474B2 (en) Database communication system and method for communicating with a database
US10838935B2 (en) Automating the logging of table changes in a database
US8156082B2 (en) System and methods for temporary data management in shared disk cluster
US9032011B2 (en) Management of data object sharing among applications
US7970823B2 (en) System for sharing data objects among applications
US6820085B2 (en) Web system having clustered application servers and clustered databases
US5950188A (en) Database system with methods for executing system-created internal SQL command statements
US6105017A (en) Method and apparatus for deferring large object retrievals from a remote database in a heterogeneous database system
US20040225865A1 (en) Integrated database indexing system
US8892509B2 (en) Systems and methods for a distributed in-memory database
US20030154216A1 (en) Database optimization apparatus and method
US20130297565A1 (en) Database Management System
US20070294323A1 (en) Dynamic and selective data source binding through a metawrapper
US20050149584A1 (en) Transparent archiving
CN110688397B (en) SQL-based distributed data unified access system and method
US20080288498A1 (en) Network-attached storage devices
US20030195862A1 (en) Method and system for providing SQL or other RDBMS access to native xbase application
US20040193567A1 (en) Apparatus and method for using a predefined database operation as a data source for a different database operation
US5956727A (en) Heterogeneous database system with data source extensibility and alteration of database functions
US20040181510A1 (en) System and method for cooperative database acceleration
Barga et al. Persistent client-server database sessions
US7707138B2 (en) Identifying columns for row based operations
US20210141806A1 (en) Maintain Constant Load on Global Database After Regionalization
Moore Oracle Database Heterogeneous Connectivity Administrator’s Guide, 10g Release 1 (10.1) Part No. B10764-01 Copyright© 2001, 2003 Oracle Corporation. All rights reserved. Primary Author: Cathy Baird Contributors: Hermann Baer, Jacco Draaijer, Vira Goorah, Govind Lakkoju, Kishan Peyetti

Legal Events

Date Code Title Description
STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION

AS Assignment

Owner name: INFOCRUISER,VIRGINIA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:SMITH, ERIK RICHARD;CONLEY, PAUL ALAN;REEL/FRAME:024081/0501

Effective date: 20001115

Owner name: SUNSTONE COMPONENTS LLC,NEVADA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:APPFLUENT TECHNOLOGY, INC.;REEL/FRAME:024081/0545

Effective date: 20050401

Owner name: APPFLUENT TECHNOLOGY, INC.,MARYLAND

Free format text: CHANGE OF NAME;ASSIGNOR:INFOCRUISER, INC.;REEL/FRAME:024081/0605

Effective date: 20020731

AS Assignment

Owner name: INFOCRUISER, INC. (DE), VIRGINIA

Free format text: MERGER;ASSIGNOR:INFOCRUISER, INC. (CA);REEL/FRAME:026210/0364

Effective date: 20010306

AS Assignment

Owner name: MEC MANAGEMENT, LLC, SOUTH DAKOTA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:BYLAS DISTRICT ECONOMIC ENTERPRISE LLC;REEL/FRAME:050144/0772

Effective date: 20190808

AS Assignment

Owner name: INTELLECTUAL VENTURES ASSETS 114 LLC, DELAWARE

Free format text: SECURITY INTEREST;ASSIGNOR:BYLAS DISTRICT ECONOMIC ENTERPRISE, LLC;REEL/FRAME:054089/0864

Effective date: 20181207

Owner name: INTELLECTUAL VENTURES ASSETS 119 LLC, DELAWARE

Free format text: SECURITY INTEREST;ASSIGNOR:BYLAS DISTRICT ECONOMIC ENTERPRISE, LLC;REEL/FRAME:054089/0864

Effective date: 20181207