CN109885786A - Data buffer storage processing method, device, electronic equipment and readable storage medium storing program for executing - Google Patents
Data buffer storage processing method, device, electronic equipment and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN109885786A CN109885786A CN201910061979.6A CN201910061979A CN109885786A CN 109885786 A CN109885786 A CN 109885786A CN 201910061979 A CN201910061979 A CN 201910061979A CN 109885786 A CN109885786 A CN 109885786A
- Authority
- CN
- China
- Prior art keywords
- data
- tables
- mark
- new data
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present invention provides a kind of data buffer storage processing method, device, electronic equipment and readable storage medium storing program for executing, which comprises obtains the mark of the more new data in database and stores the mark of the target matrix of the more new data;According to the mark of the tables of data of the target data, each caching process submodule is called, judges whether the target matrix is the corresponding tables of data of the caching process submodule parallel;If the target matrix is the corresponding tables of data of the first caching process submodule, calls the first caching process submodule according to the mark of more new data and the mark of the tables of data, determine at least one target service for quoting the more new data;The more new data is updated in the corresponding service buffer of at least one described target service.The refreshing of service buffer can be rapidly completed in this method, thus the refreshing efficiency of significant increase service buffer.
Description
Technical field
The present embodiments relate to computer technology more particularly to a kind of data buffer storage processing methods, device, electronic equipment
And readable storage medium storing program for executing.
Background technique
A kind of important means of the caching technology as reply high concurrent request, is made to adopt by more and more internet manufacturers
With.In caching technology, by that in the buffer, internet system etc. can be made quick data storage in database
The data of needs are got, treatment effeciency and user experience are promoted.Service buffer is one of caching technology important kind, industry
Business caching is the caching as unit of business, it is straightforward to provide is used to terminal device, without executing other processing.Business is slow
The coordination frequently referred in internet system between multiple nodes is deposited, therefore, the refreshing of service buffer is for internet system
For be particularly important.
In the prior art, the variation of independent cache synchronization network element monitoring database can be used, then according to becoming
The tables of data of change, which is successively selected, carries out the submodule that service buffer updates processing, and then corresponding business in Refresh Services caching
It is data cached.
But the refresh rate that the method for the prior art may cause service buffer is excessively slow, inefficiency.
Summary of the invention
The embodiment of the present invention provides a kind of data buffer storage processing method, device, electronic equipment and readable storage medium storing program for executing, is used for
Solve the problem of the excessively slow inefficiency of service buffer refresh rate in the prior art.
First aspect of the embodiment of the present invention provides a kind of data buffer storage processing method, and database includes at least two data
Table, the corresponding caching process submodule of each tables of data, which comprises
It obtains the mark of the more new data in database and stores the mark of the target matrix of the more new data;
According to the mark of the tables of data of the target data, each caching process submodule is called, judges the mesh parallel
Mark whether tables of data is the corresponding tables of data of the caching process submodule;
If the target matrix is the corresponding tables of data of the first caching process submodule, call at first caching
Submodule is managed according to the mark of more new data and the mark of the tables of data, determines and quotes the more new data at least
One target service;
The more new data is updated in the corresponding service buffer of at least one described target service.
Further, described that the more new data is updated to the corresponding service buffer of at least one described target service
In, comprising:
Call at least one one-to-one business processing submodule of at least one described target service, according to it is described more
New data generates major key and key assignments to be written, and the major key to be written and key assignments are written in corresponding service buffer.
Further, the method also includes:
The acquisition request of data that receiving terminal apparatus is sent, the acquisition request of data is for requesting the target service
Data;
According to the acquisition request of data, the updated mesh is read from the corresponding service buffer of the target service
The data of mark business;
The data of the updated target service are sent to the terminal device.
Further, the method also includes:
Receive the more new data of user's input;
The more new data is updated in the target matrix.
Further, the mark of the more new data includes the position of the more new data in the target matrix.
Second aspect of the embodiment of the present invention provides a kind of data buffer storage processing unit, and database includes at least two data
Table, the corresponding caching process submodule of each tables of data, described device include:
Module is obtained, for obtaining the mark of the more new data in database and storing the number of targets of the more new data
According to the mark of table;
First calling module calls each caching process submodule for the mark according to the tables of data of the target data
Block judges whether the target matrix is the corresponding tables of data of the caching process submodule parallel;
Second calling module is used in target matrix tables of data corresponding for the first caching process submodule,
It calls the first caching process submodule according to the mark of more new data and the mark of the tables of data, determines reference
At least one target service of the more new data;
First update module is delayed for the more new data to be updated to the corresponding business of at least one target service
In depositing.
Further, first update module is specifically used for:
Call at least one one-to-one business processing submodule of at least one described target service, according to it is described more
New data generates major key and key assignments to be written, and the major key to be written and key assignments are written in corresponding service buffer.
Further, described device further include:
Receiving module, for the acquisition request of data that receiving terminal apparatus is sent, the acquisition request of data is for requesting
The data of the target service;
Read module, for being read from the corresponding service buffer of the target service according to the acquisition request of data
The data of the updated target service;
Sending module, for sending the data of the updated target service to the terminal device.
Further, receiving module is used for:
Receive the more new data of user's input;
Described device further include:
Second update module, for the more new data to be updated in the target matrix.
Further, the mark of the more new data includes the position of the more new data in the target matrix.
The third aspect of the embodiment of the present invention provides a kind of electronic equipment, comprising:
Memory, for storing program instruction;
Processor executes side described in above-mentioned first aspect for calling and executing the program instruction in the memory
Method step.
Fourth aspect of the embodiment of the present invention provides a kind of readable storage medium storing program for executing, and calculating is stored in the readable storage medium storing program for executing
Machine program, the computer program is for executing method described in above-mentioned first aspect.
Data buffer storage processing method, device, electronic equipment and readable storage medium storing program for executing provided by the embodiment of the present invention, are being obtained
After getting more new data, each caching process submodule is called, parallel judgement should execute the caching process of buffer update processing
Submodule is determined the target service of reference more new data by the caching process submodule after determining caching process submodule,
More new data is updated in the corresponding service buffer of target service again.Due to being determined at caching by way of judging parallel
Submodule is managed, therefore, even if service buffer can also be rapidly completed in a fairly large number of situation of tables of data in the database
Refresh, thus the refreshing efficiency of significant increase service buffer.
Detailed description of the invention
It, below will be to embodiment or the prior art in order to illustrate more clearly of the present invention or technical solution in the prior art
Attached drawing needed in description is briefly described, it should be apparent that, the accompanying drawings in the following description is of the invention one
A little embodiments for those of ordinary skill in the art without any creative labor, can also be according to this
A little attached drawings obtain other attached drawings.
Fig. 1 is a kind of possible flow example figure that service buffer update is carried out by cache synchronization network element;
Fig. 2 is a kind of exemplary system architecture figure of data buffer storage processing method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of data buffer storage processing method provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of data buffer storage processing method provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of data buffer storage processing method provided in an embodiment of the present invention;
Fig. 6 is the function structure chart of data buffer storage processing unit provided in an embodiment of the present invention;
Fig. 7 is the function structure chart of data buffer storage processing unit provided in an embodiment of the present invention;
Fig. 8 is the function structure chart of data buffer storage processing unit provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of a kind of electronic equipment 900 provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached in the embodiment of the present invention
Figure, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is the present invention
A part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not having
Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of possible flow example figure that service buffer update is carried out by cache synchronization network element, such as Fig. 1 institute
Show, may include monitoring module, business refresh module and cache logic submodule in cache synchronization network element.Wherein, mould is monitored
Block be used for monitor database variation, after monitoring that database changes, obtain the table name of changed tables of data with
And Record ID, and the table name of tables of data and Record ID are passed into business refresh module.Business refresh module is according to tables of data
Table name is compared the sequence of table name from small to large with table name corresponding to all cache logic submodules, until finding
With the consistent cache logic submodule of changed table name, then by the cache logic submodule according to changed tables of data
Table name and Record ID, execute it is subsequent update service buffer process.
In above process, business refresh module needs the table name sequence from small to large according to tables of data, one by one to table
Name is compared with table name corresponding to each cache logic submodule, when the quantity of tables of data in database is more, this side
The refresh rate that method may cause service buffer is excessively slow, inefficiency.
The embodiment of the present invention based on the above issues, proposes a kind of data buffer storage processing method, after getting more new data,
Each caching process submodule is called, parallel judgement should execute the caching process submodule of buffer update processing, when determining
After caching process submodule, by the caching process submodule determine reference more new data target service, then will more new data more
Newly into the corresponding service buffer of target service.Due to determining caching process submodule by way of judging parallel,
Even if the refreshing of service buffer can also be rapidly completed in a fairly large number of situation of tables of data in the database, thus greatly
Promote the refreshing efficiency of service buffer.
As an example, method provided by the embodiment of the present invention can be applied in internet system, the internet
Network system can refer to by installing application program (Application, abbreviation APP) and back-stage management service on the terminal device
Internet system composed by device.Correspondingly, Fig. 2 is a kind of example of data buffer storage processing method provided in an embodiment of the present invention
Property system architecture diagram, as shown in Fig. 2, this method can be related to terminal device and server.Wherein, server for create and
Safeguard database, and the method based on the embodiment of the present invention updates service buffer.Terminal device is connect with server.Terminal device
Can be based on the instruction of user, data into server requested service caching, server is according to the request of terminal device, to end
End equipment sends service buffer data, and terminal receives service buffer data rear line and shown.
It needs to carry out service buffer it is worth noting that method provided by the embodiment of the present invention can be applied in other
Scene in.For example, in the information management scenarios of enterprise.The embodiment of the present invention is not specifically limited in this embodiment.
Fig. 3 is the flow diagram of data buffer storage processing method provided in an embodiment of the present invention, the executing subject of this method
It can be the electronic equipment with processing capacity, for ease of description, with executing subject being above-mentioned Fig. 1 institute below the embodiment of the present invention
It is illustrated for the server shown.As shown in figure 3, this method comprises:
S301, obtain database in more new data mark and store the more new data target matrix mark
Know.
It wherein, include at least two tables of data, each tables of data corresponding one in database involved in the embodiment of the present invention
A caching process submodule.Tables of data and the corresponding relationship of caching process submodule can be configured in advance.
For internet system, above-mentioned database can be used to store the various data of internet system, such as infuse
The personal information of volume user and the information etc. for needing to present to user, the information of the presentation for example can be merchandise news, new
Hear information etc..Above-mentioned database can store on the server, or also can store in independent equipment, and server passes through
The foundation for carrying out database and update etc. are interacted with the equipment.
Optionally, for each tables of data in database, a mark is all had.Illustratively, the mark of tables of data
It can be ID or the title etc. of tables of data, the embodiment of the present invention is to being not specifically limited herein.It can wrap in each tables of data
Multiple data are included, each data can correspond to a record in tables of data.One or more contents in this record
When changing, it can determine that this record updates, i.e., one or more data in tables of data change.
In embodiments of the present invention, above-mentioned more new data can refer to the one or more changed in tables of data
Data are specifically as follows one or more record to change in tables of data.Wherein, the record to change can refer to increasing
The record for adding, modifying or deleting.
Optionally, the mark of above-mentioned more new data may include position of the above-mentioned more new data in above-mentioned target matrix
It sets.Illustratively, the mark of more new data can be the number etc. of the record to change.
It optionally, can be by the variation of the monitoring module monitor database on server.
S302, the mark according to the tables of data of above-mentioned target data, call each caching process submodule, in parallel judgement
State whether target matrix is the corresponding tables of data of above-mentioned caching process submodule.
Optionally, server can pass through each caching process in a business refresh module simultaneously invoking server
Module.
Illustratively, which can use Observer Pattern, in the Observer Pattern, at each caching
It is mutually indepedent to manage submodule, is registered as an observer, and operate in an independent thread.When monitoring module monitors to count
When changing according to the data in library, each caching process submodule can receive notice simultaneously, be called simultaneously.
For each caching process submodule, after it is called, it can whether judge the tables of data to change
For tables of data corresponding to the caching process submodule, if so, subsequent step is continued to execute, if it is not, then ending processing.
If S303, above-mentioned target matrix are the corresponding tables of data of the first caching process submodule, call this first slow
Processing submodule is deposited according to the mark of above-mentioned more new data and the mark of above-mentioned tables of data, determines and quotes above-mentioned more new data
At least one target service.
Wherein, above-mentioned first caching process submodule is appointing in the corresponding multiple caching process submodules of multiple tables of data
It anticipates a caching process submodule.
In the specific implementation process, a data in tables of data may be quoted by multiple business, meanwhile, a business
Multiple data in multiple tables of data may be quoted simultaneously.For example, the user's name in registration user message table can be mutual
" homepage " business of networked system is quoted, it is also possible to be quoted by " user's details " business.
Optionally, in this step, after the first cache sub-module is called, the first cache sub-module can be according to data
With the adduction relationship of business, at least one target service for quoting above-mentioned more new data is determined.Alternatively, can also by with industry
Business processing submodule is interacted to determine more new data is quoted by which business.Wherein, each business processing submodule is used for
Handle a business.
S304, above-mentioned more new data is updated in the corresponding service buffer of at least one above-mentioned target service.
In the present embodiment, after getting more new data, each caching process submodule is called, parallel judgement should execute
The caching process submodule of buffer update processing is determined after determining caching process submodule by the caching process submodule
The target service of more new data is quoted, then more new data is updated in the corresponding service buffer of target service.Due to by simultaneously
The mode of row judgement determines caching process submodule, therefore, even if in tables of data a fairly large number of situation in the database,
The refreshing of service buffer can also be rapidly completed, thus the refreshing efficiency of significant increase service buffer.
In a kind of optional embodiment, above-mentioned steps S304 may include:
Call at least one one-to-one business processing submodule of at least one above-mentioned target service, according to it is above-mentioned more
New data generates major key and key assignments to be written, and above-mentioned major key to be written and key assignments are written in corresponding service buffer.
In a kind of example, business processing submodule directly can be called by the first cache sub-module, by business processing submodule
Root tuber generates major key and key assignments to be written according to more new data, and it is corresponding that the business processing submodule is written in major key and key assignments
In service buffer.
Wherein, above-mentioned major key refers to the major key in service buffer, can be generated by business processing submodule.Above-mentioned key assignments can
Think above-mentioned more new data.
In another example, can the business refresh module as described in above-mentioned steps S302 call business processing submodule,
And the refreshing cached by business processing submodule finishing service.
On the basis of the above embodiments, the present embodiment is related to the mistake that terminal device obtains updated service buffer data
Journey.
Fig. 4 is the flow diagram of data buffer storage processing method provided in an embodiment of the present invention, as shown in figure 4, above-mentioned side
Method further include:
The acquisition request of data that S401, receiving terminal apparatus are sent, the acquisition request of data is for requesting above-mentioned target industry
The data of business.
When user executes starting APP on the terminal device, clicks the operation such as specific button, possible triggering terminal equipment to
Server, which is sent, obtains request of data.Illustratively, user clicks in some APP of terminal device and checks user information
Button, then terminal device can send to server and obtain in request of data, and " user information " business is carried in the request
Mark.
S402, according to above-mentioned acquisition request of data, read from the corresponding service buffer of above-mentioned target service updated
The data of above-mentioned target service.
If server is to the service buffer of requested target service before receiving the request of terminal device
It is updated, then after receiving the request for target service, server can be searched according to the service identification in request
Updated data are read to the service buffer of target service, and from the corresponding service buffer of target service.
S403, Xiang Shangshu terminal device send the data of the above-mentioned updated target service.
On the basis of the above embodiments, the present embodiment is related to the process to database update.
Fig. 5 is the flow diagram of data buffer storage processing method provided in an embodiment of the present invention, as shown in figure 5, above-mentioned side
Method further include:
S501, the above-mentioned more new data for receiving user's input.
In a kind of example, more new data can be inputted in server side by backstage manager.
In another example, more new data can be inputted by the user on terminal device, terminal device will more new data hair
Give server.
S502, above-mentioned more new data is updated in above-mentioned target matrix.
Optionally, internet system provides visual interface, and user is in general visualization interface to the number in tables of data
According to being deleted after being increased, being modified, after the completion of user's operation, will more new data be updated in target matrix by server.
It is worth noting that above-mentioned steps S501-S502 can be executed before above-mentioned steps S301, it can be in above-mentioned step
It is executed after rapid S304, i.e., in internet system operational process, after being updated at any time to database.
Fig. 6 is the function structure chart of data buffer storage processing unit provided in an embodiment of the present invention, and database includes at least two
A tables of data, the corresponding caching process submodule of each tables of data, as shown in fig. 6, described device includes:
Module 601 is obtained, for obtaining the mark of the more new data in database and storing the mesh of the more new data
Mark the mark of tables of data.
First calling module 602 calls each caching process for the mark according to the tables of data of the target data
Module judges whether the target matrix is the corresponding tables of data of the caching process submodule parallel.
Second calling module 603, for being the corresponding tables of data of the first caching process submodule in the target matrix
When, it calls the first caching process submodule according to the mark of more new data and the mark of the tables of data, determines
Quote at least one target service of the more new data.
First update module 604, for the more new data to be updated to the corresponding industry of at least one described target service
In business caching.
The device is for realizing preceding method embodiment, and it is similar that the realization principle and technical effect are similar, and details are not described herein again.
In another embodiment, the first update module 604 is specifically used for:
Call at least one one-to-one business processing submodule of at least one described target service, according to it is described more
New data generates major key and key assignments to be written, and the major key to be written and key assignments are written in corresponding service buffer.
Fig. 7 is the function structure chart of data buffer storage processing unit provided in an embodiment of the present invention, as shown in fig. 7, the dress
It sets further include:
Receiving module 605, for the acquisition request of data that receiving terminal apparatus is sent, the acquisition request of data is for asking
Seek the data of the target service.
Read module 606, for being read from the corresponding service buffer of the target service according to the acquisition request of data
Take the data of the updated target service.
Sending module 607, for sending the data of the updated target service to the terminal device.
In another embodiment, receiving module is used for:
Receive the more new data of user's input.
Fig. 8 is the function structure chart of data buffer storage processing unit provided in an embodiment of the present invention, as shown in figure 8, the dress
It sets further include:
Second update module 608, for the more new data to be updated in the target matrix.
In another embodiment, the mark of the more new data includes the position of the more new data in the target matrix
It sets.
It should be noted that it should be understood that the modules of apparatus above division be only a kind of logic function division,
It can completely or partially be integrated on a physical entity in actual implementation, it can also be physically separate.And these modules can be with
All realized by way of processing element calls with software;It can also all realize in the form of hardware;It can also part mould
Block realizes that part of module passes through formal implementation of hardware by way of processing element calls software.For example, determining module can be with
For the processing element individually set up, it also can integrate and realized in some chip of above-mentioned apparatus, in addition it is also possible to program
The form of code is stored in the memory of above-mentioned apparatus, is called by some processing element of above-mentioned apparatus and is executed above true
The function of cover half block.The realization of other modules is similar therewith.Furthermore these modules completely or partially can integrate together, can also
With independent realization.Processing element described here can be a kind of integrated circuit, the processing capacity with signal.In the process of realization
In, each step of the above method or the above modules can by the integrated logic circuit of the hardware in processor elements or
The instruction of software form is completed.
For example, the above module can be arranged to implement one or more integrated circuits of above method, such as:
One or more specific integrated circuits (application specific integrated circuit, ASIC), or, one
Or multi-microprocessor (digital signal processor, DSP), or, one or more field programmable gate array
(field programmable gate array, FPGA) etc..For another example, when some above module dispatches journey by processing element
When the form of sequence code is realized, which can be general processor, such as central processing unit (central
Processing unit, CPU) or it is other can be with the processor of caller code.For another example, these modules can integrate one
It rises, is realized in the form of system on chip (system-on-a-chip, SOC).
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program
Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or
It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meter
Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium
In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer
Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center
User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or
Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or
It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with
It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk
Solid state disk (SSD)) etc..
Fig. 9 is the structural schematic diagram of a kind of electronic equipment 900 provided in an embodiment of the present invention.As shown in figure 9, the electronics is set
Standby may include: processor 91, memory 92, communication interface 93 and system bus 94, and the memory 92 and the communication connect
Mouth 93 connect with the processor 91 by the system bus 94 and completes mutual communication, and the memory 92 is for depositing
Computer executed instructions are stored up, the communication interface 93 is used for and other equipment are communicated, and the processor 91 executes the meter
The scheme such as above-mentioned Fig. 3 to embodiment illustrated in fig. 5 is realized when calculation machine program.
The system bus mentioned in the Fig. 9 can be Peripheral Component Interconnect standard (peripheral component
Interconnect, PCI) bus or expanding the industrial standard structure (extended industry standard
Architecture, EISA) bus etc..The system bus can be divided into address bus, data/address bus, control bus etc..For
Convenient for indicating, only indicated with a thick line in figure, it is not intended that an only bus or a type of bus.Communication interface
For realizing the communication between database access device and other equipment (such as client, read-write library and read-only library).Memory
May include random access memory (random access memory, RAM), it is also possible to further include nonvolatile memory
(non-volatile memory), for example, at least a magnetic disk storage.
Above-mentioned processor can be general processor, including central processor CPU, network processing unit (network
Processor, NP) etc.;It can also be digital signal processor DSP, application-specific integrated circuit ASIC, field programmable gate array
FPGA or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
Optionally, the embodiment of the present application also provides a kind of storage medium, and instruction is stored in the storage medium, when its
When being run on computer, so that computer executes the method such as above-mentioned Fig. 2 to embodiment illustrated in fig. 5.
Optionally, the embodiment of the present application also provides a kind of chip of operating instruction, and the chip is for executing above-mentioned Fig. 3 extremely
The method of embodiment illustrated in fig. 5.
The embodiment of the present invention also provides a kind of program product, and described program product includes computer program, the computer
Program is stored in a storage medium, at least one processor can read the computer program from the storage medium, described
The method that at least one processor can realize above-mentioned Fig. 3 to embodiment illustrated in fig. 5 when executing the computer program.
In embodiments of the present invention, "at least one" refers to one or more, and " multiple " refer to two or more.
"and/or" describes the incidence relation of affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, can indicate: single
Solely there are A, A and B are existed simultaneously, the case where individualism B, wherein A, B can be odd number or plural number.The general table of character "/"
Show that forward-backward correlation object is a kind of relationship of "or";In formula, character "/" indicates that forward-backward correlation object is a kind of " being divided by "
Relationship.At least one of " following (a) " or its similar expression, refer to these in any combination, including individual event (a) or
Any combination of complex item (a).For example, at least one (a) in a, b or c, can indicate: a, b, c, a-b, a-c, b-c,
Or a-b-c, wherein a, b, c can be individually, be also possible to multiple.
It is understood that the area that the various digital numbers being related in embodiments of the present invention only carry out for convenience of description
Point, it is not intended to limit the invention the range of embodiment.
It is understood that in embodiments of the present invention, magnitude of the sequence numbers of the above procedures are not meant to execute suitable
Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present invention
Process constitutes any restriction.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (10)
1. a kind of data buffer storage processing method, which is characterized in that database includes at least two tables of data, and each tables of data is corresponding
One caching process submodule, which comprises
It obtains the mark of the more new data in database and stores the mark of the target matrix of the more new data;
According to the mark of the tables of data of the target data, each caching process submodule is called, judges the number of targets parallel
It whether is the corresponding tables of data of the caching process submodule according to table;
If the target matrix is the corresponding tables of data of the first caching process submodule, the first caching process is called
Module determines at least one for quoting the more new data according to the mark of more new data and the mark of the tables of data
Target service;
The more new data is updated in the corresponding service buffer of at least one described target service.
2. the method according to claim 1, wherein it is described by the more new data be updated to it is described at least one
In the corresponding service buffer of target service, comprising:
Calling and at least one one-to-one business processing submodule of at least one described target service, according to the update number
It is written in corresponding service buffer according to generating major key and key assignments to be written, and by the major key to be written and key assignments.
3. the method according to claim 1, wherein the method also includes:
The acquisition request of data that receiving terminal apparatus is sent, the number for obtaining request of data and being used to request the target service
According to;
According to the acquisition request of data, the updated target industry is read from the corresponding service buffer of the target service
The data of business;
The data of the updated target service are sent to the terminal device.
4. method according to claim 1-3, which is characterized in that the method also includes:
Receive the more new data of user's input;
The more new data is updated in the target matrix.
5. method according to claim 1-3, which is characterized in that the mark of the more new data include it is described more
Position of the new data in the target matrix.
6. a kind of data buffer storage processing unit, which is characterized in that database includes at least two tables of data, and each tables of data is corresponding
One caching process submodule, described device include:
Module is obtained, for obtaining the mark of the more new data in database and storing the target matrix of the more new data
Mark;
First calling module calls each caching process submodule for the mark according to the tables of data of the target data, and
Row judges whether the target matrix is the corresponding tables of data of the caching process submodule;
Second calling module, for calling in target matrix tables of data corresponding for the first caching process submodule
The first caching process submodule determines described in reference according to the mark of more new data and the mark of the tables of data
At least one target service of more new data;
First update module, for the more new data to be updated to the corresponding service buffer of at least one described target service
In.
7. device according to claim 6, which is characterized in that first update module is specifically used for:
Calling and at least one one-to-one business processing submodule of at least one described target service, according to the update number
It is written in corresponding service buffer according to generating major key and key assignments to be written, and by the major key to be written and key assignments.
8. device according to claim 6, which is characterized in that described device further include:
Receiving module, for the acquisition request of data that receiving terminal apparatus is sent, the acquisition request of data is described for requesting
The data of target service;
Read module, for reading and updating from the corresponding service buffer of the target service according to the acquisition request of data
The data of the target service afterwards;
Sending module, for sending the data of the updated target service to the terminal device.
9. a kind of electronic equipment characterized by comprising
Memory, for storing program instruction;
Processor, for calling and executing the program instruction in the memory, perform claim requires the described in any item sides of 1-5
Method step.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with computer program, the meter in the readable storage medium storing program for executing
Calculation machine program requires the described in any item methods of 1-5 for perform claim.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910061979.6A CN109885786B (en) | 2019-01-23 | 2019-01-23 | Data caching processing method and device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910061979.6A CN109885786B (en) | 2019-01-23 | 2019-01-23 | Data caching processing method and device, electronic equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109885786A true CN109885786A (en) | 2019-06-14 |
CN109885786B CN109885786B (en) | 2021-06-08 |
Family
ID=66926501
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910061979.6A Active CN109885786B (en) | 2019-01-23 | 2019-01-23 | Data caching processing method and device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109885786B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110515959A (en) * | 2019-07-25 | 2019-11-29 | 北京奇艺世纪科技有限公司 | Data consistency implementation method, device and readable storage medium storing program for executing |
CN110716885A (en) * | 2019-10-23 | 2020-01-21 | 北京字节跳动网络技术有限公司 | Data management method and device, electronic equipment and storage medium |
CN111083219A (en) * | 2019-12-11 | 2020-04-28 | 深信服科技股份有限公司 | Request processing method, device, equipment and computer readable storage medium |
CN111752916A (en) * | 2019-12-30 | 2020-10-09 | 北京沃东天骏信息技术有限公司 | Data acquisition method and device, computer readable storage medium and electronic equipment |
CN112749233A (en) * | 2021-01-15 | 2021-05-04 | 京东数字科技控股股份有限公司 | Data synchronization method and device, electronic equipment and storage medium |
CN113220669A (en) * | 2021-06-09 | 2021-08-06 | 京东科技控股股份有限公司 | Service data processing method and device and electronic equipment |
CN113495805A (en) * | 2020-03-19 | 2021-10-12 | 阿里巴巴集团控股有限公司 | Data processing method, node determination method, device, equipment and medium |
CN114205368A (en) * | 2020-08-27 | 2022-03-18 | 腾讯科技(深圳)有限公司 | Data storage system, control method, control device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160321288A1 (en) * | 2015-04-29 | 2016-11-03 | Box, Inc. | Multi-regime caching in a virtual file system for cloud-based shared content |
CN107066570A (en) * | 2017-04-07 | 2017-08-18 | 聚好看科技股份有限公司 | Data managing method and device |
CN107103068A (en) * | 2017-04-18 | 2017-08-29 | 聚好看科技股份有限公司 | The update method and device of service buffer |
CN107122410A (en) * | 2017-03-29 | 2017-09-01 | 武汉斗鱼网络科技有限公司 | A kind of buffering updating method and device |
CN108304408A (en) * | 2017-01-12 | 2018-07-20 | ***通信集团公司 | A kind of data cached method for refreshing and device |
-
2019
- 2019-01-23 CN CN201910061979.6A patent/CN109885786B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160321288A1 (en) * | 2015-04-29 | 2016-11-03 | Box, Inc. | Multi-regime caching in a virtual file system for cloud-based shared content |
CN108304408A (en) * | 2017-01-12 | 2018-07-20 | ***通信集团公司 | A kind of data cached method for refreshing and device |
CN107122410A (en) * | 2017-03-29 | 2017-09-01 | 武汉斗鱼网络科技有限公司 | A kind of buffering updating method and device |
CN107066570A (en) * | 2017-04-07 | 2017-08-18 | 聚好看科技股份有限公司 | Data managing method and device |
CN107103068A (en) * | 2017-04-18 | 2017-08-29 | 聚好看科技股份有限公司 | The update method and device of service buffer |
Non-Patent Citations (1)
Title |
---|
高飞: "Web页面缓存技术在业务***中的应用", 《计算机技术与发展》 * |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110515959A (en) * | 2019-07-25 | 2019-11-29 | 北京奇艺世纪科技有限公司 | Data consistency implementation method, device and readable storage medium storing program for executing |
CN110515959B (en) * | 2019-07-25 | 2022-09-20 | 北京奇艺世纪科技有限公司 | Data consistency implementation method and device and readable storage medium |
CN110716885A (en) * | 2019-10-23 | 2020-01-21 | 北京字节跳动网络技术有限公司 | Data management method and device, electronic equipment and storage medium |
CN111083219A (en) * | 2019-12-11 | 2020-04-28 | 深信服科技股份有限公司 | Request processing method, device, equipment and computer readable storage medium |
CN111752916A (en) * | 2019-12-30 | 2020-10-09 | 北京沃东天骏信息技术有限公司 | Data acquisition method and device, computer readable storage medium and electronic equipment |
CN111752916B (en) * | 2019-12-30 | 2024-04-16 | 北京沃东天骏信息技术有限公司 | Data acquisition method and device, computer readable storage medium and electronic equipment |
CN113495805A (en) * | 2020-03-19 | 2021-10-12 | 阿里巴巴集团控股有限公司 | Data processing method, node determination method, device, equipment and medium |
CN113495805B (en) * | 2020-03-19 | 2024-06-07 | 阿里巴巴集团控股有限公司 | Data processing method, node determining method, device, equipment and medium |
CN114205368A (en) * | 2020-08-27 | 2022-03-18 | 腾讯科技(深圳)有限公司 | Data storage system, control method, control device, electronic equipment and storage medium |
CN114205368B (en) * | 2020-08-27 | 2023-06-30 | 腾讯科技(深圳)有限公司 | Data storage system, control method, control device, electronic equipment and storage medium |
CN112749233A (en) * | 2021-01-15 | 2021-05-04 | 京东数字科技控股股份有限公司 | Data synchronization method and device, electronic equipment and storage medium |
CN112749233B (en) * | 2021-01-15 | 2024-05-17 | 京东科技控股股份有限公司 | Data synchronization method, device, electronic equipment and storage medium |
CN113220669A (en) * | 2021-06-09 | 2021-08-06 | 京东科技控股股份有限公司 | Service data processing method and device and electronic equipment |
CN113220669B (en) * | 2021-06-09 | 2024-04-16 | 京东科技控股股份有限公司 | Service data processing method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109885786B (en) | 2021-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109885786A (en) | Data buffer storage processing method, device, electronic equipment and readable storage medium storing program for executing | |
US9996565B2 (en) | Managing an index of a table of a database | |
US20150006608A1 (en) | Networked solutions integration using a cloud business object broker | |
CN108897628A (en) | A kind of implementation method of distributed lock, device and electronic equipment | |
US20150310052A1 (en) | Managing a table of a database | |
CN110060153B (en) | Data evidence storage method and system based on multiple block chain networks | |
CN102834806A (en) | System structure managing device, method of managing system structure, and program | |
CN113220717B (en) | Block chain-based data verification method and device and electronic equipment | |
CN112685499A (en) | Method, device and equipment for synchronizing process data of work service flow | |
CN111309693A (en) | Data synchronization method, device and system, electronic equipment and storage medium | |
US11429311B1 (en) | Method and system for managing requests in a distributed system | |
CN112291321B (en) | Service processing method, device and system | |
CN111597403B (en) | Method and device for constructing graph index, electronic equipment and storage medium | |
CN107644020B (en) | Data storage and calling method and device | |
WO2024066005A1 (en) | Method and apparatus for replaying blockchain transaction | |
JP7221652B6 (en) | External change detection | |
CN114640595B (en) | Cascading method, device, electronic equipment and storage medium | |
CN111552715B (en) | User query method and device | |
CN112507676B (en) | Method and device for generating energy report, electronic equipment and computer readable medium | |
CN112100211B (en) | Data storage method, apparatus, electronic device, and computer readable medium | |
CN110060152B (en) | Data reading method and system based on multiple block chain networks | |
CN113760927A (en) | Data processing method and device, electronic equipment and computer readable medium | |
CN110889040B (en) | Method and device for pushing information | |
CN111625692B (en) | Feature extraction method, device, electronic equipment and computer readable medium | |
CN110858201A (en) | Data processing method and system, processor and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |