CN103002010B - A kind of data-updating method based on incremental data, device and system - Google Patents

A kind of data-updating method based on incremental data, device and system Download PDF

Info

Publication number
CN103002010B
CN103002010B CN201210421027.9A CN201210421027A CN103002010B CN 103002010 B CN103002010 B CN 103002010B CN 201210421027 A CN201210421027 A CN 201210421027A CN 103002010 B CN103002010 B CN 103002010B
Authority
CN
China
Prior art keywords
data
server
renewal
processing equipment
incremental
Prior art date
Application number
CN201210421027.9A
Other languages
Chinese (zh)
Other versions
CN103002010A (en
Inventor
薛向旭
江宽
吴浩
刘武
刘启明
王有存
任寰
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Priority to CN201210421027.9A priority Critical patent/CN103002010B/en
Publication of CN103002010A publication Critical patent/CN103002010A/en
Application granted granted Critical
Publication of CN103002010B publication Critical patent/CN103002010B/en

Links

Abstract

The invention discloses a kind of methods, devices and systems for carrying out data renewal, described system includes uploading data processing equipment, downloading data processing equipment and server, upload data processing equipment and download the data preserving current version in data processing equipment, upload data processing equipment for according to the data genaration incremental data after the data before updating and renewal, and this incremental data is sent to this server, wherein incremental data refers to the data relative to the change of the data before updating of the data after updating;Server receives and preserves this incremental data, and is sent to this incremental data download data processing equipment;Download data processing equipment to be used for receiving incremental data from server, and the data to be updated preserved according to this download data processing equipment produce updated data with this incremental data.The present invention can reduce shared network bandwidth when data update, improve speed, efficiency and the real-time updated.

Description

A kind of data-updating method based on incremental data, device and system
Technical field
The invention belongs to the communications field, be specifically related to the transmission of digital information, a kind of number based on incremental data According to update method and device.
Background technology
In the computing architecture that network communicating system realizes, it is often necessary to transmit and respectively between different computational entities Individual computational entity stores the data of different editions.Such as, as user, the collection of the browser of its PC (PC) is entered When row changes, the most once change the collection that will produce different editions.Carried out with client by server at needs The emerging calculating application synchronized, usually requires that the transmission carrying out data between clients and servers, and in each calculating Storage and real-time update data, the information of the most described collection in entity.The most exemplarily illustrate to deposit in the prior art Several synchronizations and the scene of more new data.
Fig. 1 is the scene schematic diagram of synchrodata between multiple clients in prior art.This scene is: same user Different clients (such as mobile phone and PC) can be logged in, in order to carry out data sharing with synchronization, each client all with a service Device is connected.When user have changed a certain data, such as collection, then this visitor when logging in one of them client (such as PC) The collection of a more redaction will be stored on the end of family.It is somebody's turn to do in order to this user can use when next time logs in another client Updated collection, the collection of this renewal is first sent to server by this client, and, when this user logs in another visitor During the end of family, the collection of this renewal is just sent to another client (such as mobile phone) that this user currently logs in by this server. In this scenario, though the data generation minor variations of a client, it is also desirable to by data (or the full dose after whole renewal Data after renewal) transmit between clients and servers.This is huge for the data or data volume needing frequent updating Big data, can take the network bandwidth undoubtedly greatly, expend ample resources.
Fig. 2 is the scene schematic diagram of synchrodata between principal and subordinate's server in prior art.This scene is, data sharing Network includes master server and from server, and when data in master server there occurs change, this master server needs Data after whole renewal are sent to from server.Part number in these data e.g. one file, or file According to.Equally, this scene does not differentiates between the size of data renewal amount yet, but directly by the data after whole renewal at master and slave clothes Transmit between business device.
As can be seen here, in prior art, pole needs the data-updating method of a kind of more resource intensivism, to reduce data more The bandwidth occupancy newly brought and resource consumption.
Summary of the invention
In view of the above problems, it is proposed that the present invention in case provide one overcome the problems referred to above or at least in part solve on State data-updating method based on incremental data and the device of problem.
According to one aspect of the present invention, it is provided that a kind of by the method for data processing equipment Share update data, described Data processing equipment storage has the data before renewal and the data after renewal, and can carry out data exchange with a server, The method comprises the steps: that described data processing equipment is according to the data genaration increment number after the data before updating and renewal According to, and this incremental data is sent to this server, in order to this server is connected to the data processing equipment of server to other Sharing the data after this renewal, wherein said incremental data refers to the change relative to the data before updating of the data after updating Data.
The present invention also proposes a kind of data-updating method based on server, and described server can process with some data Device carries out data exchange, and the method comprises the steps: that described server receives data from a data processing equipment, and will These data are saved in this server, and these data include that incremental data, described incremental data refer in this data processing equipment more Data after Xin are relative to the data of the change of data before updating;At least some of of the data that described server is preserved sends out Delivering to another data processing equipment, this another data processing equipment is raw according to its data to be updated and the data received Become the data being updated over.
The present invention also proposes a kind of method obtaining more new data, is applied in data processing equipment, and described data process Preserving data to be updated in device, and it can carry out data exchange with a server, the method includes: described data Processing means receives data from described server, and described data include incremental data;Described data processing equipment is protected according to it The data to be updated deposited and these data received produce the data being updated over, wherein, after described incremental data refers to update Data relative to the data of change of the data before updating.The present invention also proposes a kind of data processing equipment, for sharing more New data, described data processing equipment storage has the data before renewal and the data after renewal, and can enter with a server Row data exchange, and this data processing equipment includes: incremental data generation module, after according to the data before updating and renewal Data genaration incremental data, wherein said incremental data refers to the number relative to the change of the data before updating of the data after updating According to;Communication module, is used for transmitting data to described server, and described data include this incremental data.The present invention also proposes one Planting data processing equipment, be used for receiving more new data, described data processing equipment storage has data to be updated, and can be with one Individual server carries out data exchange, and this data processing equipment includes: communication module, for receiving data, institute from described server State data and include that incremental data, described incremental data refer to the number relative to the change of the data before updating of the data after updating According to;Data update module, for producing, with these data got, the data being updated over according to these data to be updated.The present invention Also proposing a kind of server, be used for providing data to update service, described server can be with some data processing equipment numbers According to exchange, this server includes: communication module, and for receiving data from a data processing equipment, described data include increment Data, described incremental data refers to the data relative to the change of the data before updating of the data after updating;Data memory module, The data received from described data processing equipment for preservation.
The present invention also proposes a kind of system for carrying out data renewal, including uploading data processing equipment, downloading data Processing means and server, described in upload data processing equipment and download in data processing equipment and preserve data, and all can Carry out data exchange with this server, it is characterised in that upload described in: data processing equipment for according to update before data and Data genaration incremental data after renewal, wherein said incremental data refers to that the data after updating are relative to the data before updating The data of change, described in upload data processing equipment and be additionally operable to transmit data to this server;Described server receives and protects Deposit this data, and these data will be sent to described download data processing equipment at least partially;Described download data process Device is for receiving described data from described server, and produces according to the data of data to be updated and this reception and be updated over Data.Data-updating method according to the present invention and system are based on incremental data, owing to the data volume of incremental data is less than full dose Renewal after data, therefore, it is possible to be greatly reduced shared network bandwidth when data update, improve speed, the efficiency updated And real-time.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of description, and in order to allow above and other objects of the present invention, the feature and advantage can Become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, and is not considered as the present invention Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical parts.In the accompanying drawings:
Fig. 1 is the scene schematic diagram of synchrodata between multiple clients in prior art;
Fig. 2 is the scene schematic diagram of synchrodata between master and slave server in prior art;
Fig. 3 is the basic step flow chart of the data-updating method based on incremental data of the present invention;
Fig. 4 is the scene schematic diagram of the data-updating method based on incremental data of the first embodiment of the present invention;
Fig. 5 is the flow chart of the data-updating method based on incremental data of the first embodiment of the present invention;
Fig. 6 is the configuration diagram of the data update system based on incremental data of the first embodiment of the present invention;
Fig. 7 is the flow chart of the data-updating method based on incremental data of the second embodiment of the present invention;
Fig. 8 is the configuration diagram of the data update system based on incremental data of the second embodiment of the present invention.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows the disclosure Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should be by embodiments set forth here Limited.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
The present invention proposes a kind of new data-updating method and corresponding device, and methods and apparatus of the present invention is suitable for application In any data handling equipment with data-handling capacity, including fixing or the data handling equipment of movement, such as individual's electricity Brain (PC), server, palm PC, smart mobile phone etc..
Assuming that storage has a data file in a data handling equipment, this data file may constantly need to update, Hereinafter referred to as data.In order to avoid the data after the whole renewal of transmission data before substituting renewal when data update, The present invention proposes the concept of " incremental data ".
Before explanation " incremental data ", first we define the concept of " the full dose data " in the present invention.We will be complete Amount data are defined as: be independent of the data that these data to be updated just can be updated by data to be updated.It is to say, only Full dose data are passed in data handling equipment, and it is replaced data to be updated, just complete the renewal of data, and not Need to carry out any other operation.Visible, the data-updating method of prior art is exactly the renewal directly using full dose in fact After data replace data to be updated and obtain the method for data being updated over of full dose.Such as, data to be updated are one Collection, this collection includes multiple collection project, then, the data after the renewal of a full dose are exactly one and are different from former receipts Hide the new collection of folder.This new collection can comprise some projects in original collection, it is also possible to does not the most comprise original Project in collection, as long as this new collection is replaced original collection, just completes data and updates.Use full dose Data after renewal carry out the benefit of data renewal and are what the data content without the concern for initial data is, the most no matter its It is what kind of data, can directly carry out data renewal.But, as it was previously stated, its shortcoming to be data transfer big, waste System resource.
Thus, the present invention proposes data-updating method based on " incremental data ", device and system, and the present invention proposes " incremental data " refers to that the data after updating are relative to the data of the change of data before updating.What so-called change represented is to update After data with update before the difference of data.It is to say, incremental data is the data before updating and the data after renewal Carry out the data that certain computing obtains.And specifically use which kind of computing, then can determine according to the type of data.
If the data before Geng Xining and the data after renewal are numeral, the most described operation method can be simple mathematics fortune Calculate.Such as, the data before updating are 2, and the data after renewal are 3, then incremental data can deduct equal to the data after updating Data before renewal, i.e. incremental data are=3-2=1.
If the data before Geng Xining and the data after renewal are collection, the most described operation method can be that one compares calculation Method.Such as, the collection before renewal includes " network address 1 ", " network address 2 ", " network address 3 ", and the collection after updating include " network address 1 ", " network address 2 ", " network address 3 " and " network address 4 ", then via comparing calculating, obtain incremental data for " network address 4 ".
Certainly, example above is the situation that data type is fairly simple, and the present invention can expand to any data class Type, simply by the presence of the suitable computational methods between the data after the data before updating and renewal, all can pass through this calculating side Method obtains incremental data.
In current network service, for data handling equipment and data transmission system, most widely used number According to being divided into two kinds, one is descriptive data, and another kind is binary data.Descriptive data is with the language that can be more readily understood Speech describes the data of information, it is adaptable to man-machine interaction, such as natural language data, hypertext language data (such as HTML, XML and Json etc.) and the program code data of high-level programming language (C language, Javascript etc.), etc..For descriptive Data, the present invention can select computational methods according to existing data form, it is also possible to sets in existing data form Special data label, is beneficial to the carrying out calculated.Such as, for the data of XML format, can be according to existing in XML file Label calculate incremental data, it is also possible to oneself definition for incremental data calculate special tags.
Such as, the code for the following XML needing and updating is:
The xml code of the full dose data for updating is:
Then incremental data can be
0114, creattime, Rep, 2010.08.21},
Wherein " 0114 " representing that the id, creattime of data before updating represents the tag name under this id, Rep represents and " replaces Change ", 2010.08.21 represents replacement content.
As can be seen here, when updating descriptive data, incremental data can also be the descriptive number for describing variable quantity According to, as a rule, the data volume of incremental data can be much smaller compared to the data after the renewal of full dose, before updating Data huge, and the situation that variable quantity is the biggest.
Another kind of situation is, the data before renewal and the data after renewal are binary data, and binary data is at this Referring to be suitable for data handling equipment storage, the data of transmission, binary data is general, stable, need not should for difference With secondary development, the program code etc. after the most various computer documentss (including picture, video), compiling.
Some computational methods compared for general binary data are the most there are.The present invention can Directly to use computational methods of the prior art, those of ordinary skill in the art can also be by fitting known algorithm The change of answering property designs the computational methods of the incremental data being specifically designed to specific data type.
It should be noted that the computational methods that the present invention uses are preferably reversible algorithm.
Based on the above-mentioned principle about incremental data, the data-updating method for data handling equipment of the present invention includes Following two basic steps, as shown in Figure 3.
(1) set being sent to a data process by the incremental data of the data genaration after the data before updating and renewal Standby;
(2) in this data handling equipment, updated data are formed according to data to be updated and this incremental data.
Have been described above and how to generate incremental data, when utilizing the present invention to carry out data renewal, in addition it is also necessary to root The data being updated over are generated according to data to be updated and incremental data.It is to say, the present invention also need to generate full dose through more New data, and make generation full dose be updated over data to replace data to be updated.
According to the present invention, the process generating the data being updated over can be to generate the inverse operation of incremental data, increases when generating The computational methods of amount data are when being reversible algorithm so that generate being updated over of full dose according to data to be updated and incremental data Data are possibly realized.Such as, for the pure mathematics computing in previous examples, if the data before Geng Xining are 2, the data after renewal are 3, data to be updated are identical with the data before renewal, are also 2, and the algorithm calculating incremental data is that the data after updating deduct more Data before new, i.e. incremental data is=3-2=1, then, the algorithm of the data being updated over generating full dose is above-mentioned algorithm Inverse operation, data the most to be updated add incremental data, and the data being i.e. updated over are=2+1=3.
For descriptive incremental data, then described inverse operation can be to resolve described descriptive incremental data to produce warp The data updated.Such as, for descriptive incremental data, { 0114, creattime, Rep, 2010.08.21} can be solved Analysis is for being that the value of label creattime in 0114 replaces with 2010.08.21 to ID.
In like manner, for binary data, it is possible to use the aforesaid algorithm calculating incremental data for binary data Data and incremental data that algorithm for inversion cause is to be updated generate the data being updated over.For make the purpose of the present invention, technical scheme and Advantage is clearer, and below in conjunction with specific embodiment, and referring to the drawings, the present invention is described in further detail.
<first embodiment>
Fig. 4 is the scene schematic diagram of the data-updating method based on incremental data of the first embodiment of the present invention.From Fig. 4 It can be seen that the method for this first embodiment is similar with the system architecture of the method shown in Fig. 1.This embodiment is accomplished that one The method of synchrodata among clients, described client includes uploading client and downloads client, upload client and Download client and all can carry out data exchange with a server.
Described client of uploading refers to that the client for transferring data to described server, described download client are Refer to the client for downloading data from server.
In order to distinguish the data after updating every time, convenient also for describing, this concept of version is employed at this.At this In bright, the corresponding version of initial data and the most more new capital carried out on initial data basis.Version version Number represent.The version number such as setting initial data can be 1.0.0.0, and the versions of data number updated for the first time is 1.0.0.1, the versions of data number that second time updates is 1.0.0.2, by that analogy.According to the present invention, initial data is alternatively sky Data.
Fig. 5 is the flow chart of the data-updating method based on incremental data of the first embodiment of the present invention.Such as Fig. 5 institute Show.The method of the present invention includes three steps:
First, upload client and produce incremental data according to the data after the data before updating and renewal, and by this increment During data are uploaded onto the server;
Then, described server receives is uploaded, by described, the described incremental data that client transmits, and by this incremental data Preserve on that server;
Finally, described server described incremental data is sent to download client, download client according to described in treat more New data and this incremental data generate the data being updated over.
The premise that said method is capable of is the data after uploading the data before client preserves renewal and updating, under Carrying in client and preserve data to be updated, data to be updated can be empty.Additionally, server can only preserve increment number According to, it is also possible to preserve the data after the renewal of full dose simultaneously.
According to the present invention, described in upload client and download client may each be and can carry out data with described server Any client of exchange, does not limit its number.
According to the present invention, when incremental data is sent to the download client being connected with this server, can be according in advance Arranging transmission incremental data, this pre-sets can be certain rule, and described rule can be automatically to forward rule, it is also possible to It is by request rule.
Automatically forward rule e.g.: described server upon receipt of by when uploading the incremental data of client upload, Just send data update notification to all connected clients, inquire its need of more new data, as arbitrary client When end return receives more new data, send incremental data to this client.The most such as, described server is upon receipt of by uploading During the incremental data of client upload, just send incremental data to the every other client of same user.Certainly, automatically forward Rule can also have other setting, such as polling and transmission, or once client is connected with this server, then ask Ask and send, etc..
It is that server sends incremental data according to the request of client by request rule.It is to say, server is only Receive data more newly requested time, just send incremental data to the client sending request.
As shown in Figure 6, wherein 1 is server to the framework of the data update system of this first embodiment, and 2~5 are client End.Server includes communication module and data memory module, and client includes communication module and data update module.Service The communication module of device 1 all can carry out data exchange with the communication module of each client 2~5.Described client 2~5 can be distinguished As uploading client or downloading client, it is also possible to the most both as uploading client, again as downloading client.
When as when uploading client, data update module is for producing according to the data after the data before updating and renewal Incremental data;Communication module is for being sent to described server by the data including incremental data.
When as when downloading client, communication module is for receiving data from described server, and these data include increment number According to, data update module produces, for the data of the data to be updated preserved according to this client and this reception, the number being updated over According to.
In the present embodiment, the data update module of each client can either be according to the number after the data before updating and renewal According to producing incremental data, it is also possible to generate, according to data to be updated and incremental data, the data being updated over.Communication module can It is enough in and uploads data, be also used for downloading data.When any client in client 2~5 creates incremental data and passes through When the data including incremental data are sent to server 1 by its communication module, this client i.e. uploads visitor as what this updated Family end;When any client in client 2~5 downloads data by its communication module from server, this client is The download client this time updated.
The data memory module of server is for storing by the incremental data uploading client upload.According to the present invention one Planting embodiment, server, when preserving incremental data, also preserves the version information of this incremental data, e.g. one version Number.
The communication module of server is on the one hand for from uploading client reception incremental data, another side, being additionally operable to basis Certain rule, is sent to arbitrary download client needing to carry out data renewal, in order to this download client by this incremental data End is updated according to this incremental data.Described rule is not as it was previously stated, repeat them here.
Client terminal quantity shown in Fig. 5 is 4, but this only illustrates situation.As it was previously stated, the present invention is for client Quantity be not restricted.
<the second embodiment>
Fig. 7 is the flow chart of the data-updating method based on incremental data of the second embodiment of the present invention.
As it was previously stated, first embodiment describes the data-updating method according to the present invention carries out the stream of a secondary data renewal Journey.This second embodiment is to realize repeatedly renewal based on incremental data on the basis of first embodiment.
For having carried out the incremental data produced after repeatedly updating, owing to it is to carry out on the basis of initial data Repeatedly calculate, therefore the redundancy issue of its data may ratio more serious.In this case, continue to use incremental data more Newly may not obtain the most excellent effect.Therefore, in this second embodiment, set one first in the server Threshold value, when the number of versions of data reaches this first threshold, this server requirement uploads complete by this latest edition of client Data after the renewal of amount are sent to this server, and preserve the data after the renewal of this full dose on that server.
According to a kind of detailed description of the invention of the present invention, preserve the data after the renewal of this full dose the most simultaneously Version information.For the data after the renewal with full dose when once updating and incremental data, it can share a version Number.
Such as, if server settings first threshold is 20, and server saves the data of following version,
1.0.0.0 it is former
1.0.0.1 increase
1.0.0.2 increase
……
1.0.0.18 increase
1.0.0.19 (reaching the 20th version) is increased
(wherein, " former " represents initial data, and " increasing " represents incremental data, can not have initial data)
Now, server requirement send 1.0.0.19 version incremental data upload the client full dose by 1.0.0.19 version Renewal after data be also sent to this server.Then, server preserves the data of following version:
1.0.0.0 it is former
1.0.0.1 increase
1.0.0.2 increase
……
1.0.0.18 increase
1.0.0.19 increase
1.0.0.19 it is complete
(wherein, " entirely " representing the data after the renewal of full dose).
According to other embodiments of the invention, it is also possible to after uploading client and decide whether to upload the renewal of full dose Data are in server.
As it was previously stated, preserve incremental data in the server, when after repeatedly updating, the most just preserve Initial data and the incremental data of multiple version based on this initial data.Generally, hardware condition it is limited to or based on system The consideration of resource, for certain data (such as one software or a file), the versions of data that can preserve on the server Quantity can not be infinitely great.And hence it is also possible to be another higher limit of quantity set of the versions of data on server, at this It is referred to as Second Threshold.According to this embodiment of the invention, when the versions of data quantity on server reaches this Second Threshold, must The data of older version must be deleted, to keep the number of versions of data to be not more than this Second Threshold.
According to a kind of detailed description of the invention of the present invention, described Second Threshold is more than described first threshold.Further, deleting During the data of Versions, at least retain the data after the renewal of a full dose or initial data.More preferably, many when having During data after the renewal of individual full dose, at least retain with the renewal of the full dose of the immediate version of current version after data.
Such as, Second Threshold is 30, then combine the example below explanation version operating process according to Second Threshold.Assume Preserve the data of following version in the server:
1.0.0.0 it is former
1.0.0.1 increase
1.0.0.2 increase
……
1.0.0.18 increase
1.0.0.19 increase
1.0.0.19 it is complete
1.0.0.20 increase
……
1.0.0.28 increase
When there being user end to server to update this data the most again, thus preserve new versions of data in the server 1.0.0.29, time, the version number of these data reaches Second Threshold 30.Thus server deletes version 1.0.0.0 earlier.At clothes In the versions of data 1.0.0.1 to 1.0.0.29 that business device preserves, including the data of at least one full dose, it is version the most in this example This 1.0.0.19 is complete.
Version updating
In this second embodiment, server there may be initial data, the incremental data of multiple version, it is also possible to There are the data after the renewal of at least one full dose transmitted by upload server.In this case, the data of the present invention are more New method can further optimize.For client, the operation of its version updating can be as described below:
If there are the data of following version on server:
1.0.0.0 it is former
1.0.0.1 increase
1.0.0.2 increase
……
1.0.0.18 increase
1.0.0.19 increase
1.0.0.19 it is complete
1.0.0.20 increase
1.0.0.21 increase
1.0.0.22 increase
1.0.0.23 increase
According to one embodiment of the present invention, when each user end to server asks more new data, server will be The more new data of redaction is sent to this client.The more new data of this latest edition is probably incremental data, it is also possible to complete Data after the renewal of amount.According to the preferred embodiment of the present invention, when there is the incremental data of same version and full dose more Data after Xin, the data after the renewal of full dose are sent to client by server.
According to the preferred embodiment of the present invention, user end to server asks enclose in this client during more new data The version information of data to be updated, such as version number.At this moment, server can be all with on server according to this version number Versions of data number compare, the data determining to send which version to this client with this.
In this case, more preferably, when the renewal that there is the full dose higher than client current version on server After data time, server only select the renewal of the full dose of this version after data and version higher than this full dose renewal after The incremental data of data is transmitted;More preferably, when there is the more than one full dose higher than client release on server Renewal after data time, server only select the renewal of the full dose of highest version after data and higher than the renewal of this full dose After the incremental data of version of data be transmitted.
Such as, in example given above,
(1) it is " 1.0.0.22 " when the current versions of data of client (being i.e. sent to the versions of data of server with request) Time, server can only send to client:
1.0.0.23 increase
(2) it is " 1.0.0.18 " when the current versions of data of client (being i.e. sent to the versions of data of server with request) Time, server can send to client:
1.0.0.19 increase
1.0.0.20 increase
1.0.0.21 increase
1.0.0.22 increase
1.0.0.23 increase
Can also send:
1.0.0.19 it is complete
1.0.0.20 increase
1.0.0.21 increase
1.0.0.22 increase
1.0.0.23 increase.
Now, server can make a choice, and generally can determine according to the data volume sent, and selects to send data Measure little.In this example embodiment, in general, the data after the renewal of full dose are more than the incremental data of same version.Now, previous The data volume that the mode of kind sends is less, at this moment can be to select send in former mode.
(3) it is " 1.0.0.1 " when the current versions of data of client (being i.e. sent to the versions of data of server with request) Time, server can send to client:
1.0.0.2 increase
……
1.0.0.19 increase
1.0.0.20 increase
1.0.0.21 increase
1.0.0.22 increase
1.0.0.23 increase
Can also only send:
1.0.0.19 it is complete
1.0.0.20 increase
1.0.0.21 increase
1.0.0.22 increase
1.0.0.23 increase
And now, owing to former mode needs the version of incremental data sent more so that the data volume of transmission can Can be more than latter approach, server can select latter approach to be transmitted.
But, recited above be only example, specifically chosen send in which way time, can be according to practical situation Concrete setting.Such as, in the case of (2nd) above-mentioned kind, although number when being transmitted in former mode during current renewal Less according to amount.But, if consider renewal next time or ensuing renewal, consider total transmission data volume, it is possible to To select the second way.
Version recovers
According to this second embodiment of the present invention, when on server, storage has the data of multiple version, client also may be used With to server request " version recovery ".So-called version recovers to refer to the number that client request recovers indicated release from server According to.
When user end to server sends a version recovery request, enclose the version information needing to recover, example simultaneously A version number in this way.Now, server, by checking the version of the data of storage on it, selects to send at least to this client One full dose data and incremental data based on these full dose data.
Such as, when client request is from the data of server recovery 1.0.0.21 version, and on server there be storage:
1.0.0.0 it is former
1.0.0.1 increase
1.0.0.2 increase
……
1.0.0.18 increase
1.0.0.19 increase
1.0.0.19 it is complete
1.0.0.20 increase
1.0.0.21 increase
1.0.0.22 increase
1.0.0.23 increase
Now, server can select to send to this client
1.0.0.0 it is former
1.0.0.1 increase
1.0.0.2 increase
……
1.0.0.19 increase
1.0.0.20 increase
1.0.0.21 increase,
Can also select to send to client
1.0.0.19 it is complete
1.0.0.20 increase
1.0.0.21 increase.
According to a kind of preferred implementation, server can determine in which way according to the size of the data volume sent Send data.In this example, if the data volume of the latter is less, can select only to send 1.0.0190 version full dose data and 1.0.0.20 and the incremental data of 1.0.0.21 version.
Fig. 8 shows the system architecture diagram of data-updating method according to the second embodiment of the present invention.As shown in Figure 8, Basic framework is similar with first embodiment.
But, the server of this second embodiment also includes a threshold control block, it is used for setting described first Threshold value and Second Threshold, and according to first threshold, control this communication module and send the renewal uploading full dose to upload server After the instruction of data, and according to Second Threshold, the data memory module controlling this server deletes the data of Versions, Stored versions of data is made to be not more than Second Threshold.
Further, this threshold control block is additionally operable to control communication module and carries downwards client and send the data of which version. Concrete control method is not as it was previously stated, repeat them here.
Algorithm and display are not intrinsic to any certain computer, virtual system or miscellaneous equipment relevant provided herein. Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system Structure be apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various Programming language realizes the content of invention described herein, and the description done language-specific above is to disclose this Bright preferred forms.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case of not having these details.In some instances, it is not shown specifically known method, structure And technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that one or more in order to simplify that the disclosure helping understands in each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.But, the method for the disclosure should not be construed to reflect an intention that i.e. required guarantor The application claims feature more more than the feature being expressly recited in each claim protected.More precisely, as following Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore, The claims following detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each claim itself All as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment adaptively Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list Unit or assembly are combined into a module or unit or assembly, and can put them in addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit excludes each other, can use any Combine all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be carried out generation by providing identical, equivalent or the alternative features of similar purpose Replace.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include other embodiments Some feature included by rather than further feature, but the combination of the feature of different embodiment means to be in the present invention's Within the scope of and form different embodiments.Such as, in the following claims, embodiment required for protection appoint One of meaning can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or to run on one or more processor Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that and can use in practice Microprocessor or digital signal processor (DSP) realize the some or all portions in device according to embodiments of the present invention The some or all functions of part.The present invention is also implemented as the part for performing method as described herein or complete The equipment in portion or device program (such as, computer program and computer program).Such program realizing the present invention Can store on a computer-readable medium, or can be to have the form of one or more signal.Such signal is permissible Download from internet website and obtain, or provide on carrier signal, or provide with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not excludes the presence of not Arrange element in the claims or step.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such Element.The present invention and can come real by means of including the hardware of some different elements by means of properly programmed computer Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch Specifically embody.Word first, second and third use do not indicate that any order.These word explanations can be run after fame Claim.

Claims (9)

1., by a method for data processing equipment Share update data, described data processing equipment storage has the data before renewal With update after data, and data exchange can be carried out with a server, the method comprises the steps:
Described data processing equipment is according to the data before updating and the data genaration incremental data after updating, and by this incremental data It is sent to this server, in order to this server number after this renewal shared by other data processing equipments being connected to server According to, wherein said incremental data refers to the data relative to the change of the data before updating of the data after updating;
Wherein, described data processing equipment is client;When the number of versions of data reaches first threshold, this server requirement Upload client and the data after the renewal of the full dose of latest edition are sent to this server, preserve this full dose on that server Renewal after data;When the versions of data quantity on described server reaches Second Threshold, delete the data of older version, To keep the number of versions of data to be not more than this Second Threshold;When user end to server asks more new data every time, server The more new data of latest edition is sent to this client, the renewal that more new data is incremental data or full dose of this latest edition After data.
2. as claimed in claim 1 by the method for data processing equipment Share update data, described incremental data is by right Data before described renewal and the data after renewal calculate and obtain.
3. the method obtaining more new data, is applied in data processing equipment, preserves and need in described data processing equipment The data updated, and it can carry out data exchange with a server, the method includes:
Described data processing equipment receives data from described server, and described data include incremental data;Wherein, described data Processing means is client;When the number of versions of data reaches first threshold, this server requirement uploads client by up-to-date Data after the renewal of the full dose of version are sent to this server, preserve the data after the renewal of this full dose on that server; When the versions of data quantity on described server reaches Second Threshold, delete the data of older version, to keep versions of data Number be not more than this Second Threshold;When user end to server asks more new data every time, server is by latest edition more New data is sent to this client, the data after the renewal that more new data is incremental data or full dose of this latest edition;
The data to be updated that described data processing equipment preserves according to it produce, with received data, the data being updated over.
The method obtaining more new data the most as claimed in claim 3, before described data processing equipment obtains described data, Described data processing equipment sends the request of a more new data to described server.
The method obtaining more new data the most as claimed in claim 4, the request of described more new data includes that these data process The version information of the data to be updated preserved in device.
The method obtaining more new data the most as claimed in claim 4, the request of described more new data includes required data The version information of version.
7. a data processing equipment, for Share update data, described data processing equipment storage have the data before renewal and Data after renewal, and data exchange can be carried out with a server, this data processing equipment includes:
Incremental data generation module, for according to the data genaration incremental data after the data before updating and renewal, wherein said Incremental data refers to the data relative to the change of the data before updating of the data after updating;
Communication module, is used for transmitting data to described server, and described data include this incremental data;Wherein, described data Processing means is client;When the number of versions of data reaches first threshold, this server requirement uploads client by up-to-date Data after the renewal of the full dose of version are sent to this server, preserve the data after the renewal of this full dose on that server; When the versions of data quantity on described server reaches Second Threshold, delete the data of older version, to keep versions of data Number be not more than this Second Threshold;When user end to server asks more new data every time, server is by latest edition more New data is sent to this client, the data after the renewal that more new data is incremental data or full dose of this latest edition.
8. a data processing equipment, is used for receiving more new data, and described data processing equipment storage has data to be updated, and Can carry out data exchange with a server, this data processing equipment includes:
Communication module, for receiving data from described server, described data include that incremental data, described incremental data refer to more Data after Xin are relative to the data of the change of the data before updating;
Wherein, described data processing equipment is client;When the number of versions of data reaches first threshold, this server requirement Upload client and the data after the renewal of the full dose of latest edition are sent to this server, preserve this full dose on that server Renewal after data;When the versions of data quantity on described server reaches Second Threshold, delete the data of older version, To keep the number of versions of data to be not more than this Second Threshold;When user end to server asks more new data every time, server The more new data of latest edition is sent to this client, the renewal that more new data is incremental data or full dose of this latest edition After data;
Data update module, for producing, with the data got, the data being updated over according to these data to be updated.
9. for carrying out a system for data renewal, including uploading data processing equipment, downloading data processing equipment and service Device, described in upload data processing equipment and download in data processing equipment and preserve data, and all can carry out with this server Data exchange, it is characterised in that:
Described data processing equipment of uploading is for according to the data genaration incremental data after the data before updating and renewal, Qi Zhongsuo State incremental data and refer to the data of change relative to the data before updating of the data after updating, described in upload data processing equipment It is additionally operable to transmit data to this server;
Described server receives and preserves these data, and the described download data that are sent at least partially in these data is processed Device;
Wherein, upload data processing equipment, download data processing equipment is client;When the number of versions of data reaches the first threshold During value, this server requirement is uploaded client and the data after the renewal of the full dose of latest edition is sent to this server, at this The data after the renewal of this full dose are preserved on server;When the versions of data quantity on described server reaches Second Threshold, Delete the data of older version, to keep the number of versions of data to be not more than this Second Threshold;User end to server please every time When seeking more new data, the more new data of latest edition is sent to this client by server, and the more new data of this latest edition is Data after the renewal of incremental data or full dose;
Described download data processing equipment is for receiving described data from described server, and connects with this according to data to be updated The data received produce the data being updated over.
CN201210421027.9A 2012-10-29 2012-10-29 A kind of data-updating method based on incremental data, device and system CN103002010B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210421027.9A CN103002010B (en) 2012-10-29 2012-10-29 A kind of data-updating method based on incremental data, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210421027.9A CN103002010B (en) 2012-10-29 2012-10-29 A kind of data-updating method based on incremental data, device and system

Publications (2)

Publication Number Publication Date
CN103002010A CN103002010A (en) 2013-03-27
CN103002010B true CN103002010B (en) 2016-09-28

Family

ID=47930143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210421027.9A CN103002010B (en) 2012-10-29 2012-10-29 A kind of data-updating method based on incremental data, device and system

Country Status (1)

Country Link
CN (1) CN103002010B (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103796041A (en) * 2013-11-01 2014-05-14 中兴通讯股份有限公司 Updating method and apparatus of IPTV system
CN103678494B (en) * 2013-11-15 2018-09-11 北京奇虎科技有限公司 Client synchronization services the method and device of end data
CN104714812B (en) * 2013-12-13 2018-03-23 中国电信股份有限公司 Rapid deployment and the method and system of loading Java applications in cloud environment
CN103763380B (en) * 2014-01-24 2019-04-23 深圳联友科技有限公司 A kind of method and system of synchronous demonstrating data
CN104052815A (en) * 2014-06-24 2014-09-17 滕俊平 K line synchronization method and system capable of saving traffic volume
CN104216672A (en) * 2014-08-20 2014-12-17 小米科技有限责任公司 Display control method and display control device
CN104572082A (en) * 2014-12-19 2015-04-29 龙凤娇 Product upgrading method and device
CN105260202A (en) * 2015-09-15 2016-01-20 中国联合网络通信集团有限公司 Client file updating method and system
CN105306585B (en) * 2015-11-12 2019-02-05 焦点科技股份有限公司 A kind of method of data synchronization of multiple data centers
CN105991770B (en) * 2016-05-05 2018-01-30 广州阿里巴巴文学信息技术有限公司 Data-updating method, client and server
CN106055559A (en) * 2016-05-17 2016-10-26 北京金山安全管理系统技术有限公司 Data synchronization method and data synchronization device
CN105893640B (en) * 2016-06-30 2020-04-07 北京奇虎科技有限公司 Favorite merging method and device
CN108156015B (en) * 2016-12-06 2021-01-22 阿里巴巴集团控股有限公司 Data updating method and device
CN106790129A (en) * 2016-12-27 2017-05-31 中国银联股份有限公司 A kind of identity authentication method and device
CN106897103B (en) * 2017-03-03 2020-11-06 广州四三九九信息科技有限公司 Method for quickly and thermally updating version of mobile terminal network game
CN107018150A (en) * 2017-05-24 2017-08-04 维沃移动通信有限公司 Data transmission method and device
CN110019126A (en) * 2017-11-27 2019-07-16 航天信息股份有限公司 A kind of data-updating method and device
CN109842661A (en) * 2017-11-28 2019-06-04 珠海市君天电子科技有限公司 A kind of data transmission method, device, electronic equipment and storage medium
CN109246247A (en) * 2018-10-31 2019-01-18 广州市百果园信息技术有限公司 Address book synchronization method, device, computer storage medium and terminal
CN109660602A (en) * 2018-11-28 2019-04-19 天津字节跳动科技有限公司 Data increment transmission method and device
CN110837382B (en) * 2019-09-26 2021-01-08 北京和德宇航技术有限公司 Service framework-based narrowband space-based Internet of things terminal upgrading method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238197A (en) * 2010-04-20 2011-11-09 上海博路信息技术有限公司 Mobile reading multi-screen synchronization method
CN102693324A (en) * 2012-01-09 2012-09-26 西安电子科技大学 Distributed database synchronization system, synchronization method and node management method
CN102724308A (en) * 2012-06-13 2012-10-10 腾讯科技(深圳)有限公司 Software update method and software update system
CN102750283A (en) * 2011-04-20 2012-10-24 阿里巴巴集团控股有限公司 Massive data synchronization system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110137859A1 (en) * 2009-12-08 2011-06-09 David Dickman Staged Data Conversion

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238197A (en) * 2010-04-20 2011-11-09 上海博路信息技术有限公司 Mobile reading multi-screen synchronization method
CN102750283A (en) * 2011-04-20 2012-10-24 阿里巴巴集团控股有限公司 Massive data synchronization system and method
CN102693324A (en) * 2012-01-09 2012-09-26 西安电子科技大学 Distributed database synchronization system, synchronization method and node management method
CN102724308A (en) * 2012-06-13 2012-10-10 腾讯科技(深圳)有限公司 Software update method and software update system

Also Published As

Publication number Publication date
CN103002010A (en) 2013-03-27

Similar Documents

Publication Publication Date Title
US20170230443A1 (en) System and method for zero latency browsing
EP3049960B1 (en) Key resource prefetching using front-end optimization (feo) configuration
US9232021B2 (en) Dynamically rehosting web content
US9894049B2 (en) Network aggregator
US8533297B2 (en) Setting cookies in conjunction with phased delivery of structured documents
US20170017628A1 (en) Predictive resource identification and phased delivery of structured documents
EP2840813B1 (en) Service method and system using instance interface of virtualization object in internet of things environment
CA2846443C (en) Mobile solution for signing and retaining third-party documents
US10652425B2 (en) System and method for selectively sending, delivery and receiving of faxes
CN106575298B (en) Rapid presentation of web sites containing dynamic content and stale content
JP5022301B2 (en) Proxy server, communication relay program, and communication relay method
US8175105B2 (en) Pushing documents to wireless data devices
US9661096B2 (en) Method and apparatus for accessing an enterprise resource planning system via a mobile device
US7133908B1 (en) Metrics and status presentation system and method using persistent template-driven web objects
JP2016006671A (en) Data transmission/reception system and data transmission/reception method
US20140047322A1 (en) Method and system for browsing things of internet of things on ip using web platform
US8874694B2 (en) Adaptive packaging of network resources
CN102985921B (en) There is the client terminal device high speed caching electronic document resources of e-sourcing data base
CN106843828B (en) Interface display and loading method and device
CN106489145B (en) Access method, device and the Web site system of web site
US10242100B2 (en) Managing cached data in a network environment
JP2010508581A (en) Offline execution of web-based applications
KR101730584B1 (en) System and method for providing real-time data
US20160321308A1 (en) Constructing a data adaptor in an enterprise server data ingestion environment
CA2901677C (en) Predictive storage service

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
CB03 Change of inventor or designer information

Inventor after: Xue Xiangxu

Inventor after: Jiang Kuan

Inventor after: Wu Hao

Inventor after: Liu Wu

Inventor after: Liu Qiming

Inventor after: Wang Youcun

Inventor after: Ren Huan

Inventor before: Xue Xiangxu

Inventor before: Jiang Kuan

Inventor before: Wu Hao

Inventor before: Liu Wu

Inventor before: Liu Qiming

Inventor before: Wang Youcun

Inventor before: Ren Huan

C53 Correction of patent for invention or patent application
GR01 Patent grant
C14 Grant of patent or utility model