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.

Active Publication Date: 2018-06-22
WUHAN DOUYU NETWORK TECH CO LTD
View PDF6 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the embodiment of the present invention provides a data synchronization method, server and storage medium to solve the problem of too slow synchronization speed

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Aata synchronization method, server and storage medium
  • Aata synchronization method, server and storage medium
  • Aata synchronization method, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a data synchronization method, a server and a storage medium, which are suitable for terminal data synchronization. The method provided by the invention comprises the followingsteps: receiving an update request of a client; comparing a timestamp of the local data of the client with the timestamp of server data; when the timestamp of the local data of the client is different from the timestamp of the server data, obtaining fields of the to-be-updated data of the client according to the difference of the local data of the client and the server data, and splicing a SQL statement; and sending a set of the SQL statements to the client. In the data synchronization method, the o-be-updated data are spliced into the SQL statements on the server and are sent to the client,so that the client can directly execute the SQL statements and execute the data update operation in the server, thereby greatly improving the data synchronization speed of the client, and reducing thetraffic occupation.

Description

technical field [0001] The invention relates to the field of software development, in particular to a data synchronization method, server and storage medium. Background technique [0002] In the process of surfing the Internet, the mobile phone often needs to cache the data locally for us to read and watch. And because the data on the website server will constantly change, after a period of time, it is necessary to refresh the current page to obtain the latest data and synchronize it to the mobile client. [0003] At present, the commonly used method is to request the latest data through the http protocol, and then load the updated data to the current page. Generally, the method of incremental update is used to obtain the difference data and update the places that need to be updated. However, when the incremental update data is very large, the client needs to perform database update operations, the synchronization speed will be slower, and the traffic overhead will increase...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
CPCH04L67/1095Y02D30/50
Inventor 张振铎张文明陈少杰
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products