CN101464895A - Method, system and apparatus for updating internal memory data - Google Patents

Method, system and apparatus for updating internal memory data Download PDF

Info

Publication number
CN101464895A
CN101464895A CNA2009100009128A CN200910000912A CN101464895A CN 101464895 A CN101464895 A CN 101464895A CN A2009100009128 A CNA2009100009128 A CN A2009100009128A CN 200910000912 A CN200910000912 A CN 200910000912A CN 101464895 A CN101464895 A CN 101464895A
Authority
CN
China
Prior art keywords
version information
data
database
application server
internal memory
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.)
Pending
Application number
CNA2009100009128A
Other languages
Chinese (zh)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CNA2009100009128A priority Critical patent/CN101464895A/en
Publication of CN101464895A publication Critical patent/CN101464895A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method, a system and a device which are used for updating memory data, wherein, the method is applied to the system including an application server provided with internal memory and a database corresponding to the application server. The method comprises the following steps: the first version information of data in a database and the second version information of data in the internal storage of the application server are obtained by the application server; the first version information of data in a database and the second version information of data in the internal storage of the application server are compared by the application server; when the comparison result shows that the first version information is more updated than the second version information, the application server updates the data in the internal storage, the second version information is updated to be the first version information; and atomic operation is adopted for updating the data in the internal storage and the updating the second version information to be the first version information. By adopting the embodiment, the data retrieval efficiency is improved, the loads of the application server and the database are reduced, the validity of the inquiry is improved, and the version information is updated when the data is updated.

Description

A kind of mthods, systems and devices of updating memory data
Technical field
The present invention relates to technical field of the computer network, particularly a kind of mthods, systems and devices of updating memory data.
Background technology
In modern communication technology, database is used for providing to application server the business datum of application server needs, and application server is by accessing database, and the data in renewal and the use database realize the data sharing to database.
The data of storing in the database can be divided into two parts substantially: a part is the not frequent data of change in the database, and this part data is seldom upgraded, and belongs to comparatively stable data, and the data volume of this partial data is less in the database.Another part then belongs to more unsettled data, and this partial data is often upgraded.During the data of application server in using database, the data in the frequent reading database not only reduce the work efficiency of application server, influence the speed of reading of data.
In the prior art, use comparatively frequent data in advance to be stored in the internal memory of application server application server, the data of directly calling when needing to use in the self EMS memory are used.Because the data in the database can change, corresponding data keep synchronously in data and the database in the internal memory in order to make, and adopt usually database is carried out timing to inquire about, and the data in the internal memory are carried out the timing renewal.
In the process that realizes the application, the inventor finds that there is following problem at least in prior art:
After each inquiry, all the data in the database must be reloaded internal memory, yet, the great majority inquiry all is invalid inquiry, does not need synchrodata, therefore, the pressure that data synchronization has increased application server and database server is all carried out in each inquiry, reduces work efficiency.
Summary of the invention
The embodiment of the present application provides a kind of mthods, systems and devices of updating memory data, improves the efficient of data query, reduces the load of application server and database, improves the validity of inquiry.
For achieving the above object, the embodiment of the present application provides a kind of method of updating memory data on the one hand, specifically is used for comprising the system of application server with internal memory and the database corresponding with described application server, comprising:
Second version information of the first version information of data and described application server data in EMS memory in the more described database of described application server;
When described comparative result is that described first version information is during newly in described second version information, described application server is according to the data in the described internal memory of described database update, and to upgrade described second version information be described first version information, and the data in the described internal memory of described renewal are the operation that described first version information is atomicity with upgrading described second version information.
Wherein, described application server also comprises before obtaining the first version information of data in the described database:
The version information corresponding with data in the database is set;
Demand according to described application server is upgraded the data in the described database, data after the renewal are described more new data, and to upgrade described version information be described first version information, to the data in the described database upgrade with the version information that upgrades data in the described database be the operation that described first version information is atomicity.
Wherein, the described setting version information corresponding with data in the described database also comprises afterwards:
Application server is inquired about the first version information in the described database.
Wherein, when described comparative result is described first version information when identical with described second version information, finish the Data Update in the described internal memory.
Wherein, when described comparative result is that described first version information is old during in described second version information, described application server obtains described first version information again.
Wherein, upgrade the described first version information and/or the second version packets of information and draw together number of times item and the action-item that upgrades the described first version information and/or second version information.
Wherein, described application server upgrades the data to be updated in the described internal memory, comprise,
Described application server is inquired about more new data corresponding with described first version information in the described database according to described first version information;
Described application server obtains more new data corresponding with described first version information in the described database;
Described application server upgrades the data to be updated in the described internal memory according to the corresponding more new data of described first version information that obtain and described.
Wherein, after described application server upgrades data to be updated in the described internal memory, if upgrade described second version information is described first version information failure, the data of then recovering in the described internal memory are described data to be updated, and application server upgrades the data to be updated in the described internal memory again and upgrades described second version information is described first version information.
A kind of system of updating memory data also is provided on the one hand, comprises:
Application server, be used for obtaining the first version information of described database data, and second version information of described application server data in EMS memory, the first version information of the data in the more described database and second version information of described application server data in EMS memory, when described comparative result is that described first version information is during newly in described second version information, according to the data in the described internal memory of described database update, and to upgrade described second version information be described first version information, and the data in the described internal memory of described renewal are the operation that described first version information is atomicity with upgrading described second version information.
Wherein, also comprise:
Version information is provided with equipment, be used for being provided with and the corresponding version information of described database data, demand according to described application server is upgraded the data in the described database, data after the renewal are described more new data, and to upgrade described version information be described first version information, to the data in the described database upgrade with the version information that upgrades data in the described database be the operation that described first version information is atomicity.
Database is used to store the required data of application server.
A kind of application server of updating memory data also is provided on the one hand, comprises:
Acquisition module is used for obtaining the first version information and second version information in described application server internal memory of database data;
Comparison module is used for second version information of the first version information and the described data in EMS memory of more described database data;
Update module, be used for when described comparative result be that described first version information is during newly in described second version information, according to the data in the described internal memory of described database update, and to upgrade described second version information be described first version information, and the data in the described internal memory of described renewal are the operation that described first version information is atomicity with upgrading described second version information.
Wherein, also comprise:
Enquiry module, the first version information that is used for inquiring about described database.
Wherein, when described acquisition module also is used for comparative result when described comparison module and is the old value in described second version information of described first version information, obtain in the described database first version information again corresponding to described internal storage data.
Comprise that also a kind of version information of updating memory data is provided with equipment, comprising on the one hand:
Module is set, is used for being provided with the version information corresponding with the database data;
Update module, be used for the data of described database being upgraded according to the demand of described application server, and to upgrade described version information be described first version information, to the data in the described database upgrade with the version information that upgrades data in the described database be the operation that described first version information is atomicity.
Compared with prior art, the embodiment of the present application has the following advantages: by the embodiment of the present application as can be known, the efficient of data query improves, and has reduced the load of application server and database, improve the validity of inquiry, and in Data Update, upgrade version information.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the present application, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiment of the application, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is a kind of internal storage data method for updating process flow diagram of the embodiment of the present application;
Fig. 2 is the particular flow sheet of a kind of internal storage data method for updating of the embodiment of the present application;
Fig. 3 is the process flow diagram of a kind of internal storage data method for updating of the embodiment of the present application;
Fig. 4 is the process flow diagram of a kind of internal storage data method for updating of the embodiment of the present application;
Fig. 5 is the system architecture synoptic diagram of a kind of updating memory data of the embodiment of the present application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment only is a part of embodiment of the application, rather than whole embodiment.Based on the embodiment among the application, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the application's protection.
The embodiment of the present application provides a kind of internal storage data method for updating, as shown in Figure 1, specifically is used for comprising the system of application server with internal memory and the database corresponding with application server, comprise,
Step S101, application server obtain second version information of the first version information and the application server data in EMS memory of data in the database;
Step S102, second version information of the first version information of data and application server data in EMS memory in the application server comparison database;
Step S103, when comparative result is that first version information is during newly in second version information, application server is according to the data in the database update internal memory, and to upgrade second version information be first version information, and the data in the updating memory are the operation of atomicity for first version information with upgrading second version information.
By the embodiment of the present application as can be known, the efficient of data query improves, and has reduced the load of application server and database, improves the validity of inquiry, and upgrades version information in Data Update.
The embodiment of the present application provides a kind of internal storage data method for updating, as shown in Figure 2, comprises,
Step S201 is provided with the corresponding version information of the data of being stored in database.The business datum that database is used to store application server and shares is provided with the storage space of a reservation at database, and configuration information record in this space is used for the version information of the database of record data corresponding with application server.In actual applications, can have following several situation:
(1) in some cases, as in the local scope, the individual data storehouse only disposes the version information corresponding to this application server only for the wherein application server in this scope provides business datum in the database.
(2) databases can provide business datum to many application servers, so storage space can corresponding a plurality of application servers in the database, store a plurality of version informations.Different editions information is used to identify the business datum that the application corresponding server uses.
For example, database is to application server A, and application server B, application server C provide business datum to share, and corresponding to above-mentioned application server, database configuration version information respectively can be a1, b1, c1, is example with database 1, and configuration relation is as follows:
Application server A--〉version information a1;
Application server B--〉version information b1;
Application server C--〉version information c1.
(3) for an application server, also be not limited to the business datum of using in the database, also can use the business datum in a plurality of databases, the database of application server correspondence is to this application server difference configuration version information, with application server A is example, and configuration relation is as follows:
Database 1--〉version information a1;
Database 2--〉version information a2;
Database 3--〉version information a3.
In sum, in a database, can comprise and the corresponding a plurality of version informations of different application server,, also can be complementary with different databases for an application server.
Step S202, in the Query Database corresponding to the business datum version information of application server internal memory.
According to the demand of application server, the data of storing in the database all can be upgraded at any time, after data of database is upgraded, can upgrade upgrading relevant business datum version information with this.
Data of database upgraded is specially:
Application server inserts more new data to database;
Database root according to this more new data carry out former Data Update, and after renewal is finished, upgrade corresponding version information.
Upgrade the version packets of information and draw together the update times item that upgrades version information and upgrade action-item,, version information is upgraded according to the update mode of application server to business datum.
The number of times that the update times item is updated for this version information upgrades the mode that adds up that adopts to the number of times item, promptly upgrades once, and this number of times item adds 1.Upgrade the action-item concrete operations of secondary data renewal for this reason.
For example, after application server A upgrades the former data of database 1, increased new data, " a1 " upgrades to original version information, and the version information after the renewal is " a1-1-A ", wherein-1 expression has been upgraded 1 time, number of times item+1, A represents this time to upgrade to be operating as the increase data, promptly, action-item A (Add increases).When renewal was operating as deleted data, then action-item was D (Delete, deletion).Perhaps, if just the former data in the database are revised, and do not increase or reduce data volume, then action-item is U (Update refreshes), and former data are refreshed.When once upgrading when database carried out multi-pass operations, number of times item+1 then, action-item can (Multi, repeatedly), modification time be represented the modification time to database, when this record changes in the database, more upgrades this time new data the time for M.
Be stored in the information record in the database, as shown in the table:
Field description Field Type Whether can be empty Describe
Version information Data_version Number(15) N Versions of data information, order increases progressively
Action type Op_type Varchar2(1) N A-add (increase data) D-delete (deleted data) U-update (more new data) M-more (many records of single job)
The business association key Biz_key Varchar2(256) Y From database, obtain the data that are updated in the data according to this value, come the internal memory of incremental update application server
Modification time Gmt_modified Timestamp(6) N
The operation of upgrading data manipulation and upgrading version information is the operation of atomicity, promptly upgrade data manipulation after, and then upgrade the operation of version information, can not be interrupted by other operations between the two.
Business datum version information corresponding to the application server internal memory in the Query Database is specifically as follows:
Application server is inquired about the version information corresponding with this application server in the headspace of database, obtain this version information.This inquiry version information can be regularly inquiry, and the time can be provided with in advance.Also can be real-time inquiry.
This obtains version information and is specifically as follows:
After application server inquires corresponding version information, send the version information request of obtaining to database, database root sends corresponding version information according to this request, and application server receives this version information;
Or, after application server inquires corresponding version information, directly obtain this version information.
The version information of corresponding data is by obtaining comprising the information record of this version information, extracting the version information acquisition in this information record in the above-mentioned database that obtains.
Step S203, the version information that relatively obtains and the version information of data in EMS memory.Be made as first version information at this version information that database is obtained, original version information in the application server internal memory is made as second version information.
If first version information is then changeed step S204 newly in second version information;
If first version information is old in second version information, then change step S205;
If first version information equals second version information, when promptly first version information is identical with second version information, then change step S206.
In step S203, application server compares the version information of the corresponding data of database and the version information in the internal memory, and this comparison procedure is specifically as follows:
(1) first version information is newly in second version information
Data in the database are upgraded with respect to the data of storing in the internal memory, therefore, need upgrade the data in the internal memory, change step S204.
Step S204 when first version information during newly in second version information, upgrades the version information of data in the updating memory to the data in the internal memory.
At this, the operation that the renewal operation of the data in the internal memory and the version information of data in EMS memory upgrade is the operation of atomicity, promptly upgrade data manipulation after, and then upgrade the operation of version information, can not be interrupted by other operations between the two.
Carrying out Data Update is specially:
Application server upgrades and the corresponding data of this version information to database request according to this version information that obtains, and database root sends corresponding data according to this request to application server;
Or application server directly obtains corresponding data according to the version information that obtains from database.
Data in the application server updating memory comprise,
Application server is according to the version information that is obtained by the database place, data corresponding with this version information in the Query Database;
Application server obtains the data corresponding with this version information that obtains;
Application server is according to obtaining the data corresponding with this version information that obtains, the data in the updating memory.
(2) first version information is old in second version information
The explanation of this kind situation, versions of data in the database is lower than the version of data in EMS memory, since in the internal memory data from database, therefore the version information in the internal memory should be less than or equal to the versions of data information in the database, if the versions of data in the database is higher than the situation of the version of data in EMS memory, illustrate that then the version of the data in the incorrect or former internal memory of data of database version that obtains has problem.Need obtain the version information of corresponding data in the database again, and check and change step S205 by the version information of data in EMS memory, when avoiding database to carry out Data Update, only upgrade data, but do not upgraded version information, or obtained the situation of version information mistake in the internal memory.
Step S205, the version information that obtains is different with the version information in the internal memory, obtains the version information of corresponding data in the database again, and checks the version information of data in EMS memory.
(3) first version information equals second version information
At this moment, the version of corresponding data is identical with versions of data in the internal memory in the database, does not need to upgrade, and changes step S206.
Step S206, the version information that obtains is identical with the version information of data in EMS memory, finishes the renewal to data in EMS memory.
After the data in the application server updating memory, be first version information failure if upgrade second version information, then recover the data in the internal memory, application server carries out the data in the updating memory again, and to upgrade second version information be first version information.For example, when carrying out updating memory data or version information, linking between database and the application server broken down, then application server can set in advance a space with temporary storaging data in internal memory, in order to when more new data is with the failure of renewal version information, buffer memory is the data updated part.
At this timing device can be set in application server inside, after the application server internal storage data upgrades failure, when internal memory does not upgrade in a set time, when recovery is upgraded the data in the internal memory, can from database, obtain the data corresponding again according to first version information with first version information, the data of obtaining in the database are combined with data in the buffer memory, and the data in the application server internal memory are upgraded again.
In the embodiment of the present application, each steps flow chart order can adjust accordingly according to actual conditions.
By the embodiment of the present application as can be known, the efficient of data query improves, and has reduced the load of application server and database, improves the validity of inquiry, and upgrades version information in Data Update.
As shown in Figure 3, a kind of internal storage data method for updating embodiment comprises,
1, application server A inserts 1 data to database; Database is before upgrading its data, and application server is made amendment to data of database, is example with application server A, inserts data in database, and these data have comprised the data of needs changes.
2, database carries out Data Update, and the while is the version information of new data more; According to the data that application server A sends, the corresponding data in the database is upgraded, and after carrying out Data Update the version information of new data more.
3, application server B obtains version information, when the version information of database bigger 1 the time than the version information of application server B, according to corresponding data in the internal memory of data of database version information renewal application server B, simultaneously the version information of application server B is updated to the version information of database.When application server B need upgrade the data of self, at first, judge whether that according to this version information needs upgrade the data of self EMS memory by the version information of Query Database.
Wherein application server B can be for regularly obtaining version information.
In the embodiment of the present application, each steps flow chart order can adjust accordingly according to actual conditions.
By the embodiment of the present application as can be known, the efficient of data query improves, and the record strip number that returns also only has one, and promptly version information has reduced the load of application server and database, improves the validity of inquiry, and upgrades version information in Data Update.
In the above-described embodiments, application server A also can send many data to database simultaneously when a Data Update, and this internal storage data method for updating comprises,
1, application server A inserts many data to database; Database is before upgrading its data, and application server is made amendment to data of database, is example with application server A, inserts data in database, and these data have comprised the data of needs changes.
2, database carries out Data Update, and the while is the version information of new data more; According to the data that application server A sends, the corresponding data in the database is upgraded, and after carrying out Data Update the version information of new data more.
3, application server B obtains version information, when the version information of database is bigger 1 the time than the version information of application server B, upgrades all data in the application server B internal memory, simultaneously the version information of application server B is updated to the version information of database.When application server B need upgrade the data of self, at first, judge whether that according to this version information needs upgrade the data of self EMS memory by the version information of Query Database.
After the data to be updated in the application server updating memory, if upgrade the version information failure, then recover the data in the internal memory, application server carries out the data in the updating memory again and upgrades version information.
In the embodiment of the present application, each steps flow chart order can adjust accordingly according to actual conditions.
By the embodiment of the present application as can be known, the efficient of data query improves, and has reduced the load of application server and database, improves the validity of inquiry, and upgrades version information in Data Update.
As shown in Figure 4, a kind of internal storage data method for updating comprises,
1, application server A inserts 1 data to database;
2, application server B inserts 1 data to database; Database is before upgrading its data, and application server is made amendment to data of database, is example with application server A and application server B, inserts data in database, and these data have comprised the data of needs changes.
3, database carries out Data Update, and the while is the version information of new data more; According to the data that application server A and application server B send, the corresponding data in the database is upgraded, and after carrying out Data Update the version information of new data more.
4, application server C obtains version information, when the version information of database is bigger 2 the time than the version information of application server C, upgrades all data in the application server C internal memory, simultaneously the version information of application server C is updated to the version information of database.When application server C need upgrade the data of self, at first, judge whether that according to this version information needs upgrade the data of self EMS memory by the version information of Query Database.
After the data to be updated in the application server updating memory, if upgrade the version information failure, then recover the data in the internal memory, application server carries out the data in the updating memory again and upgrades version information.
In the embodiment of the present application, each steps flow chart order can adjust accordingly according to actual conditions.
By the embodiment of the present application as can be known, the efficient of data query improves, and has reduced the load of application server and database, improves the validity of inquiry, and upgrades version information in Data Update.
As shown in Figure 5, the embodiment of the present application also provides a kind of system of updating memory data, comprising:
Application server 510, be used for obtaining second version information of the first version information and application server 510 data in EMS memory of database 530 data, second version information of the first version information of the data in the comparison database 530 and application server 510 data in EMS memory, when comparative result is that first version information is during newly in second version information, according to the data in database 530 updating memory, and to upgrade second version information be first version information, and the data in the updating memory are the operation of atomicity for first version information with upgrading second version information.
Wherein, also comprise:
Version information is provided with equipment 520, be used for being provided with and the corresponding version information of described database data, demand according to described application server is upgraded the data in the described database, and to upgrade described version information be described first version information, to the data in the described database upgrade with the version information that upgrades data in the described database be the operation that described first version information is atomicity.
Database 530 is used to store the required data of application server.
Wherein, application server 510 comprises:
Acquisition module 511 is used for obtaining the first version information of database data and second version information in the application server internal memory;
Comparison module 512 is used for second version information of the first version information and the data in EMS memory of comparison database data;
Update module 513, be used for when comparative result be that first version information is during newly in second version information, according to the data in the database update internal memory, and to upgrade second version information be first version information, and the data in the updating memory are the operation of atomicity for first version information with upgrading second version information.
Wherein, application server 510 also comprises:
Enquiry module 514 is used for the first version information of Query Database.
Enquiry module 514 also is used for when the data of update module 513 updating memory, according to first version information, data corresponding in the Query Database 530 with first version information, acquisition module 511 also is used to obtain the data corresponding with first version information, update module 513 is according to acquisition module 511 data corresponding with first version information that obtain, the data in the updating memory.
Wherein, when acquisition module 511 also is used for comparative result when comparison module and is the old value in second version information of first version information, obtain in the database first version information again corresponding to internal storage data.
Above-mentioned version information is provided with equipment 520, comprising:
Module 521 is set, is used for being provided with and the corresponding version information of database 530 data;
Update module 522, be used for the data of database 530 being upgraded according to the demand of application server, and to upgrade version information be first version information, to the data in the database 530 upgrade with new database 530 more in the version information of data be the operation of atomicity for first version information.
In the foregoing description, first version information is the version information of data correspondence in the database, and second version information is a version information corresponding with data in the application server internal memory.
After the data to be updated in the application server updating memory, be the failure of first version information if upgrade second version information, the data of then recovering in the internal memory are data to be updated, and application server carries out the data to be updated in the updating memory again and upgrades second version information is first version information.
By the embodiment of the present application as can be known, the efficient of data query improves, and has reduced the load of application server and database, improves the validity of inquiry, and upgrades version information in Data Update.
For the convenience of describing, the each several part of the above system is divided into various modules with function or equipment is described respectively.Certainly, when enforcement is of the present invention, can in same or a plurality of softwares or hardware, realize the function of each module or equipment
Above-mentioned module can be distributed in a device, also can be distributed in multiple arrangement.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Through the above description of the embodiments, those skilled in the art can be well understood to the application and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding, the application's technical scheme can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the application.
It will be appreciated by those skilled in the art that accompanying drawing is the synoptic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the application is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
Above-mentioned the embodiment of the present application sequence number is not represented the quality of embodiment just to description.
More than disclosed only be several specific embodiments of the application, still, the application is not limited thereto, any those skilled in the art can think variation all should fall into the application's protection domain.

Claims (16)

1, a kind of method of updating memory data specifically is used for comprising it is characterized in that the system of application server with internal memory and the database corresponding with described application server, comprising:
Described application server obtains second version information of the first version information and the described application server data in EMS memory of data in the described database;
Second version information of the first version information of data and described application server data in EMS memory in the more described database of described application server;
When described comparative result is that described first version information is during newly in described second version information, described application server is according to the data in the described internal memory of described database update, and to upgrade described second version information be described first version information, and the data in the described internal memory of described renewal are the operation that described first version information is atomicity with upgrading described second version information.
2, the method for claim 1 is characterized in that, the first version information that described application server obtains data in the described database also comprises before:
The version information corresponding with data in the database is set;
Demand according to described application server is upgraded the data in the described database, and to upgrade described version information be described first version information, to the data in the described database upgrade with the version information that upgrades data in the described database be the operation that described first version information is atomicity.
3, method as claimed in claim 2 is characterized in that, the described setting version information corresponding with data in the described database also comprises afterwards:
Application server is inquired about the first version information in the described database.
4, the method for claim 1 is characterized in that, when described comparative result is described first version information when identical with described second version information, finishes the Data Update in the described internal memory.
5, the method for claim 1 is characterized in that, when described comparative result is that described first version information is old during in described second version information, described application server obtains described first version information again.
6, the method for claim 1 is characterized in that, upgrades the described first version information and/or the second version packets of information and draws together number of times item and the action-item that upgrades the described first version information and/or second version information.
7, the method for claim 1 is characterized in that, described application server upgrades the data in the described internal memory, comprise,
Described application server is according to described first version information, inquires about in the described database and the corresponding data of described first version information;
Described application server obtains in the described database and the corresponding data of described first version information;
Described application server upgrades the data in the described internal memory according to the corresponding data of described first version information that obtain and described.
8, as claim 1 or 7 described methods, it is characterized in that, after described application server upgrades data in the described internal memory, if upgrade described second version information is described first version information failure, then recover the data in the described internal memory, application server upgrades the data in the described internal memory again, and to upgrade described second version information be described first version information.
9, a kind of system of updating memory data is characterized in that, comprising:
Application server, be used for obtaining the first version information of described database data, and second version information of described application server data in EMS memory, the first version information of the data in the more described database and second version information of described application server data in EMS memory, when described comparative result is that described first version information is during newly in described second version information, according to the data in the described internal memory of described database update, and to upgrade described second version information be described first version information, and the data in the described internal memory of described renewal are the operation that described first version information is atomicity with upgrading described second version information.
10, system as claimed in claim 9 is characterized in that, also comprises:
Version information is provided with equipment, be used for being provided with and the corresponding version information of described database data, demand according to described application server is upgraded the data in the described database, and to upgrade described version information be described first version information, to the data in the described database upgrade with the version information that upgrades data in the described database be the operation that described first version information is atomicity.
11, system as claimed in claim 9 is characterized in that, also comprises: database is used to store the required data of application server.
12, a kind of application server of updating memory data is characterized in that, comprising:
Acquisition module is used for obtaining the first version information and second version information in described application server internal memory of database data;
Comparison module is used for second version information of the first version information and the described data in EMS memory of more described database data;
Update module, be used for when described comparative result be that described first version information is during newly in described second version information, according to the data in the described internal memory of described database update, and to upgrade described second version information be described first version information, and the data in the described internal memory of described renewal are the operation that described first version information is atomicity with upgrading described second version information.
13, application server as claimed in claim 12 is characterized in that, also comprises:
Enquiry module, the first version information that is used for inquiring about described database.
14, application server as claimed in claim 13, it is characterized in that, described enquiry module also is used for when update module is upgraded the data of described internal memory, according to described first version information, inquire about in the described database and the corresponding data of described first version information, acquisition module also is used to obtain and the corresponding data of described first version information, described update module obtain according to described acquisition module with the corresponding data of described first version information, upgrade the data in the described internal memory.
15, application server as claimed in claim 12, it is characterized in that, when described acquisition module also is used for comparative result when described comparison module and is the old value in described second version information of described first version information, obtain in the described database first version information again corresponding to described internal storage data.
16, a kind of version information of updating memory data is provided with equipment, it is characterized in that, comprising:
Module is set, is used for being provided with the version information corresponding with the database data;
Update module, be used for the data of described database being upgraded according to the demand of described application server, and to upgrade described version information be described first version information, to the data in the described database upgrade with the version information that upgrades data in the described database be the operation that described first version information is atomicity.
CNA2009100009128A 2009-01-21 2009-01-21 Method, system and apparatus for updating internal memory data Pending CN101464895A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2009100009128A CN101464895A (en) 2009-01-21 2009-01-21 Method, system and apparatus for updating internal memory data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2009100009128A CN101464895A (en) 2009-01-21 2009-01-21 Method, system and apparatus for updating internal memory data

Publications (1)

Publication Number Publication Date
CN101464895A true CN101464895A (en) 2009-06-24

Family

ID=40805470

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2009100009128A Pending CN101464895A (en) 2009-01-21 2009-01-21 Method, system and apparatus for updating internal memory data

Country Status (1)

Country Link
CN (1) CN101464895A (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789991A (en) * 2009-12-30 2010-07-28 中兴通讯股份有限公司 Method, device and mobile terminal for acquiring data change information
CN102253832A (en) * 2011-06-24 2011-11-23 上海北大方正科技电脑系统有限公司 Method and system for monitoring versions of function modules by using server application program
CN102917044A (en) * 2012-10-17 2013-02-06 广州杰赛科技股份有限公司 Method for synchronizing data between cloud management platform and cloud platform
CN104133827A (en) * 2013-09-29 2014-11-05 腾讯科技(深圳)有限公司 Database updating method and database updating system
CN104376073A (en) * 2014-11-14 2015-02-25 北京锐安科技有限公司 Database recovery method and device
CN104391862A (en) * 2014-10-23 2015-03-04 北京锐安科技有限公司 Method and device for updating cache data
CN105095313A (en) * 2014-05-22 2015-11-25 阿里巴巴集团控股有限公司 Data access method and equipment
CN106940699A (en) * 2016-01-05 2017-07-11 阿里巴巴集团控股有限公司 A kind of synchronization processing method of internal storage data, device, server and system
CN107133234A (en) * 2016-02-29 2017-09-05 阿里巴巴集团控股有限公司 The method of data cached renewal, apparatus and system
WO2017166815A1 (en) * 2016-03-30 2017-10-05 杭州海康威视数字技术股份有限公司 Data updating method and device for a distributed database system
CN107256223A (en) * 2017-04-28 2017-10-17 努比亚技术有限公司 A kind of method, device and terminal for updating internal storage data
CN107330604A (en) * 2017-06-26 2017-11-07 携程旅游网络技术(上海)有限公司 The management method and system of air ticket air control rule
CN107577775A (en) * 2017-09-08 2018-01-12 北京奇艺世纪科技有限公司 One kind reads data method, device, electronic equipment and readable storage medium storing program for executing
CN107992354A (en) * 2017-11-14 2018-05-04 网易无尾熊(杭州)科技有限公司 For reducing the method and device of memory load
CN109413127A (en) * 2017-08-18 2019-03-01 北京京东尚科信息技术有限公司 A kind of method of data synchronization and device
CN109586948A (en) * 2018-10-16 2019-04-05 深圳壹账通智能科技有限公司 Update method, apparatus, computer equipment and the storage medium of system configuration data
CN109902130A (en) * 2019-01-31 2019-06-18 北京明略软件系统有限公司 A kind of date storage method, data query method and apparatus, storage medium
CN110750546A (en) * 2019-10-21 2020-02-04 中国民航信息网络股份有限公司 Database updating method and device
CN112597123A (en) * 2020-11-20 2021-04-02 贝壳技术有限公司 Data multi-version dynamic switching method and device
CN112613845A (en) * 2020-12-25 2021-04-06 中电金信软件有限公司 Task allocation processing method and device and workflow system
WO2021208228A1 (en) * 2020-04-14 2021-10-21 苏宁易购集团股份有限公司 Data processing method and apparatus, and computer device and storage medium

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789991A (en) * 2009-12-30 2010-07-28 中兴通讯股份有限公司 Method, device and mobile terminal for acquiring data change information
CN102253832A (en) * 2011-06-24 2011-11-23 上海北大方正科技电脑系统有限公司 Method and system for monitoring versions of function modules by using server application program
CN102253832B (en) * 2011-06-24 2013-11-13 上海北大方正科技电脑系统有限公司 Method and system for monitoring versions of function modules by using server application program
CN102917044B (en) * 2012-10-17 2015-04-29 广州杰赛科技股份有限公司 Method for synchronizing data between cloud management platform and cloud platform
CN102917044A (en) * 2012-10-17 2013-02-06 广州杰赛科技股份有限公司 Method for synchronizing data between cloud management platform and cloud platform
CN104133827A (en) * 2013-09-29 2014-11-05 腾讯科技(深圳)有限公司 Database updating method and database updating system
CN104133827B (en) * 2013-09-29 2016-04-27 腾讯科技(深圳)有限公司 A kind of database update method and the system of renewal
CN105095313A (en) * 2014-05-22 2015-11-25 阿里巴巴集团控股有限公司 Data access method and equipment
CN105095313B (en) * 2014-05-22 2018-12-28 阿里巴巴集团控股有限公司 A kind of data access method and equipment
CN104391862A (en) * 2014-10-23 2015-03-04 北京锐安科技有限公司 Method and device for updating cache data
CN104376073A (en) * 2014-11-14 2015-02-25 北京锐安科技有限公司 Database recovery method and device
CN106940699A (en) * 2016-01-05 2017-07-11 阿里巴巴集团控股有限公司 A kind of synchronization processing method of internal storage data, device, server and system
CN106940699B (en) * 2016-01-05 2021-02-05 创新先进技术有限公司 Synchronous processing method, device, server and system for memory data
CN107133234A (en) * 2016-02-29 2017-09-05 阿里巴巴集团控股有限公司 The method of data cached renewal, apparatus and system
WO2017166815A1 (en) * 2016-03-30 2017-10-05 杭州海康威视数字技术股份有限公司 Data updating method and device for a distributed database system
US11176110B2 (en) * 2016-03-30 2021-11-16 Hangzhou Hikvision Digital Technology Co., Ltd. Data updating method and device for a distributed database system
CN107256223A (en) * 2017-04-28 2017-10-17 努比亚技术有限公司 A kind of method, device and terminal for updating internal storage data
CN107330604A (en) * 2017-06-26 2017-11-07 携程旅游网络技术(上海)有限公司 The management method and system of air ticket air control rule
CN109413127A (en) * 2017-08-18 2019-03-01 北京京东尚科信息技术有限公司 A kind of method of data synchronization and device
CN107577775A (en) * 2017-09-08 2018-01-12 北京奇艺世纪科技有限公司 One kind reads data method, device, electronic equipment and readable storage medium storing program for executing
CN107577775B (en) * 2017-09-08 2021-12-10 北京奇艺世纪科技有限公司 Data reading method and device, electronic equipment and readable storage medium
CN107992354B (en) * 2017-11-14 2020-07-31 阿里巴巴(中国)有限公司 Method and device for reducing memory load
CN107992354A (en) * 2017-11-14 2018-05-04 网易无尾熊(杭州)科技有限公司 For reducing the method and device of memory load
CN109586948A (en) * 2018-10-16 2019-04-05 深圳壹账通智能科技有限公司 Update method, apparatus, computer equipment and the storage medium of system configuration data
CN109902130A (en) * 2019-01-31 2019-06-18 北京明略软件系统有限公司 A kind of date storage method, data query method and apparatus, storage medium
CN110750546A (en) * 2019-10-21 2020-02-04 中国民航信息网络股份有限公司 Database updating method and device
CN110750546B (en) * 2019-10-21 2023-07-25 中国民航信息网络股份有限公司 Database updating method and device
WO2021208228A1 (en) * 2020-04-14 2021-10-21 苏宁易购集团股份有限公司 Data processing method and apparatus, and computer device and storage medium
CN112597123A (en) * 2020-11-20 2021-04-02 贝壳技术有限公司 Data multi-version dynamic switching method and device
CN112613845A (en) * 2020-12-25 2021-04-06 中电金信软件有限公司 Task allocation processing method and device and workflow system

Similar Documents

Publication Publication Date Title
CN101464895A (en) Method, system and apparatus for updating internal memory data
EP2281242B1 (en) Managing storage of individually accessible data units
CN102129478B (en) Database synchronization method and system thereof
CN101499069B (en) Internal memory database file updating method and apparatus
CN104090889B (en) Data processing method and system
CN104298760A (en) Data processing method and data processing device applied to data warehouse
CN108509462B (en) Method and device for synchronizing activity transaction table
CN106462592A (en) Systems and methods to optimize multi-version support in indexes
CN102142024A (en) Logical data backup and rollback using incremental capture in a distributed database
CN102202073A (en) Distributed system and data synchronization method thereof
CN103473239A (en) Method and device for updating data of non relational database
CN105956123A (en) Local updating software-based data processing method and apparatus
CN102043859A (en) Data updating method and device
CN108875077B (en) Column storage method and device of database, server and storage medium
EP2548134A1 (en) Method for database storage of a table with plural schemas
CN102609492B (en) Metadata management method supporting variable table modes
CN104424219A (en) Method and equipment of managing data documents
CN104657387A (en) Data query method and device
KR20190063835A (en) System for processing real-time data modification of in-memory database
CN107704573A (en) A kind of intelligent buffer method coupled with business
CN103268291A (en) Method for delaying persistent indexing metadata in flash memory storage system
CN104598652A (en) Database inquiry method and database inquiry device
CN103778219A (en) HBase-based method for updating incremental indexes
CN109213504A (en) A kind of stackable file system and its loading method and upgrade method
CN102768672A (en) Disk space management method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1131453

Country of ref document: HK

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20090624

REG Reference to a national code

Ref country code: HK

Ref legal event code: WD

Ref document number: 1131453

Country of ref document: HK