Caching method and device based on distributed database, medium and electronic equipment
A database and distributed technology, applied in the direction of database distribution/replication, digital data processing, structured data retrieval, etc., can solve problems such as the decline of database operation efficiency, and achieve the effect of improving storage and reading efficiency and ensuring operation efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0022] figure 1 It is a flow chart of the caching method based on the distributed database provided in the first embodiment of the application. This embodiment can be applied to the data caching of the distributed database separated from the calculation and storage. The method can be provided by the embodiment of the application based on The caching device of the distributed database is implemented, and the device can be realized by software and / or hardware, and can be integrated into devices such as intelligent terminals used for caching data of the distributed database.
[0023] Such as figure 1 As shown, the cache method based on the distributed database includes:
[0024] S110. Responding to the data reading request sent by the computing module of the computing layer.
[0025] In this solution, the distributed database system usually uses a smaller computer system, each computer can be placed in a separate place, and each computer may have a complete copy of the DBMS (Da...
Embodiment 2
[0067] figure 2 It is a schematic diagram of the caching process based on the distributed database in the second embodiment of the present invention, and the second embodiment is further optimized on the basis of the first embodiment. The specific optimization is: after the cache service module preset by the computing layer transmits the target data to the computing module, the method further includes: detecting the cached data volume of the cache service module, and obtaining the cached Data volume: perform cache cleaning on the cache service module according to the cache data volume. Wherein, details that are not described in detail in this embodiment can be found in Embodiment 1. Such as figure 2 As shown, the method includes the following steps:
[0068] S210. Respond to a data read request sent by the computing module of the computing layer.
[0069] S220. The cache service module preset by the computing layer transmits the target data to the computing module, so th...
Embodiment 3
[0091] image 3 It is a schematic structural diagram of a cache device based on a distributed database provided in Embodiment 3 of the present application, such as image 3 As shown, the caching device based on the distributed database includes:
[0092] A data read request response unit 310, configured to respond to the data read request sent by the computing module of the computing layer;
[0093] The target data transmission unit 320 is configured to transmit the target data to the computing module by the cache service module preset in the computing layer, so that the computing module can process the target data.
[0094] In this technical solution, optionally, the target data transmission unit 320 includes:
[0095] a target data judging subunit, configured to judge whether the cache service module contains target data;
[0096] The target data transmission subunit is configured to, if included, transmit the target data to the calculation module by the cache service mod...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


