Data reading method and terminal
A data reading and data technology, applied in the computer field, can solve problems such as the client cannot read data, business abnormalities, etc., to achieve the effects of ensuring accuracy, reducing the amount of reading, and reducing pressure
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0059] Please refer to figure 1 , a data reading method, comprising steps:
[0060] S1. Establish a database proxy layer. When a data change operation is received, the proxy layer modifies the data in the database master node, and caches the updated updated data in the proxy layer.
[0061] Specifically, in this embodiment, there is a mysql proxy layer proxy, and all clients that need to operate the mysql database need to perform unified processing through the proxy layer.
[0062] Wherein, if the data change operation is received, changing the data in the database master node through the proxy layer, and caching the changed update data to the proxy layer includes:
[0063] After receiving the data modification operation, the proxy layer modifies the data in the master node, and caches the ID of the updated updated data and the table name of the database table where it is located in the proxy layer.
[0064] Specifically, in this embodiment, assuming that there is a master n...
Embodiment 2
[0079] A data reading method. The difference between this embodiment and Embodiment 1 is that it further defines how to confirm unsynchronized data and synchronized data, specifically:
[0080] The calculation of the delayed data volume according to the delayed time and the number of transactions per second of the database includes:
[0081] Calculate the total amount of delayed data corresponding to each time period based on the number of database transactions per second and the delay time in different time periods.
[0082] Wherein, the data contained in the delayed data amount is compared with the updated data cached in the proxy layer, and the unsynchronized data and synchronized data obtained include:
[0083] Comparing the slave node data corresponding to the total amount of delayed data in each time period with the update data cached in the proxy layer, and judging whether the slave node data is the same as the update data, if so, then The data in the time period is sy...
Embodiment 3
[0086] Please refer to figure 2 , a data reading terminal, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, and one of the first or second embodiments is implemented when the processor executes the computer program The various steps of the data reading method.
[0087]To sum up, the data reading method and terminal provided by the present invention, by establishing a database proxy layer, can change the data in the master node when receiving a data change operation, and save the changed updated data In the proxy layer, among them, the ID of the updated updated data and the table name of the database table where it is located are cached to the proxy layer, which can be cached in units of data, and can be stored in the same table according to different data when subsequent data is read. Choose different reading methods for data to reduce the pressure on the master node to a certain extent; when receiving data read ope...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com


