Pre-optimized writes to the database based on intelligence gathered from the read cache

The Intelligent Cache Graph Builder optimizes database write operations by examining cache entries before writing, addressing inefficiencies in large scale data storage and access, thereby enhancing performance by discarding invalid requests.

JP2024534812AActive Publication Date: 2024-09-26INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2024510453
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-08-31
Filing Date
2022-08-22
Publication Date
2024-09-26
Estimated Expiration
2042-08-22

AI Technical Summary

Technical Problem

Large scale data poses challenges to efficient storage and access requirements in database technology, with caching strategies affecting system design and performance.

Method used

Implementing an Intelligent Cache Graph Builder (ICGB) to examine database caches before writing entries, returning errors without accessing the database if the entry already exists, and optimizing write operations based on intelligence gathered from read caches.

Benefits of technology

Preempts invalid write operations, reducing unnecessary database access and enhancing performance by discarding repetitive or inappropriate data inserts/updates without processing them, thus optimizing database write operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024534812000001
    Figure 2024534812000001
Patent Text Reader

Abstract

A technique is provided for receiving a request to write an entry to a database. A database cache is then examined for a portion of the entry, such as a portion that includes a primary key. Based on the examination, the technique determines whether to write the entry to the database. In response to a determination that the entry cannot be written to the database, an error is returned, and the error is returned without accessing the database and only the cache. Meanwhile, in response to a determination that the entry can be written to the database, the entry is written to the database.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to pre-optimization of a database based on data in a cache. [Background technology]

[0002] Large data sizes pose challenges to the efficient storage and access requirements aspects of database technology. Caching strategies impact system design and resulting performance. Data caching can improve query performance by storing data locally instead of accessing the data directly from the data source. Database caches complement the primary database by reducing unnecessary pressure on the primary database in the form of frequently accessed read data, traditionally when a requester wants to read data from the database. Summary of the Invention

[0003] According to one aspect, a computer-implemented method is provided that is implemented by an information handling system including a processor and a memory accessible by the processor, the method including receiving a request to write an entry to a database; searching one or more database caches for a portion of the entry; determining whether to write the entry to the database based on the searching; returning an error in response to determining that the entry cannot be written to the database, where the error is returned without accessing the database; and writing the entry to the database in response to determining that the entry can be written to the database.

[0004] According to another aspect, there is provided an information processing system including one or more processors, a memory coupled to at least one of the processors, and a set of computer program instructions stored in the memory and executed by the at least one of the processors to perform actions, the actions including receiving a request to write an entry to a database; searching one or more database caches for a portion of the entry; determining whether to write the entry to the database based on the searching; returning an error in response to determining that the entry cannot be written to the database, where the error is returned without accessing the database; and writing the entry to the database in response to determining that the entry can be written to the database.

[0005] According to another aspect, there is provided a computer program product including a computer readable storage medium including computer program code that, when executed by an information processing system, performs actions, the actions including receiving a request to write an entry to a database; searching one or more database caches for a portion of the entry; determining whether to write the entry to the database based on the searching; and returning an error in response to determining that the entry cannot be written to the database, where the error is returned without accessing the database; and writing the entry to the database in response to determining that the entry can be written to the database.

[0006] A technique is provided for receiving a request to write an entry to a database. A database cache is then examined for a portion of the entry, such as a portion that includes a primary key. Based on the examination, the technique determines whether to write the entry to the database. In response to a determination that the entry cannot be written to the database, an error is returned, and the error is returned without accessing the database and only accessing the cache. Meanwhile, in response to a determination that the entry can be written to the database, the entry is written to the database.

[0007] The above is a summary and thus contains, by definition, simplifications, generalizations, and omissions of detail. As such, those skilled in the art will appreciate that this summary is illustrative only and is not intended to be in any way limiting. Other aspects, inventive features, and advantages will become apparent in the non-limiting detailed description set forth below.

[0008] Preferred embodiments of the invention will now be described, by way of example only, with reference to the following drawings: [Brief description of the drawings]

[0009] [Figure 1] 1 is a block diagram illustrating a data processing system capable of implementing the methods described herein, in accordance with a preferred embodiment of the present invention. [Diagram 2] FIG. 2 illustrates an extension of the information processing system environment shown in FIG. 1 according to a preferred embodiment of the present invention, illustrating that the methods described herein may be performed on a variety of information processing systems operating in a networked environment. [Diagram 3] FIG. 13 illustrates how writes to a database are analyzed and some errors are rejected without accessing the actual database, according to a preferred embodiment of the present invention. [Figure 4] FIG. 2 illustrates how an intelligence cache graph builder is constructed based on various database caches in accordance with a preferred embodiment of the present invention. [Diagram 5] FIG. 1 illustrates pre-optimized writes to a database based on intelligence gleaned from a cache operating on a replicated database in accordance with a preferred embodiment of the present invention. [Figure 6] 4 is a flowchart illustrating steps taken to process database requests using intelligence gleaned from one or more database caches in accordance with a preferred embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Figures 1-6 show a technique for pre-optimizing database write operations based on data available in one or more caches. Whenever a read operation is performed, in traditional database implementation strategies, data is populated in a cache, commonly called the "read" cache. This technique uses data from this cache to optimize the write operation. This technique builds an Intelligence Cache Graph Builder (ICBG) component that uses existing database caching to determine and automatically evaluate requested database write operations (incoming insert / update requests). The evaluation is based on data found in the relevant caches. If the write operation is found to be invalid, the request can be discarded without actually accessing the database.

[0011] The method of this technique deals with repetitive or inappropriate data inserts / updates and preemptively discards invalid requests instead of processing them. For example, before an insert statement, this technique checks to determine if the primary key (primary identifier) ​​already exists. If it does, this technique returns an error without actually accessing the database and attempting to perform such an insert on the actual database.

[0012] In one embodiment, the Intelligence Cache Builder Component (ICGB) is an add-on to existing L1, L2 and L3 cache techniques that essentially organizes all existing cache hits into a readable and understandable graph of tenant-level objects. This data is further disaggregated into in-memory blocks of information that are self-constructed based on the number of accesses and are used for further analysis of incoming write operations. In this way, the technique uses intelligence gathered during lower authorization level operations, such as read operations, to optimize higher authorization (or more privileged) operations, such as write operations.

[0013] In a traditional database management system (DBMS), a user accessing an application requires DB traversal, which involves accessing multiple DB tables; these accesses, which are typically "read" in nature, are used to build an extensive ICGB-based graph infrastructure, and this information is further used to process write statements. The ICGB is not only built during read accesses, but is enriched using write operations. When a database write is requested by an end user, the success or failure of that write (insert / update) is also captured in the ICGB, and this information is used for future write operations (insert / update).

[0014] The following example illustrates a possible use case where the techniques described herein can be advantageously used in a DBMS. In this example, (1) an existing user requests to log into an application. The login request is processed to look up the database to see if the user identifier (e.g., user ID=UID1000) exists. (2) If the password is validated, the user is allowed access to the site. (3) The read cache is updated (created) with a new graph entry indicating that the user table has a user identifier of UID1000. (4) A new user registration request comes in, where the user tries to create a new user identifier of UID1000. The existing user table graph is used (from the read cache) and an error is thrown saying that a user with identifier UID1000 already exists in the database table. This error occurs without any access to the actual database, and without any SQL "select" statement. Similarly, non-SQL databases can use this technique (e.g., by probing for existing Java(R)(TM) Script Notation (JSON) entries) to preemptively optimize write operations (e.g., updates or inserts) using read caching. (Java(R) and all Java(R)-based trademarks and logos are trademarks or registered trademarks of Oracle or its affiliates.)

[0015] In the process of discarding a write operation such as an insert, this technique implicitly avoids a cache insert that would have resulted in an additional database access. In one embodiment, there is a distributed read cache between the various copies of a replicated database. This may be implemented as an integral part of the DB or as an external service.

[0016] When an external entity attempts to read data from the database, if the operation is successful, metadata about that data (e.g. primary keys, indexes, etc.) that allows the system to check the data for duplicates is stored in the cache. In a distributed database environment, the different read caches of different replicas can be synchronized. In this way, even if one replica has not yet read anything, it has knowledge of all successful lookups made at other replicas.

[0017] This technique also handles delete operations. If the delete is successful, the read, write and discard cache entries for the deleted entry are removed, and in a distributed environment, the various replicas keep their caches synchronized. When an external entity attempts to delete or remove an entry from the database, and the operation is successful, the read, discard and write caches are updated to remove the entries corresponding to the deleted entry.

[0018] The approach is based on the following novel idea: A write operation identifies the possibility that data can be discarded at an early stage. The write operation examines all caches updated by heterogeneous operations, such as the read cache. If the read cache has an entry similar to the one the user is trying to create, the system does not try to write this entry to the database, instead the approach rejects the operation at this early stage without accessing the database at all. In a distributed database environment, all read cache replicas are kept synchronized, so that even relatively new replicas quickly acquire intelligence from the others.

[0019] If the read cache is a hit-miss, the system searches the discard cache. The discard cache is updated with all writes that have been "discarded" or "rejected" by the system during the recent period. If the system finds a match in the discard cache, the system preempts instead of searching the larger and more cumbersome "write cache" and instead of searching the actual database for the data. If both the read and discard caches are hit-miss, the technique searches the write cache, which contains all write entries, and if this is also a miss, the system will access the actual database. In one embodiment, the technique also includes a "custom cache" that the system administrator can update manually or programmatically to provide an intelligent rejection process.

[0020] The following detailed description generally follows the above summary, and further explains and expands on the definitions of various aspects and embodiments as necessary. To this end, the detailed description first describes a computing environment in Figure 1 suitable for implementing software and / or hardware techniques related to the present disclosure in accordance with a preferred embodiment. In Figure 2, a networked environment in accordance with a preferred embodiment of the present invention is shown as an extension of the basic computing environment to highlight the ability to implement modern computing techniques across multiple individual devices.

[0021] 1 illustrates information handling system 100, a device that is a simplified example of a computing system capable of performing the computing operations described herein. Information handling system 100 includes one or more processors 110 coupled to a processor interface bus 112. Processor interface bus 112 connects processor 110 to a northbridge 115, also referred to as a memory controller hub (MCH). Northbridge 115 connects to system memory 120 and provides a means for the processor to access the system memory. A graphics controller 125 also connects to northbridge 115. In one embodiment, a PCI Express bus 118 connects northbridge 115 to graphics controller 125. Graphics controller 125 connects to a display device 130, such as a computer monitor.

[0022] Northbridge 115 and Southbridge 135 connect to each other using bus 119. In one embodiment, the bus is a Direct Media Interface (DMI) bus that transfers data between Northbridge 115 and Southbridge 135 at high speeds in each direction. In another embodiment, a Peripheral Component Interconnect (PCI) bus connects the Northbridge and Southbridge. Southbridge 135, also known as an I / O Controller Hub (ICH), is a chip that implements functions that generally run at slower speeds than those provided by the Northbridge. Southbridge 135 typically provides various buses that are used to connect various components. These buses include, for example, PCI and PCI Express buses, ISA buses, System Management Bus (SMBus or SMB), and / or Low Pin Count (LPC) buses. The LPC bus often connects low bandwidth devices, such as Boot ROM 196 and "legacy" I / O devices (which use "Super I / O" chips). The "legacy" I / O devices (198) may include, for example, serial and parallel ports, a keyboard, a mouse, and / or a floppy disk controller. The LPC bus also connects the Southbridge 135 to a Trusted Platform Module (TPM) 195. Other components often included in the Southbridge 135 include a Direct Memory Access (DMA) controller, a Programmable Interrupt Controller (PIC), and a storage device controller that uses bus 184 to connect the Southbridge 135 to a non-volatile storage device 185, such as a hard disk drive.

[0023] The ExpressCard 155 is a slot that connects hot-pluggable devices to an information handling system. The ExpressCard 155 connects to the Southbridge 135 using both a Universal Serial Bus (USB) and a PCI Express bus, and therefore supports both PCI Express and USB connections. The Southbridge 135 includes a USB controller 140 that provides USB connectivity for devices that connect to the USB. These devices include a webcam (camera) 150, an infrared (IR) receiver 148, a keyboard and trackpad 144, and a Bluetooth device 146 that allows for wireless personal area networks (PANs). The USB controller 140 also provides USB connectivity to a variety of other USB connected devices 142, such as a mouse, a removable non-volatile storage device 145, a modem, a network card, an ISDN connector, a fax machine, a printer, a USB hub, and many other types of USB connected devices. Although the removable non-volatile storage device 145 is shown as a USB connected device, the removable non-volatile storage device 145 may be connected using a different interface, such as a Firewire interface.

[0024] A wireless local area network (LAN) device 175 connects to the Southbridge 135 via a PCI or PCI Express bus 172. The LAN device 175 typically implements one of the IEEE.802.11 standards for wireless modulation technology that all use the same protocol for wireless communication between the information handling system 100 and another computer system or device. An accelerometer 180 connects to the Southbridge 135 and measures the acceleration or movement of the device. An optical storage device 190 connects to the Southbridge 135 using a Serial ATA (SATA) bus 188. Serial ATA adapters and devices communicate over a high-speed serial link. The Serial ATA bus also connects the Southbridge 135 to other forms of storage devices, such as hard disk drives. An audio circuit 160, such as a sound card, connects to the Southbridge 135 via bus 158. The audio circuitry 160 also provides features such as audio line-in and optical digital audio input ports 162, optical digital output and headphone jack 164, built-in speaker 166, and built-in microphone 168. An Ethernet controller 170 connects to the South Bridge 135 using a bus such as a PCI bus or a PCI Express bus. The Ethernet controller 170 connects the information handling system 100 to computer networks such as local area networks (LANs), the Internet, and other public and private computer networks.

[0025] 1 illustrates an information handling system, an information handling system may be a device that may take many forms. For example, an information handling system may take the form of a desktop device, a server device, a portable device, a laptop device, a notebook device, or other form factor device. Additionally, an information handling system may take other form factors, such as a personal digital assistant (PDA), a gaming device, an ATM machine, a mobile phone device, a communications device, or other device that includes a processor and memory.

[0026] The Trusted Platform Module (TPM 195) shown in FIG. 1 and described herein for providing security functions is merely one example of a Hardware Security Module (HSM). Thus, a TPM as described and claimed herein includes any type of HSM, including but not limited to hardware security devices that conform to the Trusted Computing Group (TCG) standard entitled "Trusted Platform Module (TPM) Specification Version 1.2." A TPM is a hardware security subsystem that may be incorporated into any number of information processing systems, such as those generally shown in FIG. 2.

[0027] FIG. 2 illustrates an expansion of the information handling system environment shown in FIG. 1 according to a preferred embodiment of the present invention to illustrate that the methods described herein may be implemented on various types of devices operating in a networked environment. The types of information handling systems range from small handheld devices such as handheld computer / cell phone 210 to large mainframe systems such as mainframe computer 270. Examples of handheld computers 210 include personal digital assistants (PDAs), personal entertainment devices such as MP3 players, portable televisions, and compact disc players. Other examples of information handling systems include pen or tablet devices 220, laptop or notebook devices 230, workstation devices 240, personal computer system devices 250, and server devices 260. Other types of information handling system devices not individually illustrated in FIG. 2 are represented by information handling system devices 280. As illustrated, various information handling system devices may be networked together using computer network 200. Types of computer networks that can be used to interconnect various information processing systems include local area networks (LANs), wireless local area networks (WLANs), the Internet, the public switched telephone network (PSTN), other wireless networks, and any other network topology that can be used to interconnect information processing systems. Many information processing systems include a non-volatile data store, such as a hard drive and / or non-volatile memory. Some of the information processing systems shown in FIG. 2 show separate non-volatile data stores (server 260 uses non-volatile data store 265, mainframe computer 270 uses non-volatile data store 275, and information processing system 280 uses non-volatile data store 285). The non-volatile data stores can be components external to the various information processing systems or can be internal to one of the information processing systems.Additionally, the removable non-volatile storage device 145 may be shared among two or more information handling systems using various techniques, such as connecting the removable non-volatile storage device 145 to a USB port or other connector on the information handling systems.

[0028] FIG. 3 illustrates how writes to a database are analyzed and some errors are rejected without accessing the actual database, according to a preferred embodiment of the present invention. To simplify the illustration, only database read and write operations are illustrated. A database requester 300 issues a request to retrieve / update data from database 360. The database read request is handled by a database read operation 320 that retrieves data from database 360 ​​if the information is not more readily available from one or more database caches 340. The database read operation 320 searches cache 340 for the requested database entry. If the entry is found in the cache, the entry is returned to the requester 300 without having to actually access database 360. If the requested entry is not found in cache 340, the database read operation retrieves the requested data from database 360 ​​and updates cache 340 with the retrieved entry data. Updating the cache provides for faster access from the cache rather than the database if a subsequent request for the same entry is received.

[0029] A database write request (update or insert) is handled by database write operation 380. The database write operation also looks in cache 340 to determine if the entry already exists in the database. If the entry already exists, the update operation is allowed to proceed, but the insert operation returns an error. In this case, the insert operation's error is returned to the requester 300 without ever having to actually access database 360. Similarly, if the entry does not exist in the database (e.g., it was previously deleted), the insert operation is allowed to proceed, but the update operation causes an error to be returned to the requester 300 since there is no entry in the database to update. Again, this error is returned to the requester without ever having to actually access database 360.

[0030] FIG. 4 illustrates how an Intelligent Cache Graph Builder (ICGB) is constructed based on data in various database caches according to a preferred embodiment of the present invention. The ICGB is essentially an intelligent combination of various caches such that the ICGB cache can be searched for write operations (inserts and updates) without the need to search multiple caches. At 400, a process receives a user request. At 410, the user request is formed as an application server request. The application access is translated into a typical database access request (e.g., database reads, etc.). At 420, the Intelligent Cache Graph Builder (ICGB) operates and the process searches the ICGB data store 430 for data related to the request, updates it, and accesses the database 360 ​​to read, write, and delete data in the database, if necessary. The ICGB data includes caching data from accesses to the database 360, and the caching data is intelligently combined as ICGB data 430 that can be searched individually without searching multiple caches. An example ICGB flow is shown in box 440. In step 450, the process receives a selection query that is sent to the ICGB processor 460. In decision 470, the ICGB process determines the type of ICGB tenant for updating the cache 340. If the tenant is a T1 cache entry, the decision 470 branches to the "T1" branch and updates the T1 cache 480. On the other hand, if the tenant is a T2 cache entry, the decision 470 branches to the "T2" branch and updates the T2 cache 490.

[0031] 5 illustrates pre-optimized writes to a database based on intelligence gleaned from caches operating on replicated databases, in accordance with a preferred embodiment of the present invention. A database requester 500 issues a database request (read, write, delete, etc.) which is processed and the caches 340 (read cache 510, discard cache 520, write cache 530, etc.) corresponding to the database 360 ​​are updated accordingly.

[0032] In a replicated database environment, changes made to cache 340 are synchronized with caches 540 (e.g., read cache 550, discard cache 560, write cache 570) that correspond to replicated copies of database 580. In this manner, when a second requester makes a database request, such as an "insert" request, to replicated database 580, replicated cache 540 is consulted. Because these replicated caches are synchronized with cache 340, processes can take advantage of database operations made to database 360.

[0033] In the "insert" example above, if the entry had already been written to database 360, the insert activity would be reflected in both cache 340 and synchronized cache 540. Thus, if a second requester makes an insert request for the same entry to replicated database 580, an error will be returned by probing replicated cache 540 without ever accessing replicated database 580. This occurs even though the insert operation was originally performed in database 360 ​​and not in replicated database 580.

[0034] FIG. 6 is a flow chart illustrating steps taken to process a database request using intelligence gleaned from one or more database caches in accordance with a preferred embodiment of the present invention. The process of FIG. 6 begins at 600 and illustrates steps taken by a process to perform optimized database operations including reading, writing, and deleting data from a database. At step 604, the process receives a request from an entity such as an application, a user, a database process, etc. The process determines what type of operation is being requested (decision 608). The type of operation can be a "read" operation (processing branches to the "read" branch), a "write" operation (processing branches to the "write" branch), or a "delete" operation (processing branches to the "delete" branch).

[0035] If the operation is a "read" operation, decision 608 branches to the "read" branch and performs steps 612 through 628. In step 612, the process checks the database "read" cache for the entry. The process determines whether the entry was found in the "read" cache (decision 616). If the entry was found, decision 616 branches to the "yes" branch and in step 620 the process retrieves the requested entry from the read cache. On the other hand, if the entry was not found in the database read cache, decision 616 branches to the "no" branch and performs steps 624 and 628. In step 624, the process retrieves the requested entry from the database and in step 628 the process updates the database read cache with the entry data so that the next time the entry is requested, the data will be available in the read cache.

[0036] If the operation is a "delete" operation, decision 608 branches to the "delete" branch which performs steps 632 through 640. In step 632, the process deletes the entry from the actual database. In step 636, the process deletes the entry data, if any, from the database cache (e.g., database read cache, database write cache, etc.). In one embodiment, in step 640, the process updates a special delete cache used to track entries that have been deleted from the database. In this embodiment, the delete cache is updated to reflect that the entry has been deleted from the database.

[0037] If the operation is a "write" operation, decision 608 branches to the "write" branch and performs steps 644 through 695. The process determines what type of operation is being requested (decision 644). If the write request is an "insert" type write operation, decision 644 branches to the "insert" branch and performs steps 648 through 668. On the other hand, if the write request is an "update" type write operation, decision 644 branches to the "update" branch and performs steps 672 through 695.

[0038] Steps 648 through 668 are performed for an insert type write operation. In step 648, the process checks a cache (e.g., a database read cache) to see if the entry key already exists in the database. Based on the cache, the process determines (decision 652) whether the entry already exists in the database, thereby precluding the insertion of the same entry into the database because there would be two entries with the same primary key, which would violate database integrity rules. If the entry already exists in the database, decision 652 branches to the "yes" branch and steps 656 and 660 are performed. On the other hand, if the entry does not already exist in the database, decision 652 branches to the "no" branch and steps 664 and 668 are performed.

[0039] Steps 656 and 660 are performed if an entry already exists in the database based on the information found in the cache. In step 656, the process returns an error to the requester, which is returned without accessing the actual database at all, only the cache. In step 660, the process updates a "discard" cache. The discard cache is used to record errors that occur when writing to the database. This cache is likely to be smaller than the read cache, so it can be checked before the read cache to determine if an error has previously occurred for the entry.

[0040] Steps 664 and 668 are performed if the entry does not already exist in the database. In step 664, the process inserts the entry into the actual database, and in step 668, the process updates one or more caches (e.g., a read cache) with the entry data.

[0041] Steps 672 through 695 are performed for an update type write operation. In step 672, the process checks the cache to see if any part of the entry (e.g., the primary key) was previously deleted. The process determines whether the entry is no longer present in the database, thereby making the update impossible (decision 676). If the entry is no longer present in the database, decision 676 branches to the "yes" branch and steps 680 and 684 are performed. On the other hand, if the entry is present in the database, decision 676 branches to the "no" branch and steps 688 and 695 are performed.

[0042] Steps 680 and 684 are performed if the entry no longer exists in the database, thereby making it impossible to update the entry. In step 680, the process returns an error to the requester without actually accessing the database at all. In step 684, the process updates the "discard" cache to reflect the error that occurred on the write operation.

[0043] Steps 688 and 695 are performed if the entry exists in the database, thereby allowing the entry to be updated. In step 688, the process updates the entry in the actual database. In step 695, the process updates one or more caches (e.g., a database read cache, etc.) with the entry data.

[0044] The terms used herein are for the purpose of describing particular embodiments only and are not intended to be limiting of the present invention. As used herein, the singular forms "a," "an," and "the" are intended to include the plural unless the context clearly indicates otherwise. It should also be understood that the terms "comprises" and / or "comprising," when used herein, specify the presence of stated features, integers, steps, operations, elements, or components, or combinations thereof, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or groups thereof, or combinations thereof.

[0045] Corresponding structures, materials, acts, and equivalents of all means or step-plus-function elements in the following claims are intended to include any structure, material, or act for performing a function in combination with other claimed elements as specifically claimed. The detailed description has been provided for illustrative purposes, but is not intended to be exhaustive or to limit the invention to the disclosed form. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the invention. The embodiments have been selected and described in order to best explain the principles and practical applications of the invention and to enable those skilled in the art to understand the invention for various embodiments with various modifications as suited to the particular uses contemplated.

[0046] As will be appreciated by one skilled in the art, aspects may be embodied as a system, method, or computer program product. Accordingly, aspects may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, microcode, etc.), or an embodiment combining software and hardware aspects, all of which may be collectively referred to herein as a "circuit," "module," or "system." Aspects of the present disclosure may also take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied therein.

[0047] Any combination of one or more computer readable storage media may be used. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, apparatus or device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage media would include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read only memory (ROM), an erasable programmable read only memory (EPROM or flash memory), an optical fiber, a portable compact disk read only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the context of this specification, a computer readable storage medium may be any tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus or device. As used herein, a computer readable storage medium does not include a transitory signal.

[0048] Computer program code for carrying out operations of aspects of the present disclosure can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java®, Smalltalk, C++, and conventional procedural programming languages ​​such as the “C” programming language or similar programming languages. The program code may be executed entirely on the user's computer as a standalone software package, partially on the user's computer, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter case, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be to an external computer (e.g., via the Internet using an Internet Service Provider).

[0049] Aspects of the disclosure are described below with reference to flowchart illustrations and / or block diagrams illustrating methods, apparatus (systems), and computer program products. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing device to cause the machine to execute the instructions, such that the instructions, executed by the processor of the computer or other programmable data processing device, form means for implementing the functions / acts specified in the blocks of the flowchart and / or block diagrams.

[0050] These computer program instructions may be stored on a computer-readable medium that can direct a computer, other programmable data processing apparatus, or other device to function in a particular manner such that the instructions stored on the computer-readable medium result in an article of manufacture that includes instructions that implement aspects of the functions / operations specified in the flowchart and / or block diagram blocks.

[0051] The computer program instructions may be loaded into a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus, or other device to achieve a computer-implemented process, such that the instructions, which execute on the computer, other programmable apparatus, provide a process that implements the functions / operations specified in the flowchart and / or block diagram blocks.

[0052] While specific embodiments have been shown and described, it will be apparent to one skilled in the art that, based on the teachings herein, changes and modifications may be made without departing from the present disclosure and its broader aspects. Accordingly, the appended claims are intended to encompass within their scope all such changes and modifications as are within the true spirit and scope of the present disclosure. It is also to be understood that the present invention is defined solely by the appended claims. If a particular number of introductory claim elements is intended, such intent will be expressly recited in the claim, and those skilled in the art will recognize that, in the absence of such recitation, no such limitation exists. In a non-limiting example, as an aid to understanding, the appended claims include the use of the introductory phrases "at least one" and "one or more" to introduce claim elements. However, the use of such phrases should not be construed as implying that the introduction of a claim element by the indefinite article "a" or "an" limits a particular claim that includes such an introductory claim element to other claims that include only one such element, even if the same claim includes the introductory phrases "one or more" or "at least one" and an indefinite article such as "a" or "an." The same applies to the use of definite articles in the claims.

Claims

1. 1. A computer-implemented method implemented by an information handling system including a processor and a memory accessible by the processor, the computer-implemented method comprising: Receiving a request to write an entry to a database; checking one or more database caches for some of the entries; determining whether to write the entry to the database based on the examination; returning an error in response to determining that the entry cannot be written to the database, the error being returned without accessing the database; and and in response to determining that the entry can be written to the database, writing the entry to the database.

2. the write request is an insert request, and the computer-implemented method further comprises: examining a database read cache included in the one or more database caches; in response to determining that the portion of the entry is present in the database read cache, returning the error; 2. The computer-implemented method of claim 1, further comprising: in response to determining that the portion of the entry is not present in the database read cache, writing the entry to the database.

3. the write request is an update request, and the computer-implemented method further comprises: examining a database discard cache included in said one or more database caches; returning said error in response to determining that said portion of said entry is present in said database discard cache; 3. The computer-implemented method of claim 1, further comprising: in response to determining that the portion of the entry is not present in the database discard cache, writing the entry to the database.

4. 4. The computer-implemented method of claim 1, further comprising combining the read cache, the discard cache, and the write cache into an intelligent cache graph builder (ICGB) that includes caching data from each of the read cache, the discard cache, and the write cache before receiving the request, and wherein the database cache is examined in the ICGB.

5. 5. The computer-implemented method of claim 1, further comprising: in a replicated database environment, synchronizing the one or more database caches corresponding to the database with one or more secondary database caches, each of which corresponds to a replica of the database.

6. Returning said error, The computer-implemented method of claim 1 , further comprising writing an entry associated with the request to a database discard cache.

7. The computer-implemented method of claim 1 , wherein the portion of the entries includes a primary key.

8. one or more processors; a memory coupled to at least one of the processors; a set of computer program instructions stored in said memory and executed by at least one of said processors to perform an action, The action is Receiving a request to write an entry to a database; checking one or more database caches for some of the entries; determining whether to write the entry to the database based on the examination; returning an error in response to determining that the entry cannot be written to the database, the error being returned without accessing the database; and and in response to determining that the entry can be written to the database, writing the entry to the database.

9. the write request is an insert request, and the action is examining a database read cache included in the one or more database caches; in response to determining that the portion of the entry is present in the database read cache, returning the error; 9. The information handling system of claim 8, further comprising: in response to determining that the portion of the entry is not present in the database read cache, writing the entry to the database.

10. the write request is an update request, and the action is examining a database discard cache included in said one or more database caches; returning said error in response to determining that said portion of said entry is present in said database discard cache; 10. The information handling system of claim 8, further comprising: in response to determining that the portion of the entry is not present in the database discard cache, writing the entry to the database.

11. The action is 11. The information processing system of claim 8, 9 or 10, further comprising combining the read cache, the discard cache and the write cache into an intelligent cache graph builder (ICGB) including caching data from each of the read cache, the discard cache and the write cache before receiving the request, and the database cache is examined in the ICGB.

12. The action is 12. The information processing system of claim 8, further comprising: in a replicated database environment, synchronizing the one or more database caches corresponding to the database with one or more secondary database caches, each of which corresponds to a replica of the database.

13. Returning said error, 13. The information handling system of claim 8, further comprising writing an entry associated with the request to a database discard cache.

14. 14. An information handling system according to claim 8, wherein the portion of the entry includes a primary key.

15. 1. A computer program product comprising a computer readable storage medium containing computer program code that executes instructions to perform actions when executed by an information handling system, comprising: The action is Receiving a request to write an entry to a database; checking one or more database caches for some of the entries; determining whether to write the entry to the database based on the examination; returning an error in response to determining that the entry cannot be written to the database, the error being returned without accessing the database; and writing the entry to the database in response to determining that the entry can be written to the database.

16. the write request is an insert request, and the action is examining a database read cache included in the one or more database caches; in response to determining that the portion of the entry is present in the database read cache, returning the error; 16. The computer program product of claim 15, further comprising: in response to determining that the portion of the entry is not present in the database read cache, writing the entry to the database.

17. the write request is an update request, and the action is examining a database discard cache included in said one or more database caches; returning said error in response to determining that said portion of said entry is present in said database discard cache; 17. The computer program product of claim 15 or 16, further comprising: in response to determining that the portion of the entry is not present in the database discard cache, writing the entry to the database.

18. The action is 18. The computer program product of claim 15, further comprising combining the read cache, the discard cache, and the write cache into an intelligent cache graph builder (ICGB) that includes caching data from each of the read cache, the discard cache, and the write cache before receiving the request, and wherein the database cache is examined in the ICGB.

19. The action is 19. The computer program product of claim 15, further comprising: in a replicated database environment, synchronizing the one or more database caches corresponding to the database with one or more secondary database caches, each corresponding to a replica of the database.

20. Returning said error, 20. The computer program product of claim 15, further comprising writing an entry associated with the request to a database discard cache.

21. 21. A computer program product as claimed in any one of claims 15 to 20, wherein the portion of the entry comprises a primary key.

22. A computer program comprising program code means adapted to perform the method according to any one of claims 1 to 7 when said program is run on a computer.

Citation Information

Patent Citations

  • Cache server, control method for it, program, and information storage medium

    JP2008146380A