CN109597818A - Data-updating method, device, storage medium and equipment - Google Patents

Data-updating method, device, storage medium and equipment Download PDF

Info

Publication number
CN109597818A
CN109597818A CN201811438673.XA CN201811438673A CN109597818A CN 109597818 A CN109597818 A CN 109597818A CN 201811438673 A CN201811438673 A CN 201811438673A CN 109597818 A CN109597818 A CN 109597818A
Authority
CN
China
Prior art keywords
data
updated
request
queue
caching
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
CN201811438673.XA
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.)
Excellent Polytron Technologies Inc
Original Assignee
Excellent Polytron Technologies Inc
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 Excellent Polytron Technologies Inc filed Critical Excellent Polytron Technologies Inc
Priority to CN201811438673.XA priority Critical patent/CN109597818A/en
Publication of CN109597818A publication Critical patent/CN109597818A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of data-updating method, device, storage medium and equipment, this method comprises: obtaining at least one data that headend equipment is sent updates request;The data identified with identical data are updated into request storage and arrive queue;It updates request to the data in queue successively to handle, processing includes: to read data according to Data Identification and update the corresponding data to be updated of request;It updates and requests in response to data, handle data to be updated;Processed data to be updated are stored to caching;And judge whether the time of processing reaches predetermined period of time;If so, updating the data to be updated in caching into database, and suspend processing until the operation that data to be updated are updated to database is completed.

Description

Data-updating method, device, storage medium and equipment
Technical field
The present invention relates to internet data field of storage, and in particular to a kind of data-updating method, device, storage medium and Equipment.
Background technique
With the rapid development of internet technology, data service also becomes increasingly complex, and high concurrent scene is especially prevalent, such as In network cloud service, user uploads thousands of a small documents usually in a file directory, concomitantly to directory node It is read out and modifies.Quick response service request is not only needed under high concurrent scene, it is also necessary to guarantee the consistency of data.
The prior art for data under high concurrent scene update and read there are mainly two types of scheme, the first is in affairs In process, then first reading database data are modified, then database is written, and realize persistence.In high concurrent scene, to same A database key assignments needs constantly to read and modify, at this moment handles each the affairs of the data key values, arranged Team sequentially enters, and reads and modifies, database is then written;If affairs are not lined up, it is inconsistent to will cause database data.But It is that this scheme handles data by way of transaction queue, it is bad to frequently can lead to performance, several hundred requests of processing per second.Often The delay of a issued transaction is also relatively high.
Second scheme is to handle data in the buffer.The buffer area (Cache) of caching namely data exchange, by It is more faster than database in the speed of service of caching, therefore the effect cached is just to aid in computer and quickly runs.This scheme Solve the problems, such as that delay is high.But if data are first written to caching, returned successfully to user, then in delay machine or caching In the case where loss, data be it is unsafe, cause loss of data.Although solving latency issue, data reliability is obtained not To guarantee.
Summary of the invention
To solve the above-mentioned problems.The present invention provides a kind of data-updating method, device, storage medium and equipment.
A kind of data-updating method is provided according to the first aspect of the invention, comprising: is obtained headend equipment and is sent extremely Few data update request;The data identified with identical data are updated into request storage and arrive queue;To the queue In the data update request successively handled, the processing includes: to read the data more according to the Data Identification Newly request corresponding data to be updated;It updates and requests in response to the data, handle the data to be updated;It stores processed The data to be updated to caching;And
Judge whether the time of the processing reaches predetermined period of time;If so, by described in the caching to more New data is updated into database, and suspends the processing until the operation that the data to be updated are updated to database is completed.
Further, after the data to be updated are updated to the database, Xiang Suoshu headend equipment sends data more The response message newly completed.
Further, the data in the queue are updated to request successively to carry out handling and further comprises, according to elder generation The data for reading the queue into the sequence first gone out update request.
Further, according to the Data Identification, reading the corresponding data to be updated of the data update request includes:
Judge in the caching with the presence or absence of corresponding data to be updated;
If so, reading corresponding data to be updated from the caching;
If it is not, then reading corresponding data to be updated from the database.
According to the second aspect of the invention, a kind of data update apparatus is provided, module is obtained, for obtaining headend equipment hair At least one data sent update request;Queue module is deposited for the data that there is identical data to identify to be updated request Store up queue;Processing module is successively handled, the processing module for updating request to the data in the queue It include: reading unit, for reading the data and updating the corresponding data to be updated of request according to the Data Identification;Processing Unit is requested for updating in response to the data, handles the data to be updated;Storage unit, it is processed for storing The data to be updated to caching;And
Timing module, for judging whether the time of the processing reaches predetermined period of time;If so, by the caching In the data to be updated update into database, and suspend the processing until the data to be updated are updated to database Operation complete.
Further, after the data to be updated are updated to the database, Xiang Suoshu headend equipment sends data more The response message newly completed.
Further, the data in the queue are updated to request successively to carry out handling and further comprises, according to elder generation The data for reading the queue into the sequence first gone out update request.
Further, which is characterized in that according to the Data Identification, it is corresponding to be updated to read the data update request Data include:
Judge in the caching with the presence or absence of corresponding data to be updated;
If so, reading corresponding data to be updated from the caching;
If it is not, then reading corresponding data to be updated from the database.
According to the third aspect of the invention we, a kind of non-volatile memory medium, the non-volatile memory medium are also provided With the instruction being stored therein, when executed, so that the data that processor executes above-mentioned first aspect update Method.
According to the fourth aspect of the invention, a kind of equipment, including memory are also provided, the executable finger of computer is stored with It enables, processor, the processor is configured to executing described instruction to implement the data-updating method of above-mentioned first aspect.
Compared with prior art, the main distinction and its effect are embodiment of the present invention:
The data-updating method of the embodiment of the present invention, it is not additional to database to deposit in service data updating processing Storage relies on, and reduces issued transaction delay and simplifies system complexity.In addition, the data-updating method of the embodiment of the present invention utilizes Database is written in more new data by delay, makes it possible to reduce the write-in number of database, and lifting system entirety carries energy Power.In addition, by successful according to database write-in as a result, end equipment sends response message forward, so that in burst delay machine Under scene, the data in caching can lose.As long as the update operation completed before, data are all reliable. In addition, the data-updating method of the embodiment of the present invention can be completed in a process, distributed transaction is not needed, volume has been saved Outer maintenance cost and avoid consistency risk.
Detailed description of the invention
Fig. 1 shows the hardware block diagram of the terminal of method of the invention.
Fig. 2 shows the flow charts of data-updating method according to an embodiment of the present invention.
Fig. 3 shows the module diagram of data update apparatus according to an embodiment of the present invention.
Specific embodiment
To keep purpose and the technical solution of the embodiment of the present invention clearer, below in conjunction with the attached of the embodiment of the present invention Figure, is clearly and completely described the technical solution of the embodiment of the present invention.Obviously, described embodiment is of the invention A part of the embodiment, instead of all the embodiments.Based on described the embodiment of the present invention, those of ordinary skill in the art Every other embodiment obtained, shall fall within the protection scope of the present invention under the premise of being not necessarily to creative work.
Embodiment there is provided a kind of embodiments of data-updating method according to the present invention, it should be noted that attached The step of process of figure illustrates can execute in a computer system such as a set of computer executable instructions, though also, So logical order is shown in flow charts, but in some cases, it can be to be different from shown by sequence execution herein Or the step of description.
Method implementation provided by the application mode can be held in mobile terminal, terminal or server Row.For running on computer terminals, Fig. 1 is the terminal of the data-updating method of embodiment according to the present invention Hardware block diagram.As shown in Figure 1, terminal 100 may include one or more (only showing one in figure) processing Device 101 (processor 101 can include but is not limited to central processor CPU, image processor GPU, digital signal processor DSP, The processing unit of Micro-processor MCV or programmable logic device FPGA etc.), the input/output interface 102 for being interacted with user, Memory 103 for storing data and the transmitting device 104 for communication function.Those of ordinary skill in the art can be with Understand, structure shown in FIG. 1 is only to illustrate, and does not cause to limit to the structure of above-mentioned electronic device.For example, terminal 100 may also include than shown in Fig. 1 more perhaps less component or with the configuration different from shown in Fig. 1.
Memory 103 can be used for storing data library, queue, application software software program and module, such as present invention is real Corresponding program instruction/the module of data-updating method in mode is applied, processor 101 is stored in memory 103 by operation Software program and module realize above-mentioned data-updating method thereby executing various function application and data processing. Memory 103 may include high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage fills It sets, flash memory or other non-volatile solid state memories.In some instances, memory 103 can further comprise relative to place The remotely located memory of device 101 is managed, these remote memories can pass through network connection to terminal 100.Above-mentioned net The example of network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 104 is used to that data to be received or sent via network, and network may include various connection types, such as Wired, wireless communication link or fiber optic cables etc..Above-mentioned network specific example may include the communication of terminal 100 The internet that supplier provides.
Under above-mentioned running environment, the present invention provides data-updating methods as shown in Figure 2.This method can be applied In server, executed by the processor in server.At least one application program, embodiment party of the present invention are installed in server The type of formula not defining application, can be system class application program, or software class application program.
Fig. 2 shows the flow charts of data-updating method 200 according to an embodiment of the present invention.As shown in Fig. 2, this method has Body process flow is as described below.
S210, at least one data update request that headend equipment is sent is obtained.
In an embodiment of the present invention, headend equipment includes but is not limited to smart phone, tablet computer, computer, front end Equipment is responsible for sending data update request to server.Data update request include Data Identification, the Data Identification be database, Caching and queue in data unique identification, for example, in database affairs key assignments.As an example, data update request It can be by the way that such as, network receives the data reception module of server or function call etc. to obtain.
S220, the data identified with identical data are updated to request storage to queue.
It is appreciated that queue is a kind of structure for storing data, for example, storehouse, list, Hash table etc..This step In, queue is used to store the data with identical data mark and updates request.Queue, which can be, pre-establishes and resides caching, It is also possible to obtain when data update request and establishes, which is not limited by the present invention.It, can be for not at the same time it can also understand Same Data Identification, establishes corresponding queue, and multiple and different queues can concurrently carry out following retouch independently of each other The various processing stated.
In concurrent scene, queue, which can continue storing data update, is requested, the maximum memory space until reaching queue, The memory space can determine that the present invention is without limitation according to hardware performance.
S230, the data in queue are updated and request successively to handle.
As an example, in the high concurrent scene of temporal sensitivity, queue can be used first in first out (FIFO, First-in, first-out) method, according to data update request request time sequencing, by data update request Storage in the queue, the request time of the request of queue bottom than the request at top request time earlier.In this way, in queue most Early request is handled at first, then reprocesses next earliest request, sends data according to headend equipment to ensure that The sequence for updating request successively handles these requests.As another example, in the concurrent field unrelated with the time sequencing of request Queuing is seized in Jing Zhong, the technology realization that such as mutual exclusion lock (Mutual exclusion, be abbreviated as Mutex) can be used, so that Each request is to be lined up successively to be handled.The processing is detailed below.
S231, according to Data Identification, read data and update and request corresponding data to be updated.
In order to reduce delay in concurrent scene, needs in the buffer to update data and request to handle.Specifically, When starting to process data update request, to judge that the data update and request whether the corresponding data to be updated have stored in In caching, the general Data Identification by request searches whether the data for having with like-identified in the buffer, if caching In stored the data to be updated, as long as then reading these data from caching;If there is no number to be updated in caching According to then then needing to read data to be updated to slow from database or other storage mediums via bus or network by interface In depositing, to carry out subsequent processing;If creation corresponds in the database also without corresponding data to be updated in database Target object after, in the caching that is read;Or target object is directly created in the buffer.
As another example, the data of data to be updated can update in initial data and request to be stored in queue Meanwhile it concurrently being read in caching from database or other storage mediums.It, can be further in this way under high concurrent scene Improve request processing speed in ground.
S232, it updates and requests in response to data, handle data to be updated.
Request is updated according to data, and corresponding data processing operation is executed to the data to be updated of reading.Illustratively, number Include according to processing operation hand over various easy arbitrary process, for example, on the increase and decrease of fund and inventory or the line of commodity the second kill, grasp It can also be the modification etc. of object properties.
S233, the processed data to be updated of storage to caching.
It is appreciated that caching can be common memory, but according to the design of server architecture, it is also possible to external slow It deposits, such as the databases such as Redis, Mongo.When the subsequent request in queue starts to process, it is only necessary to read previous in caching Request treated data to be updated.In this way, not needing reading database, data can give the request of next same key assignments It uses, data is directly obtained from caching, speed is faster;It can guarantee the serial of data manipulation again.
According to an embodiment of the invention, can change or return corresponding data more after data storage to caching to be updated The state newly requested shows that the business operation of the request has been completed.Later, the notification queue data have updated the business of request Through completing, the subsequent request in queue can be started to process, or be also possible to discharge mutual exclusion lock.Optionally, in some logarithms In scene relatively low according to security requirement but more demanding to process performance, at this time can further to the data more The response message for newly requesting corresponding headend equipment returned data to be updated successfully.It can be further improved 50% performance in this way.
S240, judge whether the time of processing reaches predetermined period of time.
Data in caching are not due to having persistence, and there are the risks of loss.Therefore the number according to concurrent request is needed Amount, presets the time cycle, periodically by the data to be updated write-in database in caching, completes data and updates.
As an example, can first or initial data in the queue when updating request and starting processed, open The timed tasks such as dynamic timer thread, when timer reaches predetermined period of time, by interface by the number to be updated in caching According to write-in database or other storage mediums, to complete the persistence of data.In general, in high concurrent, week predetermined time Phase is Microsecond grade.In order to guarantee the consistency of data manipulation, during database is written in data to be updated, can suspend pair The subsequent processing for updating request continues to execute the processing updated to data after the completion of the write-in of pending data library in queue.It is general next It says, in atomic operation magnitude, the duration that database write operation is spent is significantly larger than the handling duration of a request, therefore not It will appear data collision or inconsistent situation.
Optionally, complete in predetermined period processing data update request can cache in waited, wait until to more New data is updated to after database, then the corresponding all headend equipments batch of data update request of processing are completed into predetermined period Amount ground sends data and updates the response message completed.In this way, burst delay machine scene in, due to data do not have persistence it It is preceding that there is no the message that is updated successfully of headend equipment data is informed, then the data in caching can lose, as long as and it The preceding update operation completed, surface data has persisted, then data are all reliable.
Hereafter, terminate this process.
In actual test, for the prior art, a key assignments is updated by normal mode, read from caching every time and Modification, database is arrived in storage at once after modification.The results of property of test: 300 processing capacities per second.Main time-consuming is at queuing Reason, the write-in expense of network overhead and database share 300 database update operations for 1 second one.
According to an embodiment of the invention, a key assignments is updated by mode of the invention, the performance of test: local to call It can achieve 9000 processing capacities per second, than 30 times of Normal practice performance.For the set time period of 50ms, do within 1 second 20 database update operations, the quantity of database manipulation reduce 93%.
In conclusion data-updating method provided in this embodiment does not have database in service data updating processing Additional storage relies on, and reduces issued transaction delay and simplifies system complexity.In addition, the data of the embodiment of the present invention update Using delay database is written in more new data by method, makes it possible to reduce the write-in number of database, lifting system entirety It can bearing capacity.In addition, by successful according to database write-in as a result, end equipment sends response message forward, so that prominent Under the scene for sending out delay machine, the data in caching can lose.As long as the update operation completed, data are all before Reliably.In addition, the data-updating method of the embodiment of the present invention can be completed in a process, distributed transaction is not needed, It has saved additional maintenance cost and has avoided consistency risk.
Each method embodiment of the invention can be realized in a manner of software, magnetic part, firmware etc..Regardless of the present invention be with Software, magnetic part or firmware mode realize that instruction code may be stored in any kind of computer-accessible memory In (such as permanent perhaps revisable volatibility is perhaps non-volatile solid or non-solid, it is fixed or The replaceable medium etc. of person).Equally, memory may, for example, be programmable logic array (Programmable Array Logic, referred to as " PAL "), random access memory (Random Access Memory, referred to as " RAM "), it may be programmed read-only deposit Reservoir (Programmable Read Only Memory, referred to as " PROM "), read-only memory (Read-Only Memory, letter Claim " ROM "), electrically erasable programmable read-only memory (Electrically Erasable Programmable ROM, referred to as " EEPROM "), disk, CD, digital versatile disc (Digital Versatile Disc, referred to as " DVD ") etc..
Fig. 3 is the schematic block diagram of data update apparatus 300 according to an embodiment of the present invention.The device is above-mentioned for executing Method flow, comprising:
Module 310 is obtained, at least one data for obtaining headend equipment transmission update request;
Queue module 320, the data for that will have identical data to identify update request storage to queue;
Processing module 330 is successively handled for updating request to the data in queue, and processing module includes:
Reading unit 331, for reading data and updating the corresponding data to be updated of request according to Data Identification;
Processing unit 332 requests for updating in response to data, handles data to be updated;
Storage unit 333, for storing processed data to be updated to caching;And
Timing module 340, for judging whether the time of processing reaches predetermined period of time;
If so, by caching data to be updated update into database, and suspend processing until data to be updated more The new operation to database is completed.
In one example, after data to be updated are updated to database, end equipment sends data and updates the sound completed forward Answer message.
In one example, the data in queue are updated to request successively to carry out handling and further comprises, according to first in first out Sequence read queue data update request.
In one example, according to Data Identification, reading the corresponding data to be updated of data update request includes:
It whether there is corresponding data to be updated in judgement caching;
If so, reading corresponding data to be updated from caching;
If it is not, then reading corresponding data to be updated from database.
It should be noted that data update apparatus 300 can be configured as execute corresponding operation in method 200, Movement and process are omitted herein to these operations, movement and the description of process.
In conclusion data update apparatus provided in this embodiment does not have database in service data updating processing Additional storage relies on, and reduces issued transaction delay and simplifies system complexity.In addition, the data of the embodiment of the present invention update Using delay database is written in more new data by method, makes it possible to reduce the write-in number of database, lifting system entirety It can bearing capacity.In addition, by successful according to database write-in as a result, end equipment sends response message forward, so that prominent Under the scene for sending out delay machine, the data in caching can lose.As long as the update operation completed, data are all before Reliably.In addition, the data-updating method of the embodiment of the present invention can be completed in a process, distributed transaction is not needed, It has saved additional maintenance cost and has avoided consistency risk.
According to another embodiment of the present invention, a kind of non-volatile memory medium is also provided, the non-volatile memory medium With the instruction being stored therein, when the instruction is performed, so that processor executes data-updating method, comprising:
It obtains at least one data that headend equipment is sent and updates request;
The data identified with identical data are updated into request storage and arrive queue;
It updates request to the data in queue successively to handle, processing includes:
According to Data Identification, reads data and update the corresponding data to be updated of request;
It updates and requests in response to data, handle data to be updated;
Processed data to be updated are stored to caching;And
Judge whether the time of processing reaches predetermined period of time;
If so, by caching data to be updated update into database, and suspend processing until data to be updated more The new operation to database is completed.
Further, after data to be updated are updated to database, end equipment sends data and updates the response completed forward Message.
Further, the data in queue are updated to request successively to carry out handling and further comprises, according to first in first out The data that sequence reads queue update request.
Further, according to Data Identification, reading the corresponding data to be updated of data update request includes:
It whether there is corresponding data to be updated in judgement caching;
If so, reading corresponding data to be updated from caching;
If it is not, then reading corresponding data to be updated from database.
Further, according to another embodiment of the present invention, a kind of equipment, including memory are also provided, calculating is stored with Machine executable instruction, processor, processor are configured as executing instruction to implement the process of data update, comprising:
It obtains at least one data that headend equipment is sent and updates request;
The data identified with identical data are updated into request storage and arrive queue;
It updates request to the data in queue successively to handle, processing includes:
According to Data Identification, reads data and update the corresponding data to be updated of request;
It updates and requests in response to data, handle data to be updated;
Processed data to be updated are stored to caching;And
Judge whether the time of processing reaches predetermined period of time;
If so, by caching data to be updated update into database, and suspend processing until data to be updated more The new operation to database is completed.
Further, after data to be updated are updated to database, end equipment sends data and updates the response completed forward Message.
Further, the data in queue are updated to request successively to carry out handling and further comprises, according to first in first out The data that sequence reads queue update request.
Further, according to Data Identification, reading the corresponding data to be updated of data update request includes:
It whether there is corresponding data to be updated in judgement caching;
If so, reading corresponding data to be updated from caching;
If it is not, then reading corresponding data to be updated from database.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the present invention and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, such as right As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Thus claims of body embodiment are expressly incorporated in the specific embodiment, wherein each claim conduct itself Separate embodiments of the invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit requires, abstract and attached drawing) disclosed in each feature can be by providing identical, equivalent, or similar purpose alternative features come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
Word "comprising" does not exclude the presence of element or step not listed in the claims.Word located in front of the element "a" or "an" does not exclude the presence of multiple such elements.The present invention can by means of include several different elements hardware And it is realized by means of properly programmed terminal device.In the unit claim for listing several terminal devices, these Several in terminal device, which can be, to be embodied by the same item of hardware.Word first, second, and third Using not indicating any sequence.These words can be construed to title.

Claims (10)

1. a kind of data-updating method characterized by comprising
It obtains at least one data that headend equipment is sent and updates request;
The data identified with identical data are updated into request storage and arrive queue;
It updates request to the data in the queue successively to handle, the processing includes:
According to the Data Identification, reads the data and update the corresponding data to be updated of request;
It updates and requests in response to the data, handle the data to be updated;
The processed data to be updated are stored to caching;And
Judge whether the time of the processing reaches predetermined period of time;
If so, updating the data to be updated in the caching into database, and suspend the processing until described The operation that data to be updated are updated to database is completed.
2. data-updating method according to claim 1, which is characterized in that when the data to be updated are updated to the number Behind library, Xiang Suoshu headend equipment sends data and updates the response message completed.
3. data-updating method according to claim 1, which is characterized in that asked to the data update in the queue Asking and successively carrying out processing further comprises updating request according to the data that the sequence of first in first out reads the queue.
4. data-updating method according to claim 1, which is characterized in that according to the Data Identification, read the number Include: according to the corresponding data to be updated of request are updated
Judge in the caching with the presence or absence of corresponding data to be updated;
If so, reading corresponding data to be updated from the caching;
If it is not, then reading corresponding data to be updated from the database.
5. a kind of data update apparatus characterized by comprising
Module is obtained, at least one data for obtaining headend equipment transmission update request;
Queue module, the data for that will have identical data to identify update request storage to queue;
Processing module is successively handled for updating request to the data in the queue, and the processing module includes:
Reading unit, for reading the data and updating the corresponding data to be updated of request according to the Data Identification;
Processing unit is requested for updating in response to the data, handles the data to be updated;
Storage unit, for storing the processed data to be updated to caching;And
Timing module, for judging whether the time of the processing reaches predetermined period of time;
If so, updating the data to be updated in the caching into database, and suspend the processing until described The operation that data to be updated are updated to database is completed.
6. data update apparatus according to claim 5, which is characterized in that when the data to be updated are updated to the number Behind library, Xiang Suoshu headend equipment sends data and updates the response message completed.
7. data update apparatus according to claim 5, which is characterized in that asked to the data update in the queue Asking and successively carrying out processing further comprises updating request according to the data that the sequence of first in first out reads the queue.
8. data update apparatus according to claim 5, which is characterized in that according to the Data Identification, read the number Include: according to the corresponding data to be updated of request are updated
Judge in the caching with the presence or absence of corresponding data to be updated;
If so, reading corresponding data to be updated from the caching;
If it is not, then reading corresponding data to be updated from the database.
9. a kind of non-volatile memory medium, the non-volatile memory medium has the instruction being stored therein, when the finger Order is performed, so that processor executes data-updating method according to any one of claims 1 to 4.
10. a kind of equipment, including memory are stored with computer executable instructions, processor, the processor is configured to holding Row described instruction is to implement data-updating method according to any one of claims 1 to 4.
CN201811438673.XA 2018-11-28 2018-11-28 Data-updating method, device, storage medium and equipment Pending CN109597818A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811438673.XA CN109597818A (en) 2018-11-28 2018-11-28 Data-updating method, device, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811438673.XA CN109597818A (en) 2018-11-28 2018-11-28 Data-updating method, device, storage medium and equipment

Publications (1)

Publication Number Publication Date
CN109597818A true CN109597818A (en) 2019-04-09

Family

ID=65959231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811438673.XA Pending CN109597818A (en) 2018-11-28 2018-11-28 Data-updating method, device, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN109597818A (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134698A (en) * 2019-04-15 2019-08-16 平安普惠企业管理有限公司 Data managing method and Related product
CN110515959A (en) * 2019-07-25 2019-11-29 北京奇艺世纪科技有限公司 Data consistency implementation method, device and readable storage medium storing program for executing
CN110543486A (en) * 2019-08-28 2019-12-06 北京奇艺世纪科技有限公司 data change method and device and server
CN110716916A (en) * 2019-09-02 2020-01-21 深圳壹账通智能科技有限公司 Resource online management method and device, computer equipment and storage medium
CN110727690A (en) * 2019-10-15 2020-01-24 刘卫立 Data updating method
CN110941623A (en) * 2019-11-12 2020-03-31 北京达佳互联信息技术有限公司 Data synchronization method and device
CN110955257A (en) * 2019-12-17 2020-04-03 深圳市道通智能航空技术有限公司 Multi-target transmission method and system, remote control equipment and unmanned aerial vehicle
CN111143383A (en) * 2019-12-20 2020-05-12 五八有限公司 Data updating method and device, electronic equipment and storage medium
CN111177161A (en) * 2019-11-07 2020-05-19 腾讯科技(深圳)有限公司 Data processing method and device, computing equipment and storage medium
CN111198766A (en) * 2020-01-06 2020-05-26 中科驭数(北京)科技有限公司 Database access operation deployment method, database access method and device
CN111459893A (en) * 2020-04-03 2020-07-28 北京字节跳动网络技术有限公司 File processing method and device and electronic equipment
CN111488366A (en) * 2020-04-09 2020-08-04 百度在线网络技术(北京)有限公司 Relational database updating method, device, equipment and storage medium
CN111782667A (en) * 2020-06-22 2020-10-16 成都校精灵科技有限公司 MongoDB updating data driving method, system and storage medium
CN111866120A (en) * 2020-07-17 2020-10-30 合肥移瑞通信技术有限公司 File transaction transmission method and system, readable storage medium and server
CN112818021A (en) * 2021-02-23 2021-05-18 东莞中国科学院云计算产业技术创新与育成中心 Data request processing method and device, computer equipment and storage medium
CN112860750A (en) * 2021-03-11 2021-05-28 广州市网星信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN112860715A (en) * 2019-11-28 2021-05-28 北京沃东天骏信息技术有限公司 Data processing method, device, system and storage medium
CN113297232A (en) * 2020-07-31 2021-08-24 阿里巴巴集团控股有限公司 Data updating method, device and system based on database partition
CN113986981A (en) * 2021-11-11 2022-01-28 湖南快乐阳光互动娱乐传媒有限公司 Data synchronization method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020156786A1 (en) * 2001-04-24 2002-10-24 Discreet Logic Inc. Asynchronous database updates
CN102741843A (en) * 2011-03-22 2012-10-17 青岛海信传媒网络技术有限公司 Method and apparatus for reading data from database
CN104376096A (en) * 2014-11-24 2015-02-25 北京京东尚科信息技术有限公司 Method for asynchronous updating based on buffer area
CN104750740A (en) * 2013-12-30 2015-07-01 北京新媒传信科技有限公司 Data renewing method and device
CN105373541A (en) * 2014-08-22 2016-03-02 博雅网络游戏开发(深圳)有限公司 Processing method and system for data operation request of database
CN105956166A (en) * 2016-05-19 2016-09-21 北京京东尚科信息技术有限公司 Database reading-writing method and database reading-writing apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020156786A1 (en) * 2001-04-24 2002-10-24 Discreet Logic Inc. Asynchronous database updates
CN102741843A (en) * 2011-03-22 2012-10-17 青岛海信传媒网络技术有限公司 Method and apparatus for reading data from database
CN104750740A (en) * 2013-12-30 2015-07-01 北京新媒传信科技有限公司 Data renewing method and device
CN105373541A (en) * 2014-08-22 2016-03-02 博雅网络游戏开发(深圳)有限公司 Processing method and system for data operation request of database
CN104376096A (en) * 2014-11-24 2015-02-25 北京京东尚科信息技术有限公司 Method for asynchronous updating based on buffer area
CN105956166A (en) * 2016-05-19 2016-09-21 北京京东尚科信息技术有限公司 Database reading-writing method and database reading-writing apparatus

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134698A (en) * 2019-04-15 2019-08-16 平安普惠企业管理有限公司 Data managing method and Related product
CN110515959A (en) * 2019-07-25 2019-11-29 北京奇艺世纪科技有限公司 Data consistency implementation method, device and readable storage medium storing program for executing
CN110543486A (en) * 2019-08-28 2019-12-06 北京奇艺世纪科技有限公司 data change method and device and server
CN110543486B (en) * 2019-08-28 2022-03-04 北京奇艺世纪科技有限公司 Data change method and device and server
CN110716916A (en) * 2019-09-02 2020-01-21 深圳壹账通智能科技有限公司 Resource online management method and device, computer equipment and storage medium
CN110727690A (en) * 2019-10-15 2020-01-24 刘卫立 Data updating method
CN111177161A (en) * 2019-11-07 2020-05-19 腾讯科技(深圳)有限公司 Data processing method and device, computing equipment and storage medium
CN111177161B (en) * 2019-11-07 2023-08-15 腾讯科技(深圳)有限公司 Data processing method, device, computing equipment and storage medium
CN110941623A (en) * 2019-11-12 2020-03-31 北京达佳互联信息技术有限公司 Data synchronization method and device
CN112860715A (en) * 2019-11-28 2021-05-28 北京沃东天骏信息技术有限公司 Data processing method, device, system and storage medium
CN110955257A (en) * 2019-12-17 2020-04-03 深圳市道通智能航空技术有限公司 Multi-target transmission method and system, remote control equipment and unmanned aerial vehicle
CN110955257B (en) * 2019-12-17 2024-02-09 深圳市道通智能航空技术股份有限公司 Multi-target transmission method, system, remote control equipment and unmanned aerial vehicle
CN111143383B (en) * 2019-12-20 2023-07-14 五八有限公司 Data updating method and device, electronic equipment and storage medium
CN111143383A (en) * 2019-12-20 2020-05-12 五八有限公司 Data updating method and device, electronic equipment and storage medium
CN111198766B (en) * 2020-01-06 2021-02-05 中科驭数(北京)科技有限公司 Database access operation deployment method, database access method and device
CN111198766A (en) * 2020-01-06 2020-05-26 中科驭数(北京)科技有限公司 Database access operation deployment method, database access method and device
CN111459893B (en) * 2020-04-03 2023-08-22 北京字节跳动网络技术有限公司 File processing method and device and electronic equipment
CN111459893A (en) * 2020-04-03 2020-07-28 北京字节跳动网络技术有限公司 File processing method and device and electronic equipment
CN111488366A (en) * 2020-04-09 2020-08-04 百度在线网络技术(北京)有限公司 Relational database updating method, device, equipment and storage medium
CN111782667A (en) * 2020-06-22 2020-10-16 成都校精灵科技有限公司 MongoDB updating data driving method, system and storage medium
CN111782667B (en) * 2020-06-22 2024-05-17 成都校精灵科技有限公司 MongoDB updated data driving method, system and storage medium
CN111866120A (en) * 2020-07-17 2020-10-30 合肥移瑞通信技术有限公司 File transaction transmission method and system, readable storage medium and server
CN113297232A (en) * 2020-07-31 2021-08-24 阿里巴巴集团控股有限公司 Data updating method, device and system based on database partition
CN113297232B (en) * 2020-07-31 2024-03-01 阿里巴巴集团控股有限公司 Data updating method, device and system based on database partition
CN112818021B (en) * 2021-02-23 2024-02-02 东莞中国科学院云计算产业技术创新与育成中心 Data request processing method, device, computer equipment and storage medium
CN112818021A (en) * 2021-02-23 2021-05-18 东莞中国科学院云计算产业技术创新与育成中心 Data request processing method and device, computer equipment and storage medium
CN112860750A (en) * 2021-03-11 2021-05-28 广州市网星信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN112860750B (en) * 2021-03-11 2023-11-17 广州市网星信息技术有限公司 Data processing method, device, electronic equipment and storage medium
CN113986981A (en) * 2021-11-11 2022-01-28 湖南快乐阳光互动娱乐传媒有限公司 Data synchronization method and device

Similar Documents

Publication Publication Date Title
CN109597818A (en) Data-updating method, device, storage medium and equipment
CN113641457B (en) Container creation method, device, apparatus, medium, and program product
CN110442463B (en) Data transmission method and device in TEE system
US10116746B2 (en) Data storage method and network interface card
CN107066570A (en) Data managing method and device
CN111400307B (en) Persistent hash table access system supporting remote concurrent access
CN105068817B (en) Write data into the method and storage equipment of storage equipment
CN105447167B (en) The data cached processing method and processing device of distributed system interior joint
CN107704310B (en) Method, device and equipment for realizing container cluster management
US11579874B2 (en) Handling an input/output store instruction
CN110149231A (en) Update method, apparatus, storage medium and the equipment of virtual switch
CN105933380A (en) Data transmission method, device and terminal
CN109471843A (en) A kind of metadata cache method, system and relevant apparatus
CN108762668A (en) A kind of method and device of processing write-in conflict
WO2015084506A1 (en) System and method for managing and supporting virtual host bus adaptor (vhba) over infiniband (ib) and for supporting efficient buffer usage with a single external memory interface
CN110457251A (en) Data communications method and device between a kind of multiprocessor
US10389697B1 (en) Software container activation and throttling
CN107025064B (en) A kind of data access method of the high IOPS of low latency
US10042554B2 (en) Increased bandwidth of ordered stores in a non-uniform memory subsystem
CN110716923B (en) Data processing method, data processing device, node equipment and storage medium
CN110162415B (en) Method, server, device and storage medium for processing data request
CN108874560B (en) Method and communication device for communication
CN103399949B (en) A kind of database storage block state control method and device
CN112231290A (en) Method, device and equipment for processing local log and storage medium
US20200319819A1 (en) Method and Apparatus for Improving Parity Redundant Array of Independent Drives Write Latency in NVMe Devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190409