WO2014173122A1 - Data synchronization method, apparatus, and system - Google Patents
Data synchronization method, apparatus, and system Download PDFInfo
- Publication number
- WO2014173122A1 WO2014173122A1 PCT/CN2013/087689 CN2013087689W WO2014173122A1 WO 2014173122 A1 WO2014173122 A1 WO 2014173122A1 CN 2013087689 W CN2013087689 W CN 2013087689W WO 2014173122 A1 WO2014173122 A1 WO 2014173122A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- information
- server
- synchronization
- different
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0602—Systems characterised by the synchronising information used
- H04J3/0605—Special codes used as synchronising signal
Definitions
- the present application claims priority to Chinese Patent Application No. 201310147019.4, entitled “A Data Synchronization Method, Apparatus and System", filed on April 24, 2013, the entire contents of which is incorporated herein by reference.
- the present invention relates to the field of communication information technologies, and in particular, to a data synchronization method, apparatus, and system. Background technique
- each operation records the corresponding log management, which will cause a relatively large burden on the client's system.
- the user's mobile phone runs slowly, the power consumption is large, the response is slow, and it is difficult for users to accept.
- Each operation is eventually synchronized to the server (the server is the same), which undoubtedly increases the load on the server operation and processing, and therefore prolongs the entire synchronization process. This can lead to a higher risk of synchronization failure for a mobile Internet.
- the mobile Internet network is complex and variable, and is also subject to traffic restrictions. If there is an increase in unnecessary operations, then there will be a lot of redundant data in the final data packet, which will inevitably lead to a larger data packet and consume the user's valuable mobile phone traffic.
- the scheme of merging logs is well optimized, it cannot avoid a problem.
- the client is required to capture data operations and complete log records. For example, if the user modifies an address book on the mobile phone, then it is required to generate a log matching the synchronization requirement on the mobile phone. And it is clear that the address book belongs to the mobile phone system, and does not belong to the client of the synchronization system.
- an object of the present invention is to provide a data synchronization method, which solves the problem that the synchronization client can accurately find the data that needs to participate in synchronization without the data operation log, and has the shortcut, Real-time, efficient and adaptable.
- a second object of the present invention is to provide a data synchronizing apparatus.
- a third object of the present invention is to propose a data synchronization system.
- an embodiment of the first aspect of the present invention provides a data synchronization method, including the steps of: acquiring first data to be synchronized, and acquiring second data, wherein the second data is based on a last time
- the synchronization result of the synchronization process is obtained, wherein the data information in the first data includes at least a data number, a data content, and data feature information; and the data information in the second data includes at least a data number and data feature information; according to the data number and the data feature Determining whether there is different data information in the first data and the second data, if at least one of the data number and the data feature information included in the at least one data information exists in one of the first data and the second data, Different from the corresponding information included in any of the first data and the second data, determining that different data information exists in the first data and the second data; when determining the first data and the second data The different data information that will be judged when there is different data information Send to the server to synchronize the corresponding data stored
- the data feature information is unique identification information determined based on at least one of data content, timestamp information, and data length information of the data message.
- the that the server synchronously updates the corresponding data includes: when the data information in the second data does not include the data information in the first data When the data is numbered, the data information corresponding to the data number in the first data is added to the corresponding data stored by the server.
- the server when the corresponding data is updated by the server, includes: when the first data and the second data have data with the same data number but different data feature information In the information, the data information corresponding to the data number in the first data is replaced with the data information having the same data number in the corresponding data stored by the server.
- the server when the corresponding data is updated by the server, includes: when the data information in the first data does not include the data number of the data information in the second data And deleting the data information corresponding to the data number from the corresponding data stored by the server.
- the server The stored corresponding data is synchronously updated to obtain the third data after the current synchronization process, and the method further includes: synchronously updating the first data by using the third data of the current synchronization process returned by the server.
- the method further includes: generating the second data according to the data number and the data feature information of the data information in the third data returned by the server.
- the present invention further provides a data synchronization apparatus, including:
- An acquiring unit configured to acquire first data to be synchronized, and obtain second data; wherein, the data structure of the data information in the first data includes at least a data number, data content, and data feature information; Obtaining, according to the synchronization result of the last synchronization process, the data information in the second data includes at least the data number and the data feature information;
- a determining unit configured to determine, according to the data number and the data feature information, whether different data information exists in the first data and the second data, if at least one data information exists in any one of the first data and the second data At least one of the included data number and the data characteristic information is different from the corresponding information included in any of the first data and the second data, and the first data and the second data are determined to exist.
- Different data information configured to determine, according to the data number and the data feature information, whether different data information exists in the first data and the second data, if at least one data information exists in any one of the first data and the second data. At least one of the included data number and the data characteristic information is different from the corresponding information included in any of the first data and the second data, and the first data and the second data are determined to exist.
- Different data information configured to determine, according to the data number and the data feature information, whether different data information exists in the first data and the second data, if at least one data information exists in any one of the first data and the second data, if at
- a sending unit configured to: when determining that different data information exists in the first data and the second data, send the determined different data information to the server, to perform synchronization update on the corresponding data stored by the server.
- the device further includes: a data feature information generating unit, configured to: according to the data content, the timestamp information, and the data length of the data information At least one of the degree information generates data feature information.
- the device further includes: a synchronization unit, configured to synchronously update the first data by using the third data that has been processed by the current synchronization returned from the server The third data is obtained by the server synchronously updating the corresponding data according to the different data sent by the mobile terminal.
- the device further includes: a generating unit, configured to generate, according to the data number and data feature information of the data information in the third data returned by the server Two data.
- the present invention further provides a data synchronization system, including:
- the mobile terminal includes any one of the data synchronization devices provided by the second aspect; and the server is configured to perform synchronous update on the corresponding data stored in the server by using the data information sent by the receiving terminal.
- the data synchronization system of the embodiment of the present invention based on the data number and the data feature information, the data that needs to be synchronized is obtained, and the synchronization of the local and server data is completed.
- the system solves the problem that the synchronization client can accurately find the data that needs to participate in synchronization without the data operation log, and has the advantages of quickness, real-time, high efficiency and applicability.
- the present invention further provides a computer readable medium having program code executable by a processor, which is applied to a mobile terminal, the program code causing the processor to perform the following steps: acquiring first data to be synchronized, And acquiring the second data; the data information in the first data includes at least a data number, a data content, and data feature information; the second data is generated according to a synchronization result of the last synchronization process, where the data information in the second data includes at least data Number and data feature information; determining, according to the data number and the data feature information, whether different data information exists in the first data and the second data, if at least one data information is included in one of the first data and the second data At least one of the data number and the data characteristic information, and any one of the other of the first data and the second data According to different information included in the information, it is determined that different data information exists in the first data and the second data; when it is determined that different data information exists in the first data and the second data, the different The data information is sent
- FIG. 2 is a schematic structural diagram of a data synchronization apparatus according to an embodiment of the present invention
- FIG. 3 is a schematic structural diagram of a data synchronization system according to an embodiment of the present invention
- FIG. 4 is a specific flowchart of a data synchronization method according to an embodiment of the present invention. detailed description
- the terms “installation”, “connected”, “connected”, “fixed” and the like should be understood broadly, and may be either a fixed connection or a detachable connection, unless otherwise explicitly stated and defined. , or connected integrally; can be mechanical or electrical; can be directly connected, or indirectly connected through an intermediate medium, can be the internal communication of the two components.
- installation can be understood by those skilled in the art according to specific circumstances.
- first and second are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining “first”, “second” may explicitly or implicitly include one or more of the features. In the description of the present invention, “a plurality” means two or more, unless specifically defined otherwise.
- Step S101 is to acquire first data to be synchronized
- Step S102 is to determine whether the first data and the second data have different data information based on the data number and the data feature information; if there is at least one data information included in the data of the first data and the second data Determining that at least one of the data and the data characteristic information is different from the corresponding information included in the arbitrary data information of the other data of the first data and the second data, determining that different data information exists in the first data and the second data .
- Step S103 when it is determined that different data information exists in the first data and the second data, the determined different data information is sent to the server.
- Step S104 is to perform synchronous update on the corresponding data stored in the server, so as to obtain the third data after the current synchronization processing.
- the data structure of the data information in the first data and the third data includes at least a data number, data content, and data feature information
- the second data is obtained based on the last data synchronization process.
- the data structure of the data information generated by the third data includes at least a data number and data feature information.
- the data feature information is unique identification information determined based on at least one of data content, timestamp information, and data length information of the data message. Thereby, the uniqueness and accuracy of the data feature information is improved.
- the synchronous updating of the corresponding data stored in the server to obtain the third data after the current synchronization processing includes: the different data information determined from the first data and having the data number When the second data does not exist, the data information is added to the corresponding data stored in the server.
- performing synchronous update on the corresponding data stored in the server to obtain the third data after the current synchronization process includes: the different data information determined from the first data, and in the second data When there is data information having the same data number but different data characteristic information, the server data is replaced by the different data information.
- the stored data has the same data number in the corresponding data.
- the synchronous updating of the corresponding data stored in the server to obtain the third data after the current synchronization processing includes: the different data information determined from the second data and having the data number When the first data does not exist, the data information having the same data number is deleted from the corresponding data stored in the server.
- the first data is synchronized using the third data after the current synchronization process returned from the server; and the second data is generated based on the returned third data.
- the data information in the first data, the second data, and the third data may be a plurality of pieces or may be 0 pieces.
- the data synchronization method of the embodiment of the present invention based on the data number and the data feature information, the data that needs to be synchronized is obtained, and the synchronization of the local and server data is completed. The method solves the problem that the synchronization client can accurately find the data that needs to participate in synchronization without the data operation log, and has the advantages of quickness, real time, high efficiency and applicability.
- FIG. 2 is a block diagram showing the structure of a data synchronizing apparatus 20 according to an embodiment of the present invention.
- the data synchronization device 20 of the embodiment of the present invention includes: an obtaining unit 201, configured to acquire first data to be synchronized; and a determining unit 202, configured to determine, according to the data number and the data feature information, whether the first data and the second data are There is different data information; if at least one of the included data number and the data feature information exists in one of the first data and the second data, and any data in the other data of the first data and the second data The corresponding information included in the information is different, and it is determined that different data information exists in the first data and the second data; and the sending unit 203 is configured to: when determining that different data information exists in the first data and the second data, The determined different data information is sent to the server to synchronously update the corresponding data stored in the server to obtain the third data after the current synchronization processing; and a generating unit 204 is configured to obtain the first data after the last data synchronization processing The third data generates the second data.
- the data synchronization device 20 further includes a data feature information generating unit 205 for generating data feature information based on at least one of data content, time stamp information, and data length information of the data message.
- the data synchronization device 20 further includes a synchronization unit 206 for synchronizing the first data with the third data after the current synchronization process returned from the server.
- a data synchronization apparatus based on a data number and data feature information, Synchronize data and complete synchronization of local and server data. The device solves the problem that the synchronization client can accurately find the data that needs to participate in synchronization without the data operation log, and has the advantages of quickness, real-time, high efficiency and applicability.
- FIG. 3 is a data synchronization system 30 in accordance with an embodiment of the present invention.
- the data synchronization system 30 of the embodiment of the present invention includes: a mobile terminal 301, including a data synchronization device 20; and a server 302, configured to synchronously update corresponding data stored in the server by using the received different data information to obtain current synchronization processing. After the third data.
- the server 302 after receiving the different data information sent by the sending unit 203 of the data synchronization device 20, the server 302 performs synchronous update on the corresponding data stored in the server 302 to obtain the third data after the current synchronization processing, and The third data after the current synchronization processing is returned to the data synchronization device 20, so that the synchronization unit 206 of the data synchronization device 20 synchronizes the first data to achieve the purpose that the first data is consistent with the third data.
- the data synchronization system of the embodiment of the present invention based on the data number and the data feature information, the data that needs to be synchronized is obtained, and the synchronization of the local and server data is completed.
- the system solves the problem that the synchronization client can accurately find out the data that needs to participate in synchronization without the data operation log, and has the advantages of quickness, real time, high efficiency and applicability.
- FIG. 4 a specific flowchart for implementing the data synchronization method.
- Step S401 is to initiate a data synchronization request. Initiating the data synchronization request may be triggered by the user's operation, or may be automatically initiated by the mobile terminal 301 or the server 302 periodically according to a predetermined time period.
- Step S402 acquires the first data to be synchronized for the obtaining unit 201. The first data is obtained locally from the mobile terminal 301.
- Step S403 is to determine whether there is different data information in the first data and the second data based on the data number and the data feature information; if the data number and the data feature information are included in one of the first data and the second data At least one of the first data and the other information in the other data of the first data and the second data are different, and it is determined that the first data and the second data have different data information.
- the data structure of the data information in the first data and the third data includes at least a data number, data content, and data feature information
- the second data is based on the last data synchronization process.
- the data structure of the data information in the second data generated by the obtained third data includes at least a data number and data feature information.
- the data feature information is unique identification information determined based on at least one of data content, timestamp information, and data length information of the data message.
- the data feature information is calculated by calculating at least one of data content, time stamp information, and data length information of the data message according to a specific formula.
- the data information in the first data, the second data, and the third data may be a plurality of pieces or may be 0 pieces. Specifically, it is determined whether there is data information in the first data that is different from at least one of the included data number and the data feature information and any data information in the second data, and whether the presence or absence of the second data includes At least one of the data number and the data characteristic information is different from the data information of any of the first data.
- Step S404 When the determined different data information is from the first data and the data number has no data in the second data, the server adds the data information corresponding to the data number to the corresponding data stored by the server.
- step S405 when the determined different data information is from the first data, and the data information having the same data number but different data feature information exists in the second data, the data corresponding to the data number in the first data is used. The information replaces the data information having the same data number in the corresponding data stored by the server.
- Step S406 If the determined different data information is from the second data and the data number that is included does not exist in the first data, the data information corresponding to the data number is deleted from the corresponding data stored by the server.
- Step S407 The server 302 returns the third data after the synchronization processing to the mobile terminal 301.
- Step S408 The mobile terminal 301 synchronizes the first data according to the returned third data.
- Step S409 is to generate second data according to the data number of the first data after synchronization and the data feature information. Specifically, the mobile terminal stores the data number and the data feature information of the first data after the synchronization is completed as the second data, so that when the first data is synchronized next time, the data needs to be synchronized according to the second data. Data information.
- the synchronous data identification process is as follows:
- Example 2 Example 2:
- the synchronous data identification process is as follows:
- the server adds the data information to the corresponding data stored in the server.
- the server obtains the third data, and the server returns the third data to the mobile terminal, and the mobile terminal updates the first data according to the third data to implement data synchronization.
- the first data is synchronized with the third data.
- the mobile terminal stores the data number and data feature information of the first data after the synchronization is completed as the second data.
- the data synchronization method of the embodiment of the present invention based on the data number and the data feature information, obtains the current requirement Synchronized data, complete synchronization of local and server data.
- the method solves the problem that the synchronization client can accurately find the data that needs to participate in synchronization without the data operation log, and has the advantages of quickness, real-time, high efficiency and applicability.
- Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a particular logical function or process.
- a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or apparatus, or in conjunction with such an instruction execution system, apparatus, or apparatus. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
- the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method proceeds to obtain the program electronically and then store it in computer memory.
- portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
- multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
- a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
- each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
- the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
- the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
- the above-mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
Claims
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310147019.4A CN103237075B (en) | 2013-04-24 | 2013-04-24 | A kind of method of data synchronization, Apparatus and system |
CN201310147019.4 | 2013-04-24 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014173122A1 true WO2014173122A1 (en) | 2014-10-30 |
Family
ID=48885091
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2013/087689 WO2014173122A1 (en) | 2013-04-24 | 2013-11-22 | Data synchronization method, apparatus, and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103237075B (en) |
WO (1) | WO2014173122A1 (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103237075B (en) * | 2013-04-24 | 2016-07-06 | 广州市动景计算机科技有限公司 | A kind of method of data synchronization, Apparatus and system |
CN103701913B (en) * | 2013-12-30 | 2017-02-22 | 广州爱九游信息技术有限公司 | Data synchronization method and device |
CN104794114B (en) * | 2014-01-16 | 2018-04-03 | 阿里巴巴集团控股有限公司 | A kind of data processing method and device |
CN106610763B (en) * | 2015-10-26 | 2020-11-20 | 阿里巴巴集团控股有限公司 | Method and device for synchronizing user operation across screens |
CN107016548B (en) * | 2016-12-09 | 2022-01-28 | 创新先进技术有限公司 | Client system, information processing method, reading and writing method and device |
CN109165229B (en) * | 2018-08-23 | 2020-06-05 | 京东数字科技控股有限公司 | Method, device, equipment and storage medium for checking local block synchronization |
CN110225119B (en) * | 2019-06-13 | 2022-09-16 | 平安科技(深圳)有限公司 | Data synchronization method and related equipment |
CN110990481A (en) * | 2019-10-22 | 2020-04-10 | 珠海许继芝电网自动化有限公司 | Synchronization method and system for historical data of power distribution automation system |
CN117520460B (en) * | 2024-01-05 | 2024-04-02 | 成都安世赛斯特软件技术有限公司 | Custom number generation management method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050091284A1 (en) * | 2003-10-23 | 2005-04-28 | Microsoft Corporation | Composite view |
CN101409614A (en) * | 2007-10-12 | 2009-04-15 | 华为技术有限公司 | Data synchronization method, system and equipment |
CN102291453A (en) * | 2011-08-09 | 2011-12-21 | 中兴通讯股份有限公司 | Data synchronization method and device |
CN103237075A (en) * | 2013-04-24 | 2013-08-07 | 广州市动景计算机科技有限公司 | Data synchronizing method, device and system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1852160A (en) * | 2005-12-30 | 2006-10-25 | 华为技术有限公司 | Method for realizing data slow synchronization and system thereof |
CN101923571B (en) * | 2010-07-29 | 2013-05-01 | 中兴通讯股份有限公司 | Method and device for managing terminal data logging |
-
2013
- 2013-04-24 CN CN201310147019.4A patent/CN103237075B/en active Active
- 2013-11-22 WO PCT/CN2013/087689 patent/WO2014173122A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050091284A1 (en) * | 2003-10-23 | 2005-04-28 | Microsoft Corporation | Composite view |
CN101409614A (en) * | 2007-10-12 | 2009-04-15 | 华为技术有限公司 | Data synchronization method, system and equipment |
CN102291453A (en) * | 2011-08-09 | 2011-12-21 | 中兴通讯股份有限公司 | Data synchronization method and device |
CN103237075A (en) * | 2013-04-24 | 2013-08-07 | 广州市动景计算机科技有限公司 | Data synchronizing method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN103237075A (en) | 2013-08-07 |
CN103237075B (en) | 2016-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2014173122A1 (en) | Data synchronization method, apparatus, and system | |
CN106874389B (en) | Data migration method and device | |
US11848903B2 (en) | Method and system for synchronizing instant messages between multiple clients | |
JP6515172B2 (en) | Prioritizing content item synchronization based on sharing | |
JP6186015B2 (en) | Share content items | |
JP6381776B2 (en) | Generating unregistered user accounts for sharing content items | |
KR101750429B1 (en) | Document editing system and method for collaborative editing | |
TWI535327B (en) | Apparatus, server and method of data synchronization between clients of communication account | |
EP3125501B1 (en) | File synchronization method, server, and terminal | |
US20150227605A1 (en) | Information processing terminal, synchronization control method, and computer-readable recording medium | |
WO2013177925A1 (en) | Data synchronization method, system and device | |
WO2019019642A1 (en) | Application information pushing method and apparatus, and computer device and storage medium | |
CN103634406A (en) | File synchronization method and terminal thereof | |
WO2019019670A1 (en) | Application accessing method and device, computer apparatus, and storage medium | |
WO2017113694A1 (en) | File synchronizing method, device and system | |
US10021166B2 (en) | Mechanism for building normalized service model to expose web APIs | |
CN105991744B (en) | Method and apparatus for synchronizing user application data | |
CN111061745A (en) | Data synchronization system and method | |
TW201423420A (en) | Data synchronization system and method for synchronizing data | |
CN110489483B (en) | Data synchronization method, device, computer equipment and storage medium | |
JP5552720B2 (en) | Storage system, storage server, user data sharing method, and program | |
CN114816225A (en) | Management method and device of storage cluster, electronic equipment and storage medium | |
CN107609197A (en) | A kind of method of data synchronization, data synchronization unit and mobile terminal | |
CN102932513B (en) | A kind of business card maintaining method, device and equipment | |
WO2016026291A1 (en) | Wireless data card, communication system, data synchronization method and computer storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13883078 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 13883078 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 02.05.2016) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 13883078 Country of ref document: EP Kind code of ref document: A1 |