CN106326340B - A kind of data processing method and device - Google Patents

A kind of data processing method and device Download PDF

Info

Publication number
CN106326340B
CN106326340B CN201610631022.7A CN201610631022A CN106326340B CN 106326340 B CN106326340 B CN 106326340B CN 201610631022 A CN201610631022 A CN 201610631022A CN 106326340 B CN106326340 B CN 106326340B
Authority
CN
China
Prior art keywords
database
requests
operation requests
user
data
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.)
Active
Application number
CN201610631022.7A
Other languages
Chinese (zh)
Other versions
CN106326340A (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

Embodiments of the present invention provide a kind of data processing method and device, this method comprises: receiving operation requests;When the operation requests for determining to receive are including first kind operation, the first kind is executed to the operation object of the operation of the first kind described in caching and is operated, and the operation object operated to the first kind described in database is not processed;And when determine the operation requests received does not include first kind operation, the operation requests are executed to the operation object of operation requests described in caching, and the operation requests are executed to the operation object of operation requests described in database;The present invention can preferably alleviate the pressure of database, improve service speed, promote response speed, and then improve user experience.

Description

A kind of data processing method and device
Technical field
Embodiments of the present invention are related to technical field of data processing, more specifically, embodiments of the present invention are related to one Kind data processing method and device.
Background technique
Background that this section is intended to provide an explanation of the embodiments of the present invention set forth in the claims or context.Herein Description recognizes it is the prior art not because not being included in this section.
With the continuous development of Internet technology, Internet Service Provider provides the same of convenient and fast network service for user When, it is also desirable to constantly the data stored in database are updated, so that user experiences more convenient and fast net by internet Network service.
It under normal conditions, is all directly to operate in the database in Database Systems, when handling data, In the lesser situation for the treatment of capacity, database response fast speed, still, and in the biggish situation for the treatment of capacity, database processing Speed is slower, thus the case where influencing response speed, user is caused to wait.For example, in user social contact scene, for a use The model that family is sent, other users can be commented on, be thumbed up etc. operation for the model, wherein the operations such as commenting on and thumbing up all It can be related to the function of counting statistics.
In the prior art, the record of user social contact data includes two parts, it may be assumed that is recorded in the caching of database server Neutralize record in the database, all Social behaviors data of user are recorded in real time in above-mentioned caching and database.Such as One user thumbs up some model, then the user's thumbs up record, can be recorded in caching and database in real time, packet It includes to the record for thumbing up counting number and adding 1, after the completion of these operations all, will for example thumb up counting number and 1 operating result is added to feed back to The user being posted by.But this mode number of users is big, in the biggish situation of operating quantity, due to the operation to database Speed is limited, it may appear that user wait the case where, be embodied in user after thumbing up, can not display operation as a result, Operating result shows mistake, this has just seriously affected user's perception.
Currently, being all directly to operate in the database in Database Systems, when handling data, work as processing Measure in lesser situation, database response fast speed, still, in the biggish situation for the treatment of capacity, database processing speed compared with Slowly, thus the case where influencing response speed, user caused to wait.
Summary of the invention
The present invention provides a kind of data processing method and devices, improve the processing speed of database, accelerate response speed, Promote the perception of user.
A kind of data processing method, including receive operation requests;What it is in the operation requests for determining to receive includes first When type operations, the first kind is executed to the operation object of the operation of the first kind described in caching and is operated, and to database Described in the first kind operation operation object be not processed;It and determine the operation requests received does not include first When type operations, the operation requests are executed to the operation object of operation requests described in caching, and grasp to described in database Make the operation object requested and executes the operation requests.
When the operation requests for determining to receive include first kind operation, further includes: operate the first kind Task queue is written.
Further include: according to the setting period, obtain the first kind operation being written in the task queue;To institute in database The operation object for stating the first kind operation of write-in executes the first kind operation of said write.
The task queue is in the memory and hard disk being maintained on the physical equipment independently of database server simultaneously First Input First Output.
When the operation requests for determining to receive include first kind operation, further includes: described in executing in the database Other operations for including in operation requests.
Further include: receive data acquisition request;According to the data acquisition request, obtains obtained with the data in the buffer The corresponding data of request are taken, and return to the corresponding data.
The first kind operation is that logarithm value parameter carries out the operation for adding 1 or subtracting 1.
A kind of data processing equipment, comprising: receiving module, for receiving operation requests;Processing module, for determining When operating including the first kind of the operation requests received executes institute to the operation object of the operation of the first kind described in caching First kind operation is stated, and the operation object of the operation of the first kind described in database is not processed;And it is determining to connect The operation requests received do not include the first kind operation when, the behaviour is executed to the operation objects of operation requests described in caching It requests, and the operation requests is executed to the operation object of operation requests described in database.
The processing module is also used to operating the first kind into write-in task queue.
The processing module is also used to obtain the first kind operation being written in the task queue according to the setting period; The first kind operation of said write is executed to the operation object of the first kind operation of write-in described in database.
Preferably, the task queue be the memory that is maintained on the physical equipment independently of database server simultaneously and First Input First Output in hard disk.
The processing module is also used to when the operation requests for determining to receive include first kind operation in data Other operations for including in the operation requests are executed in library.
The receiving module is also used to receive data acquisition request;The processing module is also used to obtain according to the data Request is taken, obtains data corresponding with the data acquisition request in the buffer, and return to the corresponding data.
Preferably, the first kind operation is that logarithm value parameter carries out the operation for adding 1 or subtracting 1.
By using above-mentioned technical proposal, for the operation requests received, in the operation requests for determining to receive When including first kind operation, first kind operation is executed to the operation object that the first kind in caching operates, and to database The operation object of middle first kind operation is not processed, and determine the operation requests received does not include the first kind When operation, operation requests are executed to the operation object of operation requests in caching, and to the operation object of operation requests in database Operation requests are executed, in this way, the action type that the operation requests received are included is made differentiation, if including the first kind When operation, then corresponding operation object only is operated to the first kind in caching and executes operation, without in database this first The operation object of type operations is handled it, in this way, can preferably delay in the case that the case where working as first kind operation is more The pressure of database is solved, service speed is improved, promotes response speed, and then improve user experience.
Detailed description of the invention
The following detailed description is read with reference to the accompanying drawings, above-mentioned and other mesh of exemplary embodiment of the invention , feature and advantage will become prone to understand.In the accompanying drawings, if showing by way of example rather than limitation of the invention Dry embodiment, in which:
Fig. 1 schematically shows the application scenarios schematic diagram of embodiment according to the present invention;
Fig. 2 schematically shows the data processing method flow charts of embodiment according to the present invention;
Fig. 3 schematically shows the data processing method flow chart of embodiment according to the present invention;
Fig. 4 schematically shows the data processing equipment structure composition schematic diagrams of embodiment according to the present invention;
Fig. 5 schematically shows the data processing equipment structure composition schematic diagram of another embodiment according to the present invention;
Fig. 6 schematically shows the data processing equipment structure composition schematic diagram of another embodiment according to the present 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 indicates identical or corresponding part.
Specific embodiment
The principle and spirit of the invention are described below with reference to several illustrative embodiments.It should be appreciated that providing this A little embodiments are used for the purpose of making those skilled in the art can better understand that realizing the present invention in turn, and be not with any Mode limits the scope of the invention.On the contrary, these embodiments are provided so that this disclosure will be more thorough and complete, and energy It is enough that the scope of the present disclosure is completely communicated 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 product.Therefore, the present disclosure may be embodied in the following forms, it may be assumed that complete hardware, complete software The form that (including firmware, resident software, microcode etc.) or hardware and software combine.
Embodiment according to the present invention proposes a kind of data processing method and device.
Herein, it is to be understood that any number of elements in attached drawing be used to example rather than limit and it is any Name is only used for distinguishing, without any restrictions meaning.
Below with reference to several representative embodiments of the invention, the principle and spirit of the present invention are explained in detail.
Summary of the invention
The inventors discovered that being all directly in data in Database Systems, when handling data in the prior art It is operated in library, in the lesser situation for the treatment of capacity, database response fast speed, still, when the situation that treating capacity is larger Under, database processing speed is slower, thus the case where influencing response speed, user is caused to wait.For example, in user social contact scene In, for the model that a user sends, other users can be commented on, be thumbed up etc. operation for the model, wherein comment on And it the operations such as thumbs up and can all be related 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 the caching for being recorded in database server neutralizes record in the database, and all Social behaviors data of user are remembered in real time Record is in above-mentioned caching and database.Such as a user thumbs up some model, then the user's thumbs up record, It can be recorded in caching and database in real time, including will for example after the completion of these operations all to the record for thumbing up counting number and adding 1 Thumbing up counting number adds 1 operating result to feed back to the user being posted by.But this mode number of users is big, operating quantity compared with In the case where big, since the service speed to database is limited, it may appear that the case where user waits is embodied in user in point After praising, can not display operation as a result, operating result show mistake, this has just seriously affected user's perception.The prior art A kind of middle improved procedure for lacking database technology accelerates response speed, promotes user for improving the processing speed of database Perception.
The present invention proposes a kind of data processing method and device, wherein in the data processing method, receives operation and asks It asks;Operation pair when the operation requests for determining to receive are including first kind operation, to first kind operation in caching As executing first kind operation, and the operation object operated to the first kind in database is not processed;And it is determining to connect The operation requests received do not include the first kind operation when, the operation is executed to the operation object of operation requests in caching and is asked It asks, and operation requests is executed to the operation object of operation requests in database.In this way, being included by the operation requests received Action type makes differentiation, if include first kind operation, only to the in the caching for being recorded in database server The operation object of one type operations executes operation, and the operation object without the first kind operation to record in the database is made Processing improves behaviour in this way, can preferably alleviate the pressure of database in the case that the case where working as first kind operation is more Make speed, promotes response speed, and then improve user experience.
After introduced the basic principles of the present invention, lower mask body introduces various non-limiting embodiment party of the invention Formula.
Application scenarios overview
Referring initially to Fig. 1, as shown in Figure 1, the application scenarios for data processing method provided in an embodiment of the present invention are illustrated Figure, including user 10, user terminal 101 and server side 102, wherein user 10 can access social activity by user terminal 101 Network.Specifically, mountable corresponding social category applications client or browser in user terminal 101.
Server side 102 is the server side for the social networks that user 10 is accessed by user terminal 101.User 10 with Social networks homepage is opened in family terminal 101 to be logged in, and after inputting username and password, can log in social networks clothes Business device side 102 sends operation requests, server side 102 to server side 102 during user access server side 102 Operation requests are received, and when the operation requests for determining to receive are including first kind operation, to the first kind in caching The operation object of operation executes first kind operation, and the operation object operated to the first kind in database is not processed, When determine the operation requests received does not include first kind operation, behaviour is executed to the operation object of operation requests in caching It requests, and operation requests is executed to the operation object for making to request in database.
Wherein, user terminal and server side can be communicated by internet.User terminal can be mobile phone, plate electricity Brain or desktop computer etc..
Illustrative methods
Below with reference to the application scenarios of Fig. 1, the number of illustrative embodiments according to the present invention is described with reference to Fig. 2~Fig. 7 According to processing method.It should be noted which is shown only for the purpose of facilitating an understanding of the spirit and principles of the present invention for above-mentioned application scenarios, Embodiments of the present invention are not limited in this respect.On the contrary, embodiments of the present invention can be applied to applicable appoint What scene.
Fig. 2 is that the embodiment of the present invention proposes that a kind of data processing method, specific process flow are for example following:
Step 21, user sends operation requests.
For in the technical solution that the embodiment of the present invention proposes, social network will be logged in by mobile phone with user convenient for illustrating It is described in detail for network.
Assuming that user A logs in social networks by mobile phone, and an article is delivered in social networks.User B is user A Good friend in the social networks, user B also log in social networks, and see the article that user A is sent.User B is to this article It is thumbed up.User A publishes an article, user B thumbs up this article, these processes have corresponded to sequence of user to server The operation requests that side is sent.
A kind of preferably implementation, in the technical solution that the embodiment of the present invention proposes, to be asked with operation convenient for illustrating Seeking Truth user B is described in detail for thumbing up to this article.
Step 22, server receives the operation requests that user sends.
It step 23, whether include first kind operation in the operation requests that server judgement receives, if it is judged that It is yes, execution step 24, whereas if judging result is no, execution step 25.
The embodiment of the present invention propose technical solution in, the first kind operation can be logarithm value parameter carry out plus 1 or The operation that person subtracts 1.Still to issue data instance in social networks, i.e., for the user A publication article in above-mentioned steps 21 It is described in detail.For user B for the operation that this article is thumbed up, is contained in corresponding operation requests and thumb up meter Several operations adds 1 to the quantity thumbed up, if cancel after user B is thumbed up later, subtract 1 to the quantity thumbed up, then exist In the technical solution that the embodiment of the present invention proposes, the counting that thumbs up in operation requests is operated as the first kind.And for The ID of User ID, i.e. user B that the article of family A publication thumbs up is recorded, then as other in addition to first kind operation Type operations.
Step 24, server is when the operation requests for determining to receive include first kind operation, in caching first The operation object of type operations executes first kind operation, and the operation object operated to the first kind in database is not done and located Reason.
In general, the record of user social contact data includes two parts, it may be assumed that is recorded in the caching of database server Neutralize record in the database, all Social behaviors data of user are recorded in real time in above-mentioned caching and database.But In the technical solution that the embodiment of the present invention proposes, when server is determined in operation requests comprising first kind operation, only The operation object of first kind operation in the caching for being recorded in database server is modified, not to being recorded in number It is modified according to the operation object of the first kind operation in library.
Still it is described in detail by taking the operation requests that user B is sent as an example.For the operation requests that user B is sent, service Device side determines the operation for containing in corresponding operation requests and thumbing up counting, then will thumb up counting as first in operation requests Type operations.Server side (thumbs up counting to the operation object of the first kind operation in the caching for being recorded in database Parameter) carry out plus 1 operation, and be not processed for the parameter for thumbing up counting stored in database.
By by operation requests the first kind operate removing, can preferably avoid user volume larger or some User caused by when period user concurrent request amount expands suddenly waits the situation of situation or mistake of statistics, promotes user's body It tests.
Step 25, when determine the operation requests received does not include first kind operation, operation in caching is asked The operation object asked executes operation requests, and executes operation requests to the operation object of operation requests in database.
It is described in detail so that user C is good friend of the user A in social networks as an example, if what user C issued user A After article is thumbed up, user C sends an operation requests again, and the operation requests which sends again are for requesting The friend relation with user A is deleted, being then in the operation requests that the user C is sent again does not include the first action type, then In the case of this kind, in the technical solution according to proposition of the embodiment of the present invention, the friend relation of the user C in caching is corresponded to Operation releases the friend relation between user C and user A, and corresponds to the friend relation of the user A stored in database Operation releases the friend relation between user A and user C.
Optionally, in above-mentioned steps 24 when the operation requests for determining to receive include first kind operation, further includes: The first kind is operated into write-in task queue.And according to the setting period, the first kind operation being written in task queue is obtained, The first kind operation of write-in is executed to the operation object for the first kind operation being written in database.
Wherein, in technical solution set forth above of the embodiment of the present invention, task queue is maintained in simultaneously independently of number According to the First Input First Output in the memory and hard disk on the physical equipment of library server.
Still it is described in detail by taking the operation requests that above-mentioned user B is sent as an example.In the technology that the embodiment of the present invention proposes In scheme, in maintenance, the physical equipment of store tasks queue, can be is with the physical equipment in storing data library for task queue Identical physical equipment, but task queue and database need to be located at different depositing in same physical equipment in the case of this kind Storage area.
A kind of preferable 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 can preferably promote processing speed in this way, and it is standby to carry out disaster tolerance Part, preventing the data in task queue from disappearing can not give for change.
The first kind operation stored in task queue needs to obtain the first kind in task queue according to the setting period Type operation, the first kind for executing write-in to the operation object for the first kind operation being written in database operate.In the present invention In the technical solution that example proposes, the first kind operation stored in task queue takes the mode of first in, first out, i.e., in logarithm When executing the first kind operation of write-in according to the operation object for the first kind operation being written in library, first in acquisition task queue The first kind operation stored at first, while the first kind stored at first operation is deleted in the task queue, and right The operation object of the first kind operation of the acquisition executes first kind operation.
Optionally, it can be set when obtaining the first kind operation in task queue and obtained in task queue in idle First kind operation.Wherein, for for the server for recording social network data, idle can refer to user's operation amount Less period relatively other periods, such as workaday daytime or the night at weekend etc..
In the technical solution that the embodiment of the present invention proposes, determining that the operation requests received include first kind operation When, it, can also while executing first kind operation except the operation object for being directed to first kind operation in caching in the database To execute the other operations for including in operation requests in the database.The behaviour that the user A article issued is thumbed up with user B It is described in detail as example.Counting is thumbed up to operate as the first kind, and for the user thumbed up to the user A article issued ID, i.e. user B ID record, then as except the first kind operation in addition to other type operations.Implement according to the present invention The technical solution that example proposes executes in caching in the database and thumbs up counting, and executes thumb up counting and note in the database Employ the operation of the mark of family B.
Optionally, after 24~step 25 of above-mentioned steps, as shown in Figure 3, further includes:
Step 31, user sends data acquisition request.
In this step, it will be described in detail by taking user A as an example.Assume that user A logs in social network by mobile phone above Network, and an article is delivered in social networks.User B is good friend of the user A in the social networks, and user B also logs in society Network is handed over, and sees the article that user A is sent.User B thumbs up this article.
At a time, user A sends data acquisition request, always thumbs up number to this article for obtaining.
Step 32, server receives data acquisition request.
Step 33, according to data acquisition request, data corresponding with data acquisition request, and return pair are obtained in the buffer The data answered.
The data acquisition request that server is sent according to user A obtains good friend to always thumbing up to this article in the buffer Number, and will acquire result and be presented to the user A.
It is that data are obtained from caching, rather than directly in number when being presented for user for compared with prior art According to obtaining in library, reduce the operation to database, avoid and searched in mass data in the database, saves money Source, raising efficiency.Further, the embodiment of the present invention propose technical solution in, by the first kind operation and other operate into Row removing, improves the treatment effeciency of operation requests, improves properties of product.
Example devices
After describing the method for exemplary embodiment of the invention, next, exemplary with reference to Fig. 4 description present invention The data processing equipment of embodiment.
Fig. 4 is one of the structural schematic diagram of one kind provided in an embodiment of the present invention, as shown in figure 4, may include such as lower die Block:
Receiving module 401, for receiving operation requests.
Processing module 402, for the operation requests for determining to receive include the first kind operation when, in caching The operation object of the first kind operation executes the first kind operation, and to the operation of the first kind described in database Operation object is not processed;And when determine the operation requests received does not include first kind operation, in caching The operation object of the operation requests executes the operation requests, and executes to the operation object of operation requests described in database The operation requests.
Optionally, above-mentioned processing module 402 is also used to operating the first kind into write-in task queue.
Optionally, above-mentioned processing module 402 is also used to obtain the be written in the task queue according to the setting period One type operations;The first kind behaviour of said write is executed to the operation object of the first kind operation of write-in described in database Make.
Specifically, the task queue that above-mentioned processing module 402 obtains is maintained in simultaneously independently of database service The First Input First Output in memory and hard disk on the physical equipment of device.
Optionally, above-mentioned processing module 402 is also used to execute other behaviour for including in the operation requests in the database Make.
Optionally, above-mentioned receiving module 401, is also used to receive data acquisition request;The processing module 402, is also used to According to the data acquisition request, data corresponding with the data acquisition request are obtained in the buffer, and return to the correspondence Data.
Specifically, the operation of above-mentioned processing module 402 is determined the first kind be logarithm value parameter carry out plus 1 or The operation for subtracting 1.
The data processing equipment that the embodiments of the present invention propose, concrete composition module and implementation principle refer to Elaborating in embodiment of the method is stated, is repeated no more.
In data processing equipment set forth above of the embodiment of the present invention, the operation that is included by the operation requests received Type makes differentiation, if include first kind operation, executes the first kind to the operation object that the first kind in caching operates Type operation, and in database the first kind operate operation object be not processed, in this way, when the first kind operation the case where compared with It in the case where more, can preferably alleviate the pressure of database, improve service speed, promote response speed, and then improve user Experience.
Example devices
After describing the method and apparatus of exemplary embodiment of the invention, next, introducing according to the present invention 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 embodied in the following forms, it may be assumed that complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as circuit, " module " or " system ".
In some possible embodiments, as shown in figure 5, data processing equipment according to the present invention can include at least At least one processing unit 501 and at least one storage unit 502.Wherein, the storage unit 501 is stored with program generation Code, when said program code is executed by the processing unit 502, so that the execution of the processing unit 502 this specification is above-mentioned Step in the data processing method of various illustrative embodiments according to the present invention described in " illustrative methods " part.Example Such as, the processing unit can execute step 22 as shown in Figure 2, and server receives the operation requests that user sends.Step 23, whether server judges in the operation requests received to include that the first kind operates, if it is judged that being yes, execution step 24, whereas if judging result is no, execution step 25.Step 24, server includes in the operation requests for determining to receive When the first kind operates, first kind operation is executed to the operation object that the first kind in caching operates, and in database the The operation object of one type operations is not processed.It step 25, does not include the first kind determine the operation requests received When operation, operation requests are executed to the operation object of operation requests in caching, and to the operation object of operation requests in database Execute operation requests.
The data processing equipment 600 of this embodiment according to the present invention is described referring to Fig. 6.What Fig. 6 was shown Data processing equipment 600 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in fig. 6, data processing equipment 600 is showed in the form of universal computing device.The group of data processing equipment 600 Part can include but is not limited to: at least one above-mentioned processing unit 6001, at least one above-mentioned storage unit 6002, connection are different The bus 6003 of system component (including processing unit 6001 and storage unit 6002).
Bus 6003 indicates one of a few class bus structures or a variety of, including memory bus or memory control Device, peripheral bus, processor or the local bus using any bus structures in a variety of bus structures.
Storage unit 6002 may include the readable medium of form of volatile memory, such as random access memory (RAM) 60021 and/or cache memory 60022, it can further include read-only memory (ROM) 60023.
Storage unit 6002 can also include program/utility with one group of (at least one) program module 60024 60025, such program module 60024 includes but is not limited to: operating system, one or more application program, other programs It may include the realization of network environment in module and program data, each of these examples or certain combination.
Data processing equipment 600 can also be logical with one or more external equipments 6004 (such as keyboard, sensing equipment etc.) Letter, can also be enabled a user to one or more equipment interact with data processing equipment 600 communicate, and/or with make this Any equipment (such as the router, modulatedemodulate that data processing equipment 600 can be communicated with one or more of the other calculating equipment Adjust device etc.) communication.This communication can be carried out by input/output (I/O) interface 6005.Also, data processing equipment 600 Network adapter 6006 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public affairs can also be passed through Common network network, such as internet) communication.As shown in fig. 6, network adapter 6006 is by bus 6003 and is used for data processing equipment 600 other modules communication.It will be appreciated that though being not shown in the figure, other hardware can be used with combined data processing unit 600 And/or software module, including but not limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Exemplary process product
In some possible embodiments, the various aspects of data processing method provided by the invention are also implemented as A kind of form of program product comprising program code, when described program product is run on a computing device, described program Code is each according to the present invention described in above-mentioned " illustrative methods " part of this specification for executing the computer equipment Step in the data processing method of kind illustrative embodiments, for example, the computer equipment can execute as shown in Figure 2 Step 21, user send operation requests.Step 22, server receives the operation requests that user sends.Step 23, server is sentenced It whether include that the first kind operates in the operation requests that disconnecting receives, if it is judged that being yes, execution step 24, conversely, such as Fruit judging result is no, execution step 25.Step 24, server includes first kind behaviour in the operation requests for determining to receive When making, first kind operation is executed to the operation object that the first kind in caching operates, and operate to the first kind in database Operation object be not processed.Step 25, when determine the operation requests received does not include first kind operation, to slow The operation object for depositing middle operation requests executes operation requests, and executes operation to the operation object of operation requests in database and ask It asks.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red The system of outside line or semiconductor, device or device, or any above combination.The more specific example of readable storage medium storing program for executing (non exhaustive list) includes: the electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
As shown in fig. 7, the program product 710 for data processing of embodiment according to the present invention is described, it can To use portable compact disc read only memory (CD-ROM) and including program code, and can run on the terminal device.So And program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can be it is any include or storage program Tangible medium, the program can be commanded execution system, device or device use or in connection.
Readable signal medium may include in a base band or as the data-signal that carrier wave a part is propagated, wherein carrying Readable program code.The data-signal of this propagation can take various forms, including --- but being not limited to --- electromagnetism letter Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be other than readable storage medium storing program for executing it is any can Read medium, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or Program in connection.
The program code for including on readable medium can transmit with any suitable medium, including --- but being not limited to --- Wirelessly, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind --- including local area network (LAN) or extensively Domain net (WAN)-be connected to user calculating equipment, or, it may be connected to external computing device (such as utilize Internet service Provider is connected by internet).
It should be noted that although being referred to several unit or sub-units of device in the above detailed description, this stroke It point is only exemplary not enforceable.In fact, embodiment according to the present invention, it is above-described two or more The feature and function of unit can embody in a unit.Conversely, the feature and function of an above-described unit can It is to be embodied by multiple units with further division.
In addition, although describing the operation of the method for the present invention in the accompanying drawings with particular order, this do not require that or Hint must execute these operations in this particular order, or have to carry out shown in whole operation be just able to achieve it is desired As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or by one Step is decomposed into execution of multiple steps.
Although detailed description of the preferred embodimentsthe spirit and principles of the present invention are described by reference to several, it should be appreciated that, this It is not limited to the specific embodiments disclosed for invention, does not also mean that the feature in these aspects cannot to the division of various aspects Combination is benefited to carry out, this to divide the convenience merely to statement.The present invention is directed to cover appended claims spirit and Included various modifications and equivalent arrangements in range.

Claims (10)

1. a kind of data processing method, comprising:
Receive operation requests;
When the operation requests for determining to receive are including first kind operation, to the behaviour of the operation of the first kind described in caching Make object and execute the first kind operation, and the operation object of the operation of the first kind described in database is not processed;With And
Operation when determine the operation requests received does not include first kind operation, to operation requests described in caching Object executes the operation requests, and executes the operation requests to the operation object of operation requests described in database;
Wherein, when the operation requests for determining to receive include first kind operation, further includes: operate the first kind Task queue is written;According to the setting period, the first kind operation being written in the task queue is obtained;To described in database The operation object of the first kind operation of write-in executes the first kind operation of said write, and the task queue is to safeguard simultaneously The First Input First Output in memory and hard disk on the physical equipment independently of database server.
2. according to the method described in claim 1, the task queue is the object being maintained in simultaneously independently of database server Manage the First Input First Output in the memory and hard disk in equipment.
3. according to the method described in claim 1, also being wrapped when the operation requests for determining to receive include first kind operation It includes:
Other operations for including in the operation requests are executed in the database.
4. according to the method described in claim 1, further include:
Receive data acquisition request;
According to the data acquisition request, data corresponding with the data acquisition request are obtained in the buffer, and described in return Corresponding data.
5. according to the method described in claim 1, first kind operation is that logarithm value parameter carries out the behaviour for adding 1 or subtracting 1 Make.
6. a kind of data processing equipment, comprising:
Receiving module, for receiving operation requests;
Processing module, for the operation requests for determining to receive include the first kind operation when, to described in caching the The operation object of one type operations executes the first kind operation, and the operation pair to the operation of the first kind described in database As being not processed;And it when determine the operation requests received does not include first kind operation, is grasped to described in caching Make the operation object requested and execute the operation requests, and the behaviour is executed to the operation object of operation requests described in database It requests;
The processing module is also used to operating the first kind into write-in task queue;According to the setting period, described appoint is obtained The first kind operation being written in business queue;Described in operation object execution to the first kind operation of write-in described in database The first kind of write-in operates, and the task queue is in being maintained on the physical equipment independently of database server simultaneously It deposits and the First Input First Output in hard disk.
7. device according to claim 6, the task queue that the processing module obtains is to be maintained in independence simultaneously First Input First Output in the memory and hard disk on the physical equipment of database server.
8. device according to claim 6, the processing module are also used to execute in the database in the operation requests Including other operation.
9. device according to claim 6, the receiving module are also used to receive data acquisition request;
The processing module is also used to obtain and the data acquisition request pair in the buffer according to the data acquisition request The data answered, and return to the corresponding data.
10. device according to claim 6, the first kind operation that the processing module is determined is logarithm ginseng Number carries out the operation for adding 1 or subtracting 1.
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 CN106326340A (en) 2017-01-11
CN106326340B true 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)

Families Citing this family (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

Also Published As

Publication number Publication date
CN106326340A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
US10885083B2 (en) System and method for automated multi-dimensional network management
CN106844784A (en) Data cache method, device and computer-readable recording medium
CN108241799B (en) Cross-system access method, system, device and computer readable storage medium
CN110166276A (en) A kind of localization method, device, terminal device and the medium of frame synchronization exception
CN109871388A (en) Data cache method, device, whole electronic equipment and storage medium
CN110309058A (en) Business end test method, device, computer installation and computer storage medium
CN103176899B (en) Mobile phone simulator and on host analogue mobile phone function method
CN109885452A (en) Method for monitoring performance, device and terminal device
CN107016027A (en) The method and apparatus for realizing business information fast search
CN112100079B (en) Test method and system based on simulation data calling and electronic equipment
CN109302461A (en) Information displaying, processing method, medium, system and calculating equipment
CN107247629A (en) Cloud computing system and cloud computing method and device for controlling server
JP2023508076A (en) Elastically run machine learning workloads with application-based profiling
CN107070716A (en) Game server state acquiring method, device, electronic equipment and storage medium
CN113821332B (en) Method, device, equipment and medium for optimizing efficiency of automatic machine learning system
CN109902022A (en) The method and relevant device tested automatically for loophole of vertically going beyond one's commission
CN109359019A (en) Application program capacity monitoring method, device, electronic equipment and storage medium
CN109447712A (en) A kind of consultation method, device, electronic equipment and storage medium
CN109710507A (en) A kind of method and apparatus of automatic test
CN114205690A (en) Flow prediction method, flow prediction device, model training method, model training device, electronic equipment and storage medium
CN110096521A (en) Log information processing method and device
JP2023017825A (en) Method and device for testing network device
CN104376056B (en) A kind of method and apparatus of data processing
CN109684172A (en) Log method for pushing, system, equipment and storage medium based on access frequency
CN106326340B (en) A kind of data processing method and device

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.