CN103327026A - Data updating method and updating system - Google Patents

Data updating method and updating system Download PDF

Info

Publication number
CN103327026A
CN103327026A CN2013102686590A CN201310268659A CN103327026A CN 103327026 A CN103327026 A CN 103327026A CN 2013102686590 A CN2013102686590 A CN 2013102686590A CN 201310268659 A CN201310268659 A CN 201310268659A CN 103327026 A CN103327026 A CN 103327026A
Authority
CN
China
Prior art keywords
data
certificate parameter
terminal
parameter
certificate
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN2013102686590A
Other languages
Chinese (zh)
Other versions
CN103327026B (en
Inventor
夏盛新
甘晖明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310268659.0A priority Critical patent/CN103327026B/en
Publication of CN103327026A publication Critical patent/CN103327026A/en
Application granted granted Critical
Publication of CN103327026B publication Critical patent/CN103327026B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a data updating method and a data updating system, and belongs to the field of data processing. The data updating method includes receiving a data updating request sent by a terminal, generating a second verification parameter corresponding to second data according to the data updating request, comparing the second verification parameter with a first verification parameter stored in a server, and sending an updating indication to the terminal according to a comparison result so that the terminal updates first data locally stored according to the updating indication. According to the data updating method and the updating system, the server generates the second verification parameter corresponding to the second data, the second verification parameter is compared with the first verification parameter, and data stored in the terminal are updated according to the comparison result of the second verification parameter and the first verification parameter, so that when data updating is carried out on the server through the terminal, obtaining of the complete data from the server every time is needless, network bandwidth is saved, and operation performance of the terminal is improved.

Description

A kind of data-updating method and update system
Technical field
The invention belongs to data processing field, relate in particular to a kind of data-updating method and update system.
Background technology
Terminal is obtained data from server, so that the data of the local storage of terminal are upgraded, is a kind of very common data-updating method, particularly needs the often data of renewal as this class of good friend's data, usually carries out Data Update by server.
The Data Update of prior art needs terminal to obtain complete data from server usually, then with the existing data of data replacement terminal of obtaining, causes like this waste of terminal data flow.
Summary of the invention
The embodiment of the invention provides a kind of data-updating method and updating device, the problem of waste data traffic when solving the more new data of prior art.
The embodiment of the invention is achieved in that a kind of data-updating method, and described method comprises:
The Data Update request that receiving terminal sends;
Generate the second certificate parameter corresponding to the second data according to described Data Update request, described the second data are used for sending to terminal to upgrade the first data of terminal storage;
The first certificate parameter of described the second certificate parameter and server stores is compared, and described the first certificate parameter is that the first data according to the local storage of terminal that terminal sends generate;
According to the result of described comparison, send the renewal indication to terminal, so that described terminal is upgraded the first data of this locality storage according to described renewal indication.
Another embodiment of the present invention provides a kind of data update apparatus, and described device comprises:
Receiving element is used for the Data Update request that receiving terminal sends;
Generation unit is used for generating the second certificate parameter corresponding to the second data according to the Data Update request that described receiving element receives, and described the second data are used for sending to terminal to upgrade the first data of terminal storage;
Comparing unit is used for the second certificate parameter of described generation unit generation and the first certificate parameter of server stores are compared, and described the first certificate parameter is that the first data according to the local storage of terminal that terminal sends generate;
Transmitting element is used for according to described comparing unit result relatively, sends to terminal and upgrades indication, so that described terminal is upgraded the first data of this locality storage according to described renewal indication.
The embodiment of the invention, server generates the second certificate parameter corresponding to the second data, the second certificate parameter and the first certificate parameter are compared, and according to the comparative result of the second certificate parameter and the first certificate parameter the data of terminal storage are upgraded, so that terminal is when carrying out Data Update to server, needn't obtain complete data to server at every turn, save the network bandwidth, improved the runnability of terminal.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the structural representation of the data update system that provides of the embodiment of the invention;
Fig. 2 is the flow chart of the data-updating method that provides of one embodiment of the invention;
Fig. 3 is the flow chart of the data-updating method that provides of another embodiment of the present invention;
Fig. 4 is the structure chart of the data update apparatus that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
In the embodiment of the invention, terminal generates the first certificate parameter corresponding to the first data, server generates the second certificate parameter corresponding to the second data, the second data are the more new data corresponding to the first data that is stored in server, the second certificate parameter and the first certificate parameter are compared, and according to the comparative result of the second certificate parameter and the first certificate parameter the data of terminal storage are upgraded, so that terminal is when carrying out Data Update to server, needn't obtain complete data to server at every turn, save the network bandwidth, improved the runnability of terminal.
For technical solutions according to the invention are described, describe below by specific embodiment.
Embodiment one
Be illustrated in figure 1 as the structural representation of the data update system that the embodiment of the invention provides, comprise: terminal 1 will be stored in local the first certificate parameter corresponding to the first data and send to server 2, server 2 is when sending the renewal indication to terminal 1, the second certificate parameter that the second data are corresponding compares with described the first certificate parameter: if described the second certificate parameter is identical with described the first certificate parameter, then server 2 notification terminals 1 keep the first data of terminal 1 local storage constant; If described the second certificate parameter is different from described the first certificate parameter, then server 2 sends the second data corresponding to described the second certificate parameter to terminal 1.
Embodiment two
Be illustrated in figure 2 as the flow chart of the data-updating method that one embodiment of the invention provides, said method comprising the steps of:
In step S201, the Data Update request that the server receiving terminal sends.
In embodiments of the present invention, when terminal is carried out Data Update at needs (as: upgrade good friend's data in communications applications), send the Data Update request to server, with the data of the local storage of new terminal more.
In step S202, server generates the second certificate parameter corresponding to the second data according to described Data Update request, and described the second data are used for sending to terminal to upgrade the first data of terminal storage.
In embodiments of the present invention, with good friend's data instance, being applied in when showing buddy list of terminal, this buddy list generates by good friend's data (the first data) of the local storage of terminal usually, but terminal needs often to upgrade this buddy list, and needs terminal to obtain from server through good friend's data (the second data) of upgrading.When terminal to server was initiated to obtain through good friend's data of upgrading, server was at first according to generating the second corresponding certificate parameter through good friend's data of upgrading.Described certificate parameter comprises:
If described the first certificate parameter is Etag, described the second certificate parameter is Etag; Perhaps,
If the parameter of described the first certificate parameter for obtaining after by security algorithm described the first data being calculated, the parameter of described the second certificate parameter for obtaining after by security algorithm described the second data being calculated.
Wherein:
Etag is that (Hypertext Transfer Protocol is called for short HTML (Hypertext Markup Language): definition " the entity value of requested variable " HTTP), i.e. " mark related with the Web resource ", it can be used as the mark of the Web resource (the first data and the second data) of server transmission.
Data communication device crossed also can obtain a parameter after security algorithm calculates, such as: data communication device is crossed message digest algorithm 5(Message Digest Algorithm5 and is called for short: after MD5) calculating, can obtain the value of a regular length, this value is certificate parameter.Similarly algorithm also comprises: MD2, MD3, MD4 etc.
In step S203, server compares the first certificate parameter of described the second certificate parameter and server stores, and described the first certificate parameter is that the first data according to the local storage of terminal that terminal sends generate.
In embodiments of the present invention, server compares the first certificate parameter of the second certificate parameter and server stores after generating the step of the second certificate parameter, and this first certificate parameter is terminal according to good friend's data generation of the local storage of terminal.
In step S204, server sends the renewal indication according to the result of described comparison to terminal.
In embodiments of the present invention, the second certificate parameter only has two kinds with the comparative result of the first certificate parameter: the second certificate parameter is identical with the first certificate parameter; The second certificate parameter is different from the first certificate parameter.Described server sends the step of upgrading indication according to the result of described comparison to terminal, comprising:
If described the second certificate parameter is identical with described the first certificate parameter, it is constant that then indicating terminal keeps the first data of the local storage of terminal; Perhaps,
If described the second certificate parameter is different from described the first certificate parameter, then send the second data corresponding to described the second certificate parameter to terminal, so that the Data Update that terminal is stored this locality is described the second data.
In embodiments of the present invention, if the second certificate parameter is identical with the first certificate parameter, then expression is identical with good friend's data of terminal storage through good friend's data of upgrading, and good friend's data that server only needs indicating terminal to call local storage generate buddy list and get final product; If the second certificate parameter is different from the first certificate parameter, then expression is different from good friend's data of terminal storage through good friend's data of upgrading, and server need to send good friend's data that process is upgraded to terminal.
In step S205, terminal is indicated according to described renewal, and the data of this locality storage are upgraded.
In embodiments of the present invention, the renewal indication that the terminal reception server sends, good friend's data are upgraded, and the good friend's data sequence after will upgrading turns to one section binary data, in database, store this binary data with binary system BLOB piece, when reading friend information, read with the BLOB piece, and this binary data is deserialized as good friend's data object, to have guaranteed the fail safe of data storages.
The embodiment of the invention, server generates the second certificate parameter corresponding to the second data, the second certificate parameter and the first certificate parameter are compared, and according to the comparative result of the second certificate parameter and the first certificate parameter the data of terminal storage are upgraded, so that terminal is when carrying out Data Update to server, needn't obtain complete data to server at every turn, save the network bandwidth, improved the runnability of terminal.
As an optional embodiment of the present invention, before the step that the first certificate parameter with described the second certificate parameter and server stores compares, described method also comprises:
Server obtains and stores described the first certificate parameter.
In embodiments of the present invention, server carry out the second certificate parameter and the first certificate parameter relatively before, need to obtain the first certificate parameter from terminal, the method for obtaining the first certificate parameter comprises does not much do restriction at this.
As another optional embodiment of the present invention, the 3rd data that send described the second data and obtain at random to terminal, in the described step that generates the second certificate parameter corresponding to the second data according to described Data Update request, the second certificate parameter of generation is: the parameter of obtaining after by security algorithm described the second data being calculated; In the described step that the first certificate parameter of described the second certificate parameter and server stores is compared, the first certificate parameter that compares is: the parameter of obtaining after by security algorithm described the first data being calculated.
In embodiments of the present invention, if server sends the second data and random the 3rd data that generate (such as the commending friends that server sends to terminal in the communications applications to terminal, this commending friends is at every turn all different, namely this commending friends generates at random), then certificate parameter can only be the parameter of obtaining after by security algorithm described data being calculated.Server all gathers together to the Web resource that terminal sends, namely comprise the Etag that the 3rd data and the second data only can generate an integral body, and because the 3rd data are all different each time, corresponding Etag is also different each time, and the parameter of obtaining after by security algorithm described data being calculated can be to the independent Calculation Verification parameter of the second data.
Corresponding, to the 3rd data that terminal sends described the second data and obtains at random, described result according to described comparison sends the step of upgrading indication to terminal, comprising:
If described the second certificate parameter is identical with described the first certificate parameter, then send described the 3rd data to terminal; Perhaps,
If described the second certificate parameter is different from described the first certificate parameter, then send the second data corresponding to described the second certificate parameter and described the 3rd data to terminal.
Embodiment three
Be illustrated in figure 3 as the flow chart of the data-updating method that another embodiment of the present invention provides, said method comprising the steps of:
In step S301, the Data Update request that receiving terminal sends.
In embodiments of the present invention, when terminal is carried out Data Update at needs (as: upgrade good friend's data in communications applications), send the Data Update request to server, with the data of the local storage of new terminal more.
In step S302, generate the second certificate parameter corresponding to the second data according to described Data Update request, described the second data are used for sending to terminal to upgrade the first data of terminal storage.
In embodiments of the present invention, with good friend's data instance, being applied in when showing buddy list of terminal, this buddy list generates by good friend's data (the first data) of the local storage of terminal usually, but terminal needs often to upgrade this buddy list, and needs terminal to obtain from server through good friend's data (the second data) of upgrading.When terminal to server was initiated to obtain through good friend's data of upgrading, server was at first according to generating the second corresponding certificate parameter through good friend's data of upgrading.Described certificate parameter comprises:
If described the first certificate parameter is Etag, described the second certificate parameter is Etag; Perhaps,
If the parameter of described the first certificate parameter for obtaining after by security algorithm described the first data being calculated, the parameter of described the second certificate parameter for obtaining after by security algorithm described the second data being calculated.
Wherein:
Etag is that (Hypertext Transfer Protocol is called for short HTML (Hypertext Markup Language): definition " the entity value of requested variable " HTTP), i.e. " mark related with the Web resource ", it can be used as the mark of the Web resource (the first data and the second data) of server transmission.
Data communication device crossed also can obtain a parameter after security algorithm calculates, such as: data communication device is crossed message digest algorithm 5(Message Digest Algorithm5 and is called for short: after MD5) calculating, can obtain the value of a regular length, this value is certificate parameter.Similarly algorithm also comprises: MD2, MD3, MD4 etc.
In step S303, the first certificate parameter of described the second certificate parameter and server stores is compared, described the first certificate parameter is that the first data according to the local storage of terminal that terminal sends generate.
In embodiments of the present invention, server compares the first certificate parameter of the second certificate parameter and server stores after generating the step of the second certificate parameter, and this first certificate parameter is terminal according to good friend's data generation of the local storage of terminal.
In step S304, according to the result of described comparison, send the renewal indication to terminal, so that described terminal is upgraded the first data of this locality storage according to described renewal indication.
In embodiments of the present invention, the second certificate parameter only has two kinds with the comparative result of the first certificate parameter: the second certificate parameter is identical with the first certificate parameter; The second certificate parameter is different from the first certificate parameter.Described result according to described comparison sends the step of upgrading indication to terminal, comprising:
If described the second certificate parameter is identical with described the first certificate parameter, it is constant that then indicating terminal keeps the first data of the local storage of terminal; Perhaps,
If described the second certificate parameter is different from described the first certificate parameter, then send the second data corresponding to described the second certificate parameter to terminal, so that the Data Update that terminal is stored this locality is described the second data.
In embodiments of the present invention, if the second certificate parameter is identical with the first certificate parameter, then expression is identical with good friend's data of terminal storage through good friend's data of upgrading, and good friend's data that server only needs indicating terminal to call local storage generate buddy list and get final product; If the second certificate parameter is different from the first certificate parameter, then expression is different from good friend's data of terminal storage through good friend's data of upgrading, and server need to send good friend's data that process is upgraded to terminal.
The embodiment of the invention, server generates the second certificate parameter corresponding to the second data, the second certificate parameter and the first certificate parameter are compared, and according to the comparative result of the second certificate parameter and the first certificate parameter the data of terminal storage are upgraded, so that terminal is when carrying out Data Update to server, needn't obtain complete data to server at every turn, save the network bandwidth, improved the runnability of terminal.
As an optional embodiment of the present invention, before the step that the first certificate parameter with described the second certificate parameter and server stores compares, described method also comprises:
Obtain and store described the first certificate parameter.
In embodiments of the present invention, server carry out the second certificate parameter and the first certificate parameter relatively before, need to obtain the first certificate parameter from terminal, the method for obtaining the first certificate parameter comprises does not much do restriction at this.
As another optional embodiment of the present invention, the 3rd data that send described the second data and obtain at random to terminal, in the described step that generates the second certificate parameter corresponding to the second data according to described Data Update request, the second certificate parameter of generation is: the parameter of obtaining after by security algorithm described the second data being calculated; In the described step that the first certificate parameter of described the second certificate parameter and server stores is compared, the first certificate parameter that compares is: the parameter of obtaining after by security algorithm described the first data being calculated.
In embodiments of the present invention, if server sends the second data and random the 3rd data that generate (such as the commending friends that server sends to terminal in the communications applications to terminal, this commending friends is at every turn all different, namely this commending friends generates at random), then certificate parameter can only be the parameter of obtaining after by security algorithm described data being calculated.Server all gathers together to the Web resource that terminal sends, namely comprise the Etag that the 3rd data and the second data only can generate an integral body, and because the 3rd data are all different each time, corresponding Etag is also different each time, and the parameter of obtaining after by security algorithm described data being calculated can be to the independent Calculation Verification parameter of the second data.
Corresponding, to the 3rd data that terminal sends described the second data and obtains at random, described result according to described comparison sends the step of upgrading indication to terminal, comprising:
If described the second certificate parameter is identical with described the first certificate parameter, then send described the 3rd data to terminal; Perhaps,
If described the second certificate parameter is different from described the first certificate parameter, then send the second data corresponding to described the second certificate parameter and described the 3rd data to terminal.
Embodiment four
Be illustrated in figure 4 as the structure chart of the data update apparatus that the embodiment of the invention provides, for convenience of explanation, the part relevant with the embodiment of the invention only be shown, comprising:
Receiving element 401 is used for the Data Update request that receiving terminal sends.
In embodiments of the present invention, when terminal is carried out Data Update at needs (as: upgrade good friend's data in communications applications), send the Data Update request to server, with the data of the local storage of new terminal more.
Generation unit 402 is used for generating the second certificate parameter corresponding to the second data according to the Data Update request that described receiving element 401 receives, and described the second data are used for sending to terminal to upgrade the first data of terminal storage.
In embodiments of the present invention, with good friend's data instance, being applied in when showing buddy list of terminal, this buddy list generates by good friend's data (the first data) of the local storage of terminal usually, but terminal needs often to upgrade this buddy list, and needs terminal to obtain from server through good friend's data (the second data) of upgrading.When terminal to server was initiated to obtain through good friend's data of upgrading, generation unit 402 was at first according to generating the second corresponding certificate parameter through good friend's data of upgrading.Described certificate parameter comprises:
If described the first certificate parameter is Etag, described the second certificate parameter is Etag; Perhaps,
If the parameter of described the first certificate parameter for obtaining after by security algorithm described the first data being calculated, the parameter of described the second certificate parameter for obtaining after by security algorithm described the second data being calculated.
Wherein:
Etag is that (Hypertext Transfer Protocol is called for short HTML (Hypertext Markup Language): definition " the entity value of requested variable " HTTP), i.e. " mark related with the Web resource ", it can be used as the mark of the Web resource (the first data and the second data) of server transmission.
Data communication device crossed also can obtain a parameter after security algorithm calculates, such as: data communication device is crossed message digest algorithm 5(Message Digest Algorithm5 and is called for short: after MD5) calculating, can obtain the value of a regular length, this value is certificate parameter.Similarly algorithm also comprises: MD2, MD3, MD4 etc.
Comparing unit 403 is used for the second certificate parameter of described generation unit 402 generations and the first certificate parameter of server stores are compared, and described the first certificate parameter is that the first data according to the local storage of terminal that terminal sends generate.
In embodiments of the present invention, generation unit 402 is after generating the second certificate parameter, comparing unit 403 compares the first certificate parameter of the second certificate parameter and server stores, and this first certificate parameter is that terminal generates according to the local good friend's data of storing of terminal.
Transmitting element 404 is used for according to described comparing unit 403 result relatively, sends to terminal and upgrades indication, so that described terminal is upgraded the first data of this locality storage according to described renewal indication.
In embodiments of the present invention, the second certificate parameter only has two kinds with the comparative result of the first certificate parameter: the second certificate parameter is identical with the first certificate parameter; The second certificate parameter is different from the first certificate parameter.Described transmitting element 404 comprises:
Identical transmission subelement 4041, if it is identical with described the first certificate parameter to be used for described the second certificate parameter, it is constant that then indicating terminal keeps the first data of the local storage of terminal; Perhaps,
The different subelements 4042 that send if described the second certificate parameter is different from described the first certificate parameter, then send the second data corresponding to described the second certificate parameter to terminal, so that the Data Update that terminal is stored this locality is described the second data.
In embodiments of the present invention, if the second certificate parameter is identical with the first certificate parameter, then expression is identical with good friend's data of terminal storage through good friend's data of upgrading, and good friend's data that server only needs indicating terminal to call local storage generate buddy list and get final product; If the second certificate parameter is different from the first certificate parameter, then expression is different from good friend's data of terminal storage through good friend's data of upgrading, and server need to send good friend's data that process is upgraded to terminal.
The embodiment of the invention, server generates the second certificate parameter corresponding to the second data, the second certificate parameter and the first certificate parameter are compared, and according to the comparative result of the second certificate parameter and the first certificate parameter the data of terminal storage are upgraded, so that terminal is when carrying out Data Update to server, needn't obtain complete data to server at every turn, save the network bandwidth, improved the runnability of terminal.
As an optional embodiment of the present invention, described comparing unit 403 relatively before, described device also comprises:
Acquiring unit 405 is used for obtaining and storing described the first certificate parameter.
In embodiments of the present invention, comparing unit 403 carry out the second certificate parameter and the first certificate parameter relatively before, acquiring unit 405 need to obtain the first certificate parameter from terminal, the method for obtaining the first certificate parameter comprises does not much do restriction at this.
As another optional embodiment of the present invention, the 3rd data that described transmitting element 404 sends described the second data and obtains at random to terminal, the second certificate parameter that described generation unit 402 generates is: the parameter of obtaining after by security algorithm described the second data being calculated; Described comparing unit 403 is used for the first certificate parameter relatively and is: the parameter of obtaining after by security algorithm described the first data being calculated.
In embodiments of the present invention, if transmitting element 404 sends the second data and random the 3rd data that generate (such as the commending friends that server sends to terminal in the communications applications to terminal, this commending friends is at every turn all different, namely this commending friends generates at random), then certificate parameter can only be the parameter of obtaining after by security algorithm described data being calculated.Server all gathers together to the Web resource that terminal sends, namely comprise the Etag that the 3rd data and the second data only can generate an integral body, and because the 3rd data are all different each time, corresponding Etag is also different each time, and the parameter of obtaining after by security algorithm described data being calculated can be to the independent Calculation Verification parameter of the second data.
Corresponding, if transmitting element 404 sends described the second data and random the 3rd data that generate to terminal, described transmitting element 404 sends the step of upgrading indication, comprising:
If described the second certificate parameter is identical with described the first certificate parameter, then send described the 3rd data to terminal; Perhaps,
If described the second certificate parameter is different from described the first certificate parameter, then send the second data corresponding to described the second certificate parameter and described the 3rd data to terminal.
One of ordinary skill in the art will appreciate that as the included unit of above-described embodiment is to divide according to function logic, but be not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
Those of ordinary skills it is also understood that, realize that all or part of step in above-described embodiment method is to come the relevant hardware of instruction to finish by program, as the instruction in the server as described in being stored in, carry out by at least one processor in this server, thereby realize image processing method.In the present embodiment, described program can be stored in the read/write memory medium of server, and described storage medium comprises ROM/RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. a data-updating method is characterized in that, described method comprises:
The Data Update request that receiving terminal sends;
Generate the second certificate parameter corresponding to the second data according to described Data Update request, described the second data are used for sending to terminal to upgrade the first data of terminal storage;
The first certificate parameter of described the second certificate parameter and server stores is compared, and described the first certificate parameter is that the first data according to the local storage of terminal that terminal sends generate;
According to the result of described comparison, send the renewal indication to terminal, so that described terminal is upgraded the first data of this locality storage according to described renewal indication.
2. the method for claim 1 is characterized in that, before the step that the first certificate parameter with described the second certificate parameter and server stores compares, described method also comprises:
Obtain and store described the first certificate parameter.
3. the method for claim 1 is characterized in that, described result according to described comparison sends the step of upgrading indication to terminal, comprising:
If described the second certificate parameter is identical with described the first certificate parameter, it is constant that then indicating terminal keeps the first data of the local storage of terminal; Perhaps,
If described the second certificate parameter is different from described the first certificate parameter, then send the second data corresponding to described the second certificate parameter to terminal, so that the Data Update that terminal is stored this locality is described the second data.
4. such as each described method of claim 1~3, it is characterized in that, described certificate parameter comprises:
If described the first certificate parameter is Etag, described the second certificate parameter is Etag; Perhaps,
If the parameter of described the first certificate parameter for obtaining after by security algorithm described the first data being calculated, the parameter of described the second certificate parameter for obtaining after by security algorithm described the second data being calculated.
5. method as claimed in claim 4, it is characterized in that, the 3rd data that send described the second data and obtain at random to terminal, in the described step that generates the second certificate parameter corresponding to the second data according to described Data Update request, the second certificate parameter of generation is: the parameter of obtaining after by security algorithm described the second data being calculated; In the described step that the first certificate parameter of described the second certificate parameter and server stores is compared, the first certificate parameter that compares is: the parameter of obtaining after by security algorithm described the first data being calculated.
6. method as claimed in claim 5 is characterized in that, to the 3rd data that terminal sends described the second data and obtains at random, described result according to described comparison sends the step of upgrading indication to terminal, comprising:
If described the second certificate parameter is identical with described the first certificate parameter, then send described the 3rd data to terminal; Perhaps,
If described the second certificate parameter is different from described the first certificate parameter, then send the second data corresponding to described the second certificate parameter and described the 3rd data to terminal.
7. a data update apparatus is characterized in that, described device comprises:
Receiving element is used for the Data Update request that receiving terminal sends;
Generation unit is used for generating the second certificate parameter corresponding to the second data according to the Data Update request that described receiving element receives, and described the second data are used for sending to terminal to upgrade the first data of terminal storage;
Comparing unit is used for the second certificate parameter of described generation unit generation and the first certificate parameter of server stores are compared, and described the first certificate parameter is that the first data according to the local storage of terminal that terminal sends generate;
Transmitting element is used for according to described comparing unit result relatively, sends to terminal and upgrades indication, so that described terminal is upgraded the first data of this locality storage according to described renewal indication.
8. device as claimed in claim 7 is characterized in that, described comparing unit relatively before, described device also comprises:
Acquiring unit is used for obtaining and storing described the first certificate parameter.
9. device as claimed in claim 7 is characterized in that, described transmitting element comprises:
Identical transmission subelement, if it is identical with described the first certificate parameter to be used for described the second certificate parameter, it is constant that then indicating terminal keeps the first data of the local storage of terminal; Perhaps,
The different subelements that send if described the second certificate parameter is different from described the first certificate parameter, then send the second data corresponding to described the second certificate parameter to terminal, so that the Data Update that terminal is stored this locality is described the second data.
10. such as each described device of claim 7~9, it is characterized in that, described certificate parameter comprises:
If described the first certificate parameter is Etag, described the second certificate parameter is Etag; Perhaps,
If the parameter of described the first certificate parameter for obtaining after by security algorithm described the first data being calculated, the parameter of described the second certificate parameter for obtaining after by security algorithm described the second data being calculated.
11. device as claimed in claim 10, it is characterized in that, the 3rd data that described transmitting element sends described the second data and obtains at random to terminal, the second certificate parameter that described generation unit generates is: the parameter of obtaining after by security algorithm described the second data being calculated; Described comparing unit is used for the first certificate parameter relatively: the parameter of obtaining after by security algorithm described the first data being calculated.
12. device as claimed in claim 11 is characterized in that, the 3rd data that transmitting element sends described the second data and obtains at random to terminal, and the step of indication is upgraded in the transmission of described transmitting element, comprising:
If described the second certificate parameter is identical with described the first certificate parameter, then send described the 3rd data to terminal; Perhaps,
If described the second certificate parameter is different from described the first certificate parameter, then send the second data corresponding to described the second certificate parameter and described the 3rd data to terminal.
CN201310268659.0A 2013-06-28 2013-06-28 A kind of data-updating method and the system of renewal Active CN103327026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310268659.0A CN103327026B (en) 2013-06-28 2013-06-28 A kind of data-updating method and the system of renewal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310268659.0A CN103327026B (en) 2013-06-28 2013-06-28 A kind of data-updating method and the system of renewal

Publications (2)

Publication Number Publication Date
CN103327026A true CN103327026A (en) 2013-09-25
CN103327026B CN103327026B (en) 2016-03-02

Family

ID=49195556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310268659.0A Active CN103327026B (en) 2013-06-28 2013-06-28 A kind of data-updating method and the system of renewal

Country Status (1)

Country Link
CN (1) CN103327026B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618498A (en) * 2015-02-13 2015-05-13 深圳市创梦天地科技有限公司 Data resource synchronizing method and server
CN106055420A (en) * 2016-05-18 2016-10-26 沈阳东软医疗系统有限公司 Method, device and equipment for data verification
CN106161623A (en) * 2016-07-05 2016-11-23 上海帝联信息科技股份有限公司 Caching server, renewal server and data-updating method
CN109446205A (en) * 2017-08-28 2019-03-08 中国电信股份有限公司 Judge the device and method of data mode and the device and method that data update

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030157A (en) * 2007-04-20 2007-09-05 北京搜狗科技发展有限公司 Method and system for updating user vocabulary synchronouslly
CN101051912A (en) * 2006-04-05 2007-10-10 迈世亚(北京)科技有限公司 Data automatic updating method
CN101194229A (en) * 2005-04-11 2008-06-04 索尼爱立信移动通讯股份有限公司 Updating of data instructions
CN101316256A (en) * 2007-05-28 2008-12-03 微码(北京)移动技术有限公司 Data updating method
CN102622251A (en) * 2012-03-07 2012-08-01 深圳市凯立德欣软件技术有限公司 Method and server for managing navigation software upgrading
CN102724297A (en) * 2012-05-25 2012-10-10 上海传漾网络科技有限公司 Method for increasing access speed in browser/server (BS) architecture advertisement management system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101194229A (en) * 2005-04-11 2008-06-04 索尼爱立信移动通讯股份有限公司 Updating of data instructions
CN101051912A (en) * 2006-04-05 2007-10-10 迈世亚(北京)科技有限公司 Data automatic updating method
CN101030157A (en) * 2007-04-20 2007-09-05 北京搜狗科技发展有限公司 Method and system for updating user vocabulary synchronouslly
CN101316256A (en) * 2007-05-28 2008-12-03 微码(北京)移动技术有限公司 Data updating method
CN102622251A (en) * 2012-03-07 2012-08-01 深圳市凯立德欣软件技术有限公司 Method and server for managing navigation software upgrading
CN102724297A (en) * 2012-05-25 2012-10-10 上海传漾网络科技有限公司 Method for increasing access speed in browser/server (BS) architecture advertisement management system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618498A (en) * 2015-02-13 2015-05-13 深圳市创梦天地科技有限公司 Data resource synchronizing method and server
CN106055420A (en) * 2016-05-18 2016-10-26 沈阳东软医疗系统有限公司 Method, device and equipment for data verification
CN106055420B (en) * 2016-05-18 2019-07-16 东软医疗系统股份有限公司 A kind of data verification method, device and equipment
CN106161623A (en) * 2016-07-05 2016-11-23 上海帝联信息科技股份有限公司 Caching server, renewal server and data-updating method
CN109446205A (en) * 2017-08-28 2019-03-08 中国电信股份有限公司 Judge the device and method of data mode and the device and method that data update
CN109446205B (en) * 2017-08-28 2021-03-16 中国电信股份有限公司 Device and method for judging data state and device and method for updating data

Also Published As

Publication number Publication date
CN103327026B (en) 2016-03-02

Similar Documents

Publication Publication Date Title
CN109391673B (en) Method, system and terminal equipment for managing update file
CN103812849A (en) Local cache updating method and system, client and server
CN109725923A (en) A kind of software light weight update method, device and equipment
CN109905431B (en) Message processing method and system, storage medium and electronic equipment
CN111510466B (en) Data updating method and device for client, electronic equipment and readable medium
CN103327026A (en) Data updating method and updating system
CN111857772A (en) Method and equipment for remote transmission and dynamic loading of terminal edge application program
CN105530323B (en) File upgrading method, related equipment and system
CN114697304B (en) Gray release method, system, device, equipment and storage medium
CN112865927B (en) Message delivery verification method, device, computer equipment and storage medium
CN110677443A (en) Data transmitting and receiving method, transmitting end, receiving end, system and storage medium
US8499092B2 (en) Validating download success
CN113127921A (en) Method, electronic device and computer program product for data management
CN111629054B (en) Message processing method, device and system, electronic equipment and readable storage medium
CN111327511B (en) Instant messaging method, system, terminal equipment and storage medium
CN104346101A (en) Dynamic storage space allocation system and method
CN113453371A (en) Method, base station, and computer storage medium for wireless communication
CN113076380A (en) Data synchronization method, device, system, equipment and storage medium
CN113132447A (en) Reverse proxy method and system
CN104580512A (en) Data processing method and device and distributed file system
CN112148324A (en) Method, apparatus and computer-readable storage medium for upgrading electronic device
CN114745281B (en) Data processing method and device
CN110262756B (en) Method and device for caching data
CN113422790B (en) Data management method and device, electronic equipment and computer readable storage medium
CN108241684B (en) Data updating method and cluster system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant