Method and apparatus for reading data from database
A technology for reading data and data reading, applied in the database field, can solve problems such as tediousness, system complexity, and affecting database performance, and achieve the effects of reducing complexity, reducing pressure, and realizing real-time performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] Embodiments of the present invention provide a method for reading data from a database, such as figure 1 As shown, the method includes:
[0031] 101. According to the data content to be cached by the cache node, establish a data read control table and create a message queue for the data content to be cached.
[0032] Wherein, the data reading control table includes: a cache node information table and a cache node data table. The cache node information table includes a cache node ID and a cache node identifier, and the cache node data table includes a data table identifier, a home cache node identifier, and an actual read object identifier.
[0033] 102. When the application program updates the data in the database, the trigger corresponding to the data table of the updated data writes the updated data information of the data table and the identifier of the cache node to be cached in the data table into the data table in the corresponding message queue.
[0034] 103. ...
Embodiment 2
[0037] Embodiments of the present invention provide a method for reading data from a database, such as figure 2 As shown, the method includes:
[0038]201. According to the data content that the cache node needs to cache, establish a data reading control table and create a message queue for the data content that needs to be cached, the data reading control table includes a cache node information table and a cache node data table, the The cache node information table includes a cache node ID and a cache node identifier, and the cache node data table includes a data table identifier, a home cache node identifier, and an actual read object identifier.
[0039] Wherein, according to the data content that the cache node needs to cache, creating a message queue for the data content that needs to be cached can be implemented by the following method, the method includes: according to the data content that the cache node needs to cache, create a message queue for different types of C...
Embodiment 3
[0063] An embodiment of the present invention provides a device for reading data from a database, such as Figure 5 As shown, the device includes: a creation unit 31 , a creation unit 32 , a writing unit 33 , and a reading unit 34 .
[0064] The establishment unit 31 is configured to, according to the data content to be cached by the caching node, create a data read control table for the data content to be cached.
[0065] The creation unit 32 is configured to create a message queue for the data content to be cached according to the data content to be cached by the cache node. Specifically, the creating unit 32 is configured to create different message queues for different types of data content to be cached according to the data content to be cached by the cache node.
[0066] The writing unit 33 is configured to write the update data information of the data table and the cache node identifier for caching the data table into the trigger corresponding to the data table of the ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com