Aata synchronization method, server and storage medium
A data synchronization and server technology, applied in advanced technologies, electrical components, transmission systems, etc., can solve problems such as slow synchronization speed, reduce traffic usage, improve data synchronization speed, and reduce memory consumption.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] see figure 1 , the business sequence diagram for implementing data synchronization provided by the embodiment of the present invention includes: a client 10, a server 20, a server database 30, and data interaction and processing among them.
[0034] The client 10 is a program installed on a terminal device to provide local services for users. It needs to cooperate with the server to run, and can exchange data with the server through the Internet. In the embodiment of the present invention, the client 10 requests data from the server 20, and sends the request through S1. After receiving the request, the server 20 first analyzes the request data and provides different services for different requests. After querying the database, the database will be queried through S2 to determine the difference data.
[0035] The server end 20 can process the client request and provide services. Preferably, in the embodiment of the present invention, after the server end 20 receives the...
Embodiment 2
[0041] see figure 2 , a schematic flowchart of a data synchronization method provided by an embodiment of the present invention, including the following steps:
[0042] S201. After receiving an update request from the client, acquire the timestamp of the local data of the client.
[0043]The client can provide users with local services. After connecting to the Internet, it can request data from the server and obtain the data provided by the server. Live video on the server. The update request is a request message transmitted through the network, the message is sent to the server, the server parses the message data, and reads the content of the request. The update request is provided with a trigger condition. For example, the user performs a refresh operation, and the program will request data by default. renew. The timestamp refers to the earliest time that a piece of data exists, and is usually a sequence of characters.
[0044] Optionally, a field for recording the earl...
Embodiment 3
[0055] exist figure 2 on the basis of combining image 3 Step S203 is described in detail, that is, the process of splicing SQL statements, as follows:
[0056] image 3 The flowchart of step S203 provided for the embodiment of the present invention includes S301, S302, and S303, and the above steps do not imply the sequence of execution.
[0057] The S301. Comparing the client data table with the server data table, and acquiring changed entries in the client data table, where the entries are fields that need to be updated.
[0058] When it is determined that the data of the client and the server are not synchronized, by comparing the client data table with the server data table, the changed data can be found, and then the entry that needs to be changed can be determined, such as the client table and the server data table. The name of the anchor in the server table is different. To change this item in the client table, directly find the name of the entry, and of course det...
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