A data storage method, system and query method
A data storage system and data query technology, applied in the field of network communication, can solve problems such as high data consistency requirements and large database query volume.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] figure 1 , is a schematic structural diagram of the data storage system provided by Embodiment 1 of the present invention. Such as figure 1 As shown, the data storage system may include:
[0042] Master physical database 11 , first memory database 12 , slave physical database 13 , and second memory database 14 . The first in-memory database 12, the slave physical database 13 and the second in-memory database 14 are only used for queries.
[0043] Wherein, the main physical database 11 is used to store the first type of data, the second type of data and the third type of data.
[0044] The slave physical database 13 is used to asynchronously replicate the data stored in the master physical database 11 .
[0045] The first in-memory database 12 is used to store the first type of data in the main physical database 11 by the main physical database 11; the second in-memory database 14 stores the second type of data in the main physical database 11 from the physical datab...
Embodiment 2
[0060] Based on the same technical concept, Embodiment 2 of the present invention also provides a data storage method, which can be applied to the data storage system provided in Embodiment 1 above.
[0061] figure 2 , is a flow chart of the data storage method provided in Embodiment 2 of the present invention. As shown, the data storage method may include:
[0062] S201. Receive a data writing request.
[0063] S202. Write the received data into the primary physical database, and trigger asynchronous writing from the physical database.
[0064] S203. Determine whether the received data belongs to the first type of data. If the received data belongs to the first type of data, go to step S204; otherwise, go to step S205.
[0065] S204. Synchronously write the received data into the first memory database.
[0066] S205. Determine whether the received data belongs to the second type of data. If the received data belongs to the second type of data, go to step S206, otherwis...
Embodiment 3
[0074] Based on the data storage system provided in the first embodiment above, the third embodiment of the present invention also provides a data query method.
[0075] image 3 , is a flow chart of the data query method provided in Embodiment 3 of the present invention. Such as image 3 As shown, the method may include:
[0076] S301. Receive a data query request.
[0077] S302. Determine the type of query data according to the data query request. If the query data is the first type of data, go to step S303; if the query data is the second type of data, go to step S304; if the query data is the third type of data, then go to step S305 .
[0078] S303. Query the first memory database.
[0079] S304. Query the second memory database.
[0080] S305. Query the secondary physical database.
[0081] After receiving the data query request, the proxy layer can perform business encapsulation on the table name and data type in the received data query request. The data type ma...
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