CN106326340A - Method and device for processing data - Google Patents

Method and device for processing data Download PDF

Info

Publication number
CN106326340A
CN106326340A CN201610631022.7A CN201610631022A CN106326340A CN 106326340 A CN106326340 A CN 106326340A CN 201610631022 A CN201610631022 A CN 201610631022A CN 106326340 A CN106326340 A CN 106326340A
Authority
CN
China
Prior art keywords
operation requests
data
user
data base
write
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610631022.7A
Other languages
Chinese (zh)
Other versions
CN106326340B (en
Inventor
刘畅
陈苗荣
黄晓军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba South China Technology Co ltd
Original Assignee
Netease Kaola Hangzhou Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Kaola Hangzhou Technology Co Ltd filed Critical Netease Kaola Hangzhou Technology Co Ltd
Priority to CN201610631022.7A priority Critical patent/CN106326340B/en
Publication of CN106326340A publication Critical patent/CN106326340A/en
Application granted granted Critical
Publication of CN106326340B publication Critical patent/CN106326340B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a method and a device for processing data. The method comprises the following steps of receiving an operation request; when the result of the received operation request containing a first type of operation is determined, executing the first type of operation for an operation object of the first type of operation in the cache, and avoiding processing the operation object of the first type of operation in the database; when the result of the received operation request not containing the first type of operation is determined, executing the operation request for the operation request of the operation request in the cache, and executing the operation request corresponding to the operation object of the operation request in the database. The method has the advantages that the stress of the database can be well relieved, the operation speed is improved, the response speed is improved, and the user experience is improved.

Description

A kind of data processing method and device
Technical field
Embodiments of the present invention relate to technical field of data processing, more specifically, embodiments of the present invention relate to one Plant data processing method and device.
Background technology
This part is it is intended that the embodiments of the present invention stated in claims provide background or context.Herein Describe not because being included in this part just recognize it is prior art.
Along with the development of Internet technology, Internet Service Provider provides the user the same of network service easily Time, it is also desirable to constantly the data of storage in data base are updated, so that user experiences net more easily by the Internet Network services.
Under normal circumstances, in Database Systems, it is all directly to operate in data base when data are processed, In the case for the treatment of capacity is less, database response speed, but, in the case for the treatment of capacity is relatively big, database processing Speed is relatively slow, thus affects response speed, causes the situation that user waits.Such as, in user social contact scene, for a use The model that family sends, other users can carry out commenting on for this model, put operations such as praising, wherein comment on and put to praise to wait and operate all The function of counting statistics can be related to.
In the prior art, the record of user social contact data includes two parts, it may be assumed that record the caching at database server Neutralizing and record in data base, all Social behaviors data of user are recorded in real time in above-mentioned caching and data base.Such as Certain model is carried out a little praising by one user, then the point of this user praises record, in meeting real time record to caching and data base, and bag Include and point is praised the record that counting number adds 1, after these operations all complete, feed back to such as praising the operating result that counting number adds 1 The user being posted by.But this mode is big at number of users, operational ton relatively big in the case of, due to the operation to data base Finite rate, it may appear that the situation that user waits, is embodied in user after point is praised, it is impossible to display operating result, or Operating result display mistake, this has just had a strong impact on user's perception.
At present, in Database Systems, it is all directly to operate in data base when data are processed, works as process Measure less in the case of, database response speed, but, in the case for the treatment of capacity is relatively big, database processing speed is relatively Slowly, thus affect response speed, cause the situation that user waits.
Summary of the invention
The invention provides a kind of data processing method and device, improve the processing speed of data base, accelerate response speed, Promote the perception of user.
A kind of data processing method, including receiving operation requests;First is included determine the operation requests received During type operations, the operation object of first kind operation described in caching is performed the operation of the described first kind, and to data base Described in the first kind operation operation object do not process;And do not include first determine the operation requests received During type operations, the operation object of operation requests described in caching is performed described operation requests, and grasps described in data base The operation object making to ask performs described operation requests.
When determining that the operation requests received includes that the first kind operates, also include: the described first kind is operated Write task queue.
Also include: according to setting cycle, obtain the first kind operation of write in described task queue;To institute in data base The operation object of the first kind operation stating write performs the first kind operation of said write.
Described task queue is to be maintained in independent of in the internal memory on the physical equipment of database server and hard disk simultaneously First Input First Output.
When determining that the operation requests received includes that the first kind operates, also include: perform described in data base Other operations that operation requests includes.
Also include: receive data acquisition request;According to described data acquisition request, obtain in the buffer and obtain with described data Take the data that request is corresponding, and return the data of described correspondence.
The operation of the described first kind is the operation that logarithm value parameter carries out adding 1 or subtracting 1.
A kind of data processing equipment, including: receiver module, it is used for receiving operation requests;Processing module, for determining The operation requests received include when the first kind operates, to caching described in the first kind operation operation object perform institute State first kind operation, and the operation object of the operation of the first kind described in data base is not processed;And connect determining The operation requests received do not include when the first kind operates, to caching described in operation requests operation object perform described behaviour Ask, and the operation object of operation requests described in data base is performed described operation requests.
Described processing module, is additionally operable to the operation write task queue of the described first kind.
Described processing module, is additionally operable to, according to setting cycle, obtain the first kind operation of write in described task queue; Operation object to the first kind operation of write described in data base performs the first kind operation of said write.
Preferably, described task queue be maintained in independent of the internal memory on the physical equipment of database server simultaneously and First Input First Output in hard disk.
Described processing module, when determining that the operation requests received includes that the first kind operates, is additionally operable in data Storehouse performs other operations that described operation requests includes.
Described receiver module, is additionally operable to receive data acquisition request;Described processing module, is additionally operable to obtain according to described data Take request, obtain the data corresponding with described data acquisition request in the buffer, and return the data of described correspondence.
Preferably, the operation of the described first kind is the operation that logarithm value parameter carries out adding 1 or subtracting 1.
By using technique scheme, for the operation requests received, determining the operation requests that receives When operating including the first kind, the operation object of first kind operation in caching is performed first kind operation, and to data base The operation object of middle first kind operation does not processes, and does not includes the first kind determine the operation requests received During operation, the operation object of operation requests in caching is performed operation requests, and to the operation object of operation requests in data base Performing operation requests, so, the action type that the operation requests received is comprised being made differentiation, if including the first kind During operation, the most only the operation object that this first kind operation in caching is corresponding is performed operation, and not in data base this first The operation object of type operations is handled it, so, in the case of the situation of first kind operation is more, and can be the most slow Solve the pressure of data base, improve speed of operation, promote response speed, and then improve Consumer's Experience.
Accompanying drawing explanation
By reading detailed description below, above-mentioned and other mesh of exemplary embodiment of the invention with reference to accompanying drawing , feature and advantage will become prone to understand.In the accompanying drawings, if showing the present invention's by way of example, and not by way of limitation Dry embodiment, wherein:
Fig. 1 schematically shows the application scenarios schematic diagram according to embodiment of the present invention;
Fig. 2 schematically shows the data processing method flow chart according to embodiment of the present invention;
Fig. 3 schematically shows the data processing method flow chart according to embodiment of the present invention;
Fig. 4 schematically shows the data processing equipment structure composition schematic diagram according to embodiment of the present invention;
Fig. 5 schematically shows the data processing equipment structure composition schematic diagram according to further embodiment of this invention;
Fig. 6 schematically shows the data processing equipment structure composition schematic diagram according to further embodiment of this invention;
Fig. 7 schematically shows the program product for data processing method according to yet another embodiment of the invention and illustrates Figure.
In the accompanying drawings, identical or corresponding label represents identical or corresponding part.
Detailed description of the invention
Principle and the spirit of the present invention are described below with reference to some illustrative embodiments.Should be appreciated that and provide this A little embodiments are only used to make those skilled in the art better understood when and then realize the present invention, and not with any Mode limits the scope of the present invention.On the contrary, it is provided that these embodiments are to make the disclosure more thorough and complete, and energy Enough the scope of the present disclosure is intactly conveyed to those skilled in the art.
One skilled in the art will appreciate that embodiments of the present invention can be implemented as a kind of system, device, equipment, method Or computer program.Therefore, the disclosure can be to be implemented as following form, it may be assumed that hardware, completely software completely (including firmware, resident software, microcode etc.), or the form that hardware and software combines.
According to the embodiment of the present invention, it is proposed that a kind of data processing method and device.
In this article, it is to be understood that any number of elements in accompanying drawing is used to example and unrestricted and any Name is only used for distinguishing, and does not have any limitation.
Principle and spirit below with reference to some representative embodiments of the present invention, in detail the explaination present invention.
Summary of the invention
The inventors discovered that, in prior art, in Database Systems, be all directly in data when data are processed Storehouse operates, in the case for the treatment of capacity is less, database response speed, but, when the situation that treating capacity is bigger Under, database processing speed is relatively slow, thus affects response speed, causes the situation that user waits.Such as, in user social contact scene In, the model sent for user, other users can carry out commenting on, putting operations such as praising for this model, wherein comment on And point praises to wait to operate and all can relate to the function of counting statistics.In the prior art, the record of user social contact data includes two Point, it may be assumed that recording the caching neutralization at database server and record in data base, all Social behaviors data of user are remembered in real time Record is in above-mentioned caching and data base.Certain model is carried out a little praising by such as one user, then the point of this user praises record, Meeting real time record with in data base, praises, including to point, the record that counting number adds 1 to caching, after these operations all complete, and will such as Point is praised the operating result that counting number adds 1 and is fed back to the user being posted by.But this mode is big at number of users, operational ton relatively In the case of great, due to limited to the speed of operation of data base, it may appear that the situation that user waits, it is embodied in user at point After praising, it is impossible to display operating result, or operating result display mistake, this has just had a strong impact on user's perception.Prior art The improved procedure of a kind of database technology of middle shortage, for improving the processing speed of data base, accelerates response speed, promotes user Perception.
The present invention proposes a kind of data processing method and device, and wherein, in this data processing method, receiving operation please Ask;Determining when including that the first kind operates of the operation requests received, right to the operation of first kind operation in caching As performing first kind operation, and the operation object of first kind operation in data base is not processed;And connect determining The operation requests received do not include when the first kind operates, to caching in operation requests operation object perform described operation please Ask, and the operation object of operation requests in data base is performed operation requests.So, the operation requests received is comprised Action type makes differentiation, if including when the first kind operates, the most only to record in the caching of database server the The operation object of one type operations performs operation, and does not makes the operation object of the first kind operation recorded in data base Process, so, in the case of the situation of first kind operation is more, can preferably alleviate the pressure of data base, improve behaviour Make speed, promote response speed, and then improve Consumer's Experience.
After the ultimate principle describing the present invention, introduce the various non-limiting embodiment party of the present invention in detail below Formula.
Application scenarios overview
With reference first to Fig. 1, as it is shown in figure 1, the application scenarios signal of the data processing method provided for the embodiment of the present invention Figure, including user 10, user terminal 101 and server side 102, wherein, user 10 can access social activity by user terminal 101 Network.Specifically, user terminal 101 can be installed corresponding social class applications client, or browser.
Server side 102 is the server side of the social networks that user 10 is accessed by user terminal 101.User 10 with Family terminal 101 is opened social networks homepage log in, and after inputting username and password, social networks clothes can be logged in Business device side 102, during user access server side 102, sends operation requests, server side 102 to server side 102 Receive operation requests, and determining when including that the first kind operate of the operation requests received, to the first kind in caching The operation object of operation performs first kind operation, and does not processes the operation object of first kind operation in data base, That determines the operation requests received does not includes when the first kind operates, and the operation object of operation requests in caching is performed behaviour Ask, and the operation object making in data base to ask is performed operation requests.
Wherein, user terminal and server side can be communicated by the Internet.User terminal can be mobile phone, flat board electricity Brain or desktop computer etc..
Illustrative methods
Below in conjunction with the application scenarios of Fig. 1, with reference to Fig. 2~Fig. 7, the number according to exemplary embodiment of the invention is described According to processing method.It should be noted that above-mentioned application scenarios is for only for ease of and understand that spirit and principles of the present invention illustrate, Embodiments of the present invention are the most unrestricted.On the contrary, what embodiments of the present invention can apply to be suitable for appoints What scene.
Fig. 2 is that the embodiment of the present invention proposes a kind of data processing method, and its concrete handling process is the most following:
Step 21, user sends operation requests.
For ease of illustrating, in the technical scheme that the embodiment of the present invention proposes, social network will be logged in user by mobile phone It is described in detail as a example by network.
Assume that user A logs in social networks by mobile phone, and in social networks, deliver an article.User B is user A Good friend in this social networks, user B also logs in social networks, and sees the article that user A sends.User B is to this article Carry out a little praising.User A publishes an article, this article is carried out a little praising by user B, and these processes are corresponding sequence of user is to server The operation requests that side sends.
One preferably implementation, in the technical scheme that the embodiment of the present invention proposes, for ease of illustrating, please with operation Seeking Truth user B is described in detail as a example by carrying out a little praising to this article.
Step 22, server receives the operation requests that user sends.
Step 23, server judges whether include that the first kind operates in the operation requests received, if it is judged that It is yes, performs step 24, whereas if judged result is no, perform step 25.
The embodiment of the present invention propose technical scheme in, the first kind operation can be logarithm value parameter carry out adding 1 or The operation that person subtracts 1.Still as a example by issue the user A issue article in data instance, i.e. above-mentioned steps 21 in social networks It is described in detail.For user B for this article carries out the operation a little praised, corresponding operation requests contains and a little praises meter The operation of number, the quantity i.e. praised point adds 1, if afterwards when user B point is praised and cancelled afterwards, then the quantity praised point subtracts 1, then exist In the technical scheme that the embodiment of the present invention proposes, the point in operation requests is praised counting and is operated as the first kind.And for ID, the i.e. ID of user B that the article point that family A issues is praised carry out record, then as other in addition to operating except the first kind Type operations.
Step 24, server is when determining that the operation requests received includes that the first kind operates, in caching first The operation object of type operations performs first kind operation, and the operation object operating the first kind in data base does not do and locates Reason.
Under normal conditions, the record of user social contact data includes two parts, it may be assumed that record the caching at database server Neutralizing and record in data base, all Social behaviors data of user are recorded in real time in above-mentioned caching and data base.But, In the technical scheme that the embodiment of the present invention proposes, when comprising first kind operation during server determines operation requests, only The operation object of the record this first kind operation in the caching of database server is modified, record is not being counted The operation object operated according to this first kind in storehouse is modified.
Still it is described in detail as a example by the operation requests that user B sends.The operation requests sent for user B, service Device side determines in the operation requests of correspondence and contains operation a little praising counting, then praised by the point in operation requests and count as first Type operations.The operation object of the server side this first kind operation to recording in the caching of data base (i.e. praises counting Parameter) carry out adding 1 operation, and praise the parameter of counting for the point of storage in data base and do not process.
Peel off by the first kind in operation requests is operated, can preferably avoid customer volume relatively big, or certain The user that period user concurrent request amount causes when expanding suddenly waits situation, or the situation of mistake of statistics, promotes user's body Test.
Step 25, determining when not including that the first kind operates of the operation requests received, please to operation in caching The operation object asked performs operation requests, and the operation object of operation requests in data base is performed operation requests.
By user C for being described in detail as a example by user A good friend in social networks, if what user A was issued by user C After article carries out a little praising, user C sends again an operation requests, and the operation requests that this user C sends again is for asking Delete the friend relation with user A, then the operation requests that this user C sends again is not include the first action type, then In the case of this kind, according in the technical scheme that the embodiment of the present invention proposes, the friend relation of the user C in caching is carried out correspondence Operation, releases the friend relation between user C and user A, and the friend relation of the user A of storage in data base is carried out correspondence Operation, releases the friend relation between user A and user C.
Alternatively, in above-mentioned steps 24 when determining that the operation requests received includes that the first kind operates, also include: By first kind operation write task queue.And according to setting cycle, obtain the first kind operation of write in task queue, Operation object to the first kind operation of write in data base performs the first kind operation of write.
Wherein, in the technical scheme that the embodiment of the present invention is set forth above, task queue is to be maintained in independent of number simultaneously According to the internal memory on the physical equipment of storehouse server and the First Input First Output in hard disk.
Still it is described in detail as a example by the operation requests that above-mentioned user B sends.In the technology that the embodiment of the present invention proposes In scheme, task queue is when safeguarding, the physical equipment of store tasks queue, can be to be with the physical equipment storing data base Identical physical equipment, but in the case of this kind, task queue and data base need different the depositing being positioned in Same Physical equipment Storage area.
One preferably implementation, the physical equipment of store tasks queue and the physical equipment of database server are not Identical physical equipment, i.e. task queue individually store, and so can preferably promote processing speed, and it is standby to carry out disaster tolerance Part, preventing the data in task queue from disappearing cannot give for change.
The first kind operation of storage in task queue, needs, according to setting cycle, to obtain the first kind in task queue Type operates, and the object that operates of the first kind operation of write in data base is performed the first kind operation of write.In the present invention In the technical scheme that example proposes, the first kind operation of storage in task queue, take the pattern of FIFO, i.e. at logarithm When performing the first kind operation of write according to the operation object of the first kind operation of write in storehouse, first obtain in task queue The first kind operation stored at first, deletes the operation of this first kind stored at first in described task queue simultaneously, and right The operation object of the first kind operation of this acquisition performs the operation of this first kind..
Alternatively, idle can be arranged on during the operation of the first kind in obtaining task queue to obtain in task queue The first kind operates.Wherein, for the server for recording social network data, idle may refer to user operation amount Other period less time period, the most workaday daytime or the night etc. at weekend relatively.
In the technical scheme that the embodiment of the present invention proposes, determining that the operation requests received includes that the first kind operates Time, while in the caching in data base for the operation object execution first kind operation of first kind operation, it is possible to To perform other operation that operation requests includes in data base.With user B, the article that user A issues is carried out the behaviour a little praised It is described in detail as example.Point is praised counting and is operated as the first kind, and the user praised for the article point that user A is issued The ID of ID, i.e. user B carries out record, then as other type operations in addition to operating except the first kind.Implement according to the present invention The technical scheme that example proposes, performs point and praises counting, and perform point in data base and praise counting and note in the caching in data base Employ the operation of the mark of family B.
Alternatively, after above-mentioned steps 24~step 25, as it is shown on figure 3, also include:
Step 31, user sends data acquisition request.
In this step, will be described in detail as a example by user A.Assume that user A logs in social network by mobile phone above Network, and in social networks, deliver an article.User B is user A good friend in this social networks, and user B also logs in society Hand over network, and see the article that user A sends.This article is carried out a little praising by user B.
At a time, user A sends data acquisition request, praises number for obtaining the total point to this article.
Step 32, server receives data acquisition request.
Step 33, according to data acquisition request, obtains the data corresponding with data acquisition request in the buffer, and return right The data answered.
The data acquisition request that server sends according to user A, obtains good friend in the buffer and praises to always putting of this article Number, and acquisition result is presented to user A.
For compared to existing technology, carrying out in now for user, be from caching, to obtain data rather than directly counting Obtain according in storehouse, decrease the operation to data base, it is to avoid mass data in data base makes a look up, save money Source, raising efficiency.Further, the embodiment of the present invention propose technical scheme in, by the first kind operation and other operate into Row is peeled off, and improves the treatment effeciency of operation requests, improves properties of product.
Example devices
After the method describing exemplary embodiment of the invention, it follows that it is exemplary to describe the present invention with reference to Fig. 4 The data processing equipment of embodiment.
One of a kind of structural representation that Fig. 4 provides for the embodiment of the present invention, as shown in Figure 4, can include such as lower mold Block:
Receiver module 401, is used for receiving operation requests.
Processing module 402, for determining when including that the first kind operate of the operation requests received, in caching The operation object of described first kind operation performs the operation of the described first kind, and to the operation of the first kind described in data base Operation object does not processes;And determining when not including that the first kind operates of the operation requests received, in caching The operation object of described operation requests performs described operation requests, and performs the operation object of operation requests described in data base Described operation requests.
Alternatively, above-mentioned processing module 402, it is additionally operable to the operation write task queue of the described first kind.
Alternatively, above-mentioned processing module 402, it is additionally operable to according to setting cycle, obtains the of write in described task queue One type operations;Operation object to the first kind operation of write described in data base performs the first kind behaviour of said write Make.
Specifically, the described task queue that above-mentioned processing module 402 obtains is to be maintained in independent of database service simultaneously Internal memory on the physical equipment of device and the First Input First Output in hard disk.
Alternatively, above-mentioned processing module 402, it is additionally operable in data base, perform other behaviour that described operation requests includes Make.
Alternatively, above-mentioned receiver module 401, it is additionally operable to receive data acquisition request;Described processing module 402, is additionally operable to According to described data acquisition request, obtain the data corresponding with described data acquisition request in the buffer, and return described correspondence Data.
Specifically, the operation of above-mentioned processing module 402 is determined the described first kind be logarithm value parameter carry out adding 1 or The operation subtracting 1.
The data processing equipment that the invention described above embodiment proposes, its particular make-up module and enforcement principle refer to State elaborating in embodiment of the method, repeat no more.
In the data processing equipment that the embodiment of the present invention is set forth above, the operation that the operation requests received is comprised Type makes differentiation, if including when the first kind operates, the operation object of first kind operation in caching is performed the first kind Type operate, and in data base the first kind operation operation object do not process, so, when the first kind operation situation relatively In the case of Duo, can preferably alleviate the pressure of data base, improve speed of operation, promote response speed, and then improve user Experience.
Example devices
After the method and apparatus describing exemplary embodiment of the invention, it follows that introduce according to the present invention's The data processing equipment of another exemplary embodiment.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be to be implemented as following form, it may be assumed that hardware embodiment, complete completely Full Software Implementation (including firmware, microcode etc.), or the embodiment that hardware and software aspect combines, can unite here It is referred to as " circuit ", " module " or " system ".
In the embodiment that some are possible, as it is shown in figure 5, can at least include according to the data processing equipment of the present invention At least one processing unit 501 and at least one memory element 502.Wherein, described memory element 501 has program stored therein generation Code, when described program code is performed by described processing unit 502 so that it is above-mentioned that described processing unit 502 performs this specification The step in the data processing method according to the various illustrative embodiments of the present invention described in " illustrative methods " part.Example As, described processing unit can perform step 22 as shown in Figure 2, and server receives the operation requests that user sends.Step 23, server judges whether include that the first kind operates in the operation requests received, if it is judged that be yes, performs step 24, whereas if judged result is no, perform step 25.Step 24, server is determining that the operation requests received includes During first kind operation, the operation object of first kind operation in caching is performed first kind operation, and in data base the The operation object of one type operations does not processes.Step 25, does not includes the first kind determine the operation requests received During operation, the operation object of operation requests in caching is performed operation requests, and to the operation object of operation requests in data base Perform operation requests.
Referring to Fig. 6, the data processing equipment 600 according to the embodiment of the invention is described.Fig. 6 shows Data processing equipment 600 is only an example, the function of the embodiment of the present invention and range should not brought any restriction.
As shown in Figure 6, data processing equipment 600 shows with the form of universal computing device.The group of data processing equipment 600 Part can include but not limited to: at least one processing unit 6001 above-mentioned, at least one memory element 6002 above-mentioned, connection difference The bus 6003 of system component (including processing unit 6001 and memory element 6002).
Bus 6003 represents one or more in a few class bus structures, controls including memory bus or memorizer Device, peripheral bus, processor or use any bus-structured local bus in multiple bus structures.
Memory element 6002 can include the computer-readable recording medium of form of volatile memory, such as random access memory (RAM) 60021 and/or cache memory 60022, it is also possible to farther include read only memory (ROM) 60023.
Memory element 6002 can also include the program/utility with one group of (at least one) program module 60024 60025, such program module 60024 includes but not limited to: operating system, one or more application program, other program Module and routine data, potentially include the realization of network environment in each or certain combination in these examples.
Data processing equipment 600 can also lead to one or more external equipments 6004 (such as keyboard, sensing equipment etc.) Letter, also can enable a user to the equipment communication mutual with data processing equipment 600 with one or more, and/or with make this Any equipment (the such as router, modulatedemodulate that data processing equipment 600 can communicate with other calculating equipment one or more Adjust device etc.) communication.This communication can be passed through input/output (I/O) interface 6005 and carry out.Further, data processing equipment 600 Can also be by network adapter 6006 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public affairs Common network network, such as the Internet) communication.As shown in Figure 6, network adapter 6006 is by bus 6003 and for data processing equipment Other module communication of 600.Should be appreciated that although not shown in, other hardware can be used in conjunction with data processing equipment 600 And/or software module, include but not limited to: microcode, device driver, redundant processing unit, external disk driving array, RAID system, tape drive and data backup storage system etc..
Exemplary process product
In the embodiment that some are possible, the various aspects of the data processing method that the present invention provides are also implemented as A kind of form of program product, it includes program code, when described program product runs on a computing device, described program Code is used for making that described computer equipment performs described in this specification above-mentioned " illustrative methods " part is each according to the present invention Planting the step in the data processing method of illustrative embodiments, such as, described computer equipment can perform as shown in Figure 2 Step 21, user sends operation requests.Step 22, server receives the operation requests that user sends.Step 23, server is sentenced Whether the operation requests that disconnecting receives including, the first kind operates, if it is judged that be yes, performs step 24, otherwise, as Really judged result is no, performs step 25.Step 24, server is determining that the operation requests received includes that the first kind is grasped When making, the operation object of first kind operation in caching is performed first kind operation, and the first kind in data base is operated Operation object do not process.Step 25, determining when not including that the first kind operates of the operation requests received, to slow The operation object depositing middle operation requests performs operation requests, and please to the operation object execution operation of operation requests in data base Ask.
Described program product can use the combination in any of one or more computer-readable recording medium.Computer-readable recording medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing such as can be but not limited to electricity, magnetic, optical, electromagnetic, red Outside line or the system of quasiconductor, device or device, or above combination.The more specifically example of readable storage medium storing program for executing (non exhaustive list) including: has the electrical connection of one or more wire, portable disc, hard disk, random access memory (RAM), read only memory (ROM), erasable type programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc are only Read memorizer (CD-ROM), light storage device, magnetic memory device or the combination of above-mentioned any appropriate.
As it is shown in fig. 7, describe the program product 710 processed for data according to the embodiment of the present invention, it can To use portable compact disc read only memory (CD-ROM) and to include program code, it is possible to run on the terminal device.So And, the program product of the present invention is not limited to this, and in this document, readable storage medium storing program for executing can be any to comprise or store program Tangible medium, this program can be commanded execution system, device or device and use or in connection.
The data signal that readable signal medium can include in a base band or propagate as a carrier wave part, wherein carries Readable program code.The data signal of this propagation can take various forms, and includes but not limited to that electromagnetism is believed Number, optical signal or the combination of above-mentioned any appropriate.Readable signal medium can also is that beyond readable storage medium storing program for executing any can Read medium, this computer-readable recording medium can send, propagate or transmit for being used by instruction execution system, device or device or Program in connection.
The program code comprised on computer-readable recording medium can include but not limited to any suitable medium transmission Wireless, wired, optical cable, RF etc., or the combination of above-mentioned any appropriate.
The program for performing present invention operation can be write with the combination in any of one or more programming languages Code, described programming language includes object oriented program language such as Java, C++ etc., also includes routine Process type programming language such as " C " language or similar programming language.Program code can be fully user Perform on calculating equipment, perform the most on a user device, perform as an independent software kit, partly calculate user Its upper side is divided execution on a remote computing or performs in remote computing device or server completely.Relating to far Journey calculates in the situation of equipment, and remote computing device can include LAN (LAN) or wide by the network of any kind Territory net (WAN) is connected to user and calculates equipment, or, it may be connected to external computing device (such as utilizes Internet service Provider passes through Internet connection).
Although it should be noted that, in above-detailed, be referred to some unit or the subelement of device, but this stroke Point be merely exemplary is the most enforceable.It practice, according to the embodiment of the present invention, above-described two or more The feature of unit and function can embody in a unit.Otherwise, feature and the function of an above-described unit can Embody with Further Division for by multiple unit.
Although additionally, describe the operation of the inventive method in the accompanying drawings with particular order, but, this do not require that or Hint must perform these operations according to this particular order, or having to carry out the most shown operation could realize desired Result.Additionally or alternatively, it is convenient to omit some step, multiple steps are merged into a step and performs, and/or by one Step is decomposed into multiple step and performs.
Although describing spirit and principles of the present invention by reference to some detailed description of the invention, it should be appreciated that, this Invention is not limited to disclosed detailed description of the invention, and the division to each side does not means that the feature in these aspects can not yet Combination to be benefited, this division merely to statement convenience.It is contemplated that contain claims spirit and Various amendments included by the range of and equivalent arrangements.

Claims (10)

1. a data processing method, including:
Receive operation requests;
Behaviour determining when including that the first kind operates of the operation requests received, to first kind operation described in caching Make object and perform the operation of the described first kind, and the operation object of the operation of the first kind described in data base is not processed;With And
Operation determining when not including that the first kind operates of the operation requests received, to operation requests described in caching Object performs described operation requests, and the operation object of operation requests described in data base is performed described operation requests.
Method the most according to claim 1, when determining that the operation requests received includes that the first kind operates, also wraps Include:
By the operation write task queue of the described first kind.
Method the most according to claim 2, also includes:
According to setting cycle, obtain the first kind operation of write in described task queue;
Operation object to the first kind operation of write described in data base performs the first kind operation of said write.
The most according to the method in claim 2 or 3, described task queue is to be maintained in independent of database server simultaneously Internal memory on physical equipment and the First Input First Output in hard disk.
Method the most according to claim 1, when determining that the operation requests received includes that the first kind operates, also wraps Include:
Other operations that described operation requests includes are performed in data base.
Method the most according to claim 1, also includes:
Receive data acquisition request;
According to described data acquisition request, obtain the data corresponding with described data acquisition request in the buffer, and return described Corresponding data.
Method the most according to claim 1, the operation of the described first kind is the behaviour that logarithm value parameter carries out adding 1 or subtracting 1 Make.
8. a data processing equipment, including:
Receiver module, is used for receiving operation requests;
Processing module, for determining when including that the first kind operate of the operation requests received, to described in caching the The operation object of one type operations performs the operation of the described first kind, and the operation to the operation of the first kind described in data base is right As not processing;And determining when not including that the first kind operates of the operation requests received, grasp described in caching The operation object making to ask performs described operation requests, and the operation object of operation requests described in data base is performed described behaviour Ask.
Device the most according to claim 8, described processing module, it is additionally operable to described first kind operation write task team Row.
Device the most according to claim 9, described processing module, it is additionally operable to according to setting cycle, obtains described task team The first kind operation of write in row;The operation object of the first kind operation of write described in data base is performed said write The first kind operation.
CN201610631022.7A 2016-08-01 2016-08-01 A kind of data processing method and device Active CN106326340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610631022.7A CN106326340B (en) 2016-08-01 2016-08-01 A kind of data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610631022.7A CN106326340B (en) 2016-08-01 2016-08-01 A kind of data processing method and device

Publications (2)

Publication Number Publication Date
CN106326340A true CN106326340A (en) 2017-01-11
CN106326340B CN106326340B (en) 2019-08-02

Family

ID=57739547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610631022.7A Active CN106326340B (en) 2016-08-01 2016-08-01 A kind of data processing method and device

Country Status (1)

Country Link
CN (1) CN106326340B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108573013A (en) * 2017-12-08 2018-09-25 北京金山云网络技术有限公司 Request processing method, device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923577A (en) * 2010-09-02 2010-12-22 北京开心人信息技术有限公司 Expandable counting method and system
CN104157065A (en) * 2014-07-25 2014-11-19 广州华多网络科技有限公司 Internet voting method and device
CN105095423A (en) * 2015-07-15 2015-11-25 北京奇虎科技有限公司 Write-in method and device for count data
CN105677511A (en) * 2015-12-30 2016-06-15 首都师范大学 Data writing method and apparatus for reducing synchronization overheads

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923577A (en) * 2010-09-02 2010-12-22 北京开心人信息技术有限公司 Expandable counting method and system
CN104157065A (en) * 2014-07-25 2014-11-19 广州华多网络科技有限公司 Internet voting method and device
CN105095423A (en) * 2015-07-15 2015-11-25 北京奇虎科技有限公司 Write-in method and device for count data
CN105677511A (en) * 2015-12-30 2016-06-15 首都师范大学 Data writing method and apparatus for reducing synchronization overheads

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108573013A (en) * 2017-12-08 2018-09-25 北京金山云网络技术有限公司 Request processing method, device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN106326340B (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN107682397B (en) Customer resources acquisition methods, device, terminal device and storage medium
CN109118160B (en) Information sharing method, device, terminal equipment and medium
CN109299220A (en) Worker's online testing test paper generation method and terminal device
CN107925701A (en) Notified for the event of application
CN107247629A (en) Cloud computing system and cloud computing method and device for controlling server
CN108038112A (en) Document handling method, mobile terminal and computer-readable recording medium
CN109359237A (en) It is a kind of for search for boarding program method and apparatus
CN102834806A (en) System structure managing device, method of managing system structure, and program
CN109327355A (en) Cloud storage system performance evaluation methodology, device and computer readable storage medium
CN109710507A (en) A kind of method and apparatus of automatic test
CN108322523A (en) Method, server and mobile terminal are recommended in a kind of application
CN109885593A (en) Method and apparatus for handling information
CN108696649A (en) Image processing method, device, equipment and computer readable storage medium
CN109635993A (en) Operation behavior monitoring method and device based on prediction model
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN112734498A (en) Task reward acquisition method, device, terminal and storage medium
CN107506494A (en) Document handling method, mobile terminal and computer-readable recording medium
CN115022098A (en) Artificial intelligence safety target range content recommendation method, device and storage medium
CN109117352A (en) Server performance prediction technique and device
CN106533810A (en) Log management methods, terminal and cloud server
CN109905366A (en) Terminal device safe verification method, device, readable storage medium storing program for executing and terminal device
CN109492687A (en) Method and apparatus for handling information
CN106326340A (en) Method and device for processing data
CN108400929A (en) Data processing method, device, computing device and medium
CN107332988A (en) Information processing method, mobile terminal and computer-readable recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191106

Address after: 310012 G building, 10 floor, A building, Paradise Software Park, 3 West Road, Hangzhou, Xihu District, Zhejiang

Patentee after: Alibaba (China) Co.,Ltd.

Address before: Hangzhou City, Zhejiang province 310051 Binjiang District River Street No. 1786 Jianghan Road Longsheng Building Room 803

Patentee before: NETEASE KOALA (HANGZHOU) TECH CO.,LTD.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221202

Address after: Room 2001, No. 88, Dingxin Road, Haizhu District, Guangzhou, Guangdong 510277

Patentee after: Alibaba South China Technology Co.,Ltd.

Address before: 310012 G Block, 10th Building, Building A, Paradise Software Park, No. 3 Xidoumen Road, Xihu District, Hangzhou City, Zhejiang Province

Patentee before: Alibaba (China) Co.,Ltd.