CN110381146B - Batch operation processing method and device and storage medium - Google Patents

Batch operation processing method and device and storage medium Download PDF

Info

Publication number
CN110381146B
CN110381146B CN201910665070.1A CN201910665070A CN110381146B CN 110381146 B CN110381146 B CN 110381146B CN 201910665070 A CN201910665070 A CN 201910665070A CN 110381146 B CN110381146 B CN 110381146B
Authority
CN
China
Prior art keywords
request
timestamp
processing
requests
operation request
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
CN201910665070.1A
Other languages
Chinese (zh)
Other versions
CN110381146A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910665070.1A priority Critical patent/CN110381146B/en
Publication of CN110381146A publication Critical patent/CN110381146A/en
Application granted granted Critical
Publication of CN110381146B publication Critical patent/CN110381146B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The embodiment of the invention discloses a batch operation processing method, a batch operation processing device and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: the method comprises the steps of receiving a first request message sent by a terminal, wherein the first request message carries a first operation request and a timestamp, the first operation request is any one of a plurality of operation requests, the timestamp is used for indicating the sending time of the first operation request in the plurality of operation requests, processing the first operation request to obtain a first processing result corresponding to the first operation request, and establishing the corresponding relation between the timestamp and the first processing result. According to the batch operation processing scheme provided by the embodiment of the invention, the server immediately processes any one of the operation requests sent by the terminal after receiving the operation request, and the time for waiting for the completion of the complete reception of the operation requests is saved without waiting for the completion of the complete reception of the operation requests, so that the time spent on processing the operation requests is saved, and the processing efficiency is improved.

Description

Batch operation processing method and device and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a batch operation processing method, a batch operation processing device and a storage medium.
Background
With the gradual improvement of terminal functions and the gradual expansion of data scale, batch operation for multiple operation objects becomes a common operation mode, and the operation of a user can be simplified and the processing time can be shortened by performing batch operation.
Atomicity means that when a batch operation is performed, a plurality of operations to be processed cannot be interrupted, and all operations need to be successfully executed or all operations need to be failed. In order to ensure atomicity of batch operation, when a terminal detects batch operation triggered by a user, because the batch operation carries a plurality of operation objects, a plurality of operation requests can be generated according to the batch operation, as shown in fig. 1, one operation request is sent to a server each time. When the server confirms that the operation requests are received and completed, the operation requests stored in the memory are read and processed.
In the above scheme, the server needs to wait for the completion of the reception of all the operation requests to process the operation requests, which takes a long time to process the operation requests and reduces the processing efficiency.
Disclosure of Invention
The embodiment of the invention provides a batch operation processing method, a batch operation processing device and a storage medium, which can effectively save the time spent on processing operation requests and improve the processing efficiency. The technical scheme is as follows:
in one aspect, a batch operation processing method is provided, and the method includes:
receiving a first request message sent by a terminal, wherein the first request message carries a first operation request and a timestamp, the terminal is used for generating a plurality of operation requests according to a plurality of operation objects when batch operations carrying the plurality of operation objects are detected, the first operation request is any one of the operation requests, and the timestamp is used for indicating the sending time of the first operation request in the operation requests;
processing the first operation request to obtain a first processing result corresponding to the first operation request;
and establishing a corresponding relation between the timestamp and the first processing result, wherein the corresponding relation is used for deleting the processing result corresponding to the timestamp when any one of the operation requests fails to be processed.
Optionally, after the processing is performed on the first operation request to obtain a first processing result corresponding to the first operation request, the method further includes:
and sending a first response message to the terminal, wherein the first response message carries the timestamp and is used for prompting that the first operation request is successfully processed, and the terminal is further used for sending the remaining operation requests in the operation requests based on the first response message.
Optionally, after the sending the first response message to the terminal, the method further includes:
receiving a second request message sent by the terminal, where the second request message carries a second operation request and the timestamp, and the second operation request is a next operation request of the first operation request;
processing the second operation request to obtain a second processing result corresponding to the second operation request;
and establishing a corresponding relation between the time stamp and the second processing result.
Optionally, the method further comprises:
and when the first operation request is failed to be processed, deleting the processing result corresponding to the timestamp according to the corresponding relation.
In another aspect, a batch operation processing method is provided, the method including:
the method comprises the steps of obtaining a first operation request in a plurality of operation requests, wherein the operation requests are generated according to a plurality of operation objects when batch operations carrying the operation objects are detected, and the first operation request is any one of the operation requests;
obtaining a time stamp, wherein the time stamp is used for representing the sending time of the first operation request in the plurality of operation requests;
sending a first request message to a server, wherein the first request message carries the first operation request and the timestamp;
the server is configured to process the first operation request according to the first request message, obtain a first processing result corresponding to the first operation request, and establish a correspondence between the timestamp and the first processing result, where the correspondence is used to delete the processing result corresponding to the timestamp when processing of any one of the operation requests fails.
Optionally, after the sending the first request message to the server, the method further includes:
receiving a first response message sent by the server, wherein the first response message carries the timestamp and is used for prompting that the first operation request is successfully processed;
sending a second request message to the server, where the second request message carries a second operation request and the timestamp, and the second operation request is a next operation request of the first operation request;
the server is further configured to process the second operation request according to the second request message, obtain a second processing result corresponding to the second operation request, and establish a corresponding relationship between the timestamp and the second processing result.
Optionally, before the obtaining the first operation request in the plurality of operation requests, the method further includes:
when the batch operation is detected, generating a plurality of operation requests according to the plurality of operation objects;
dividing the plurality of operation requests into at least two request sets, wherein each request set comprises a plurality of operation requests;
the first operation request is any one operation request in any one request set of the at least two request sets;
the timestamp is used for representing the sending time of the first operation request in the request set to which the first operation request belongs.
Optionally, the dividing the plurality of operation requests into at least two request sets, where each request set includes a plurality of operation requests includes:
when the number of the operation requests is larger than a preset number, selecting the operation requests with the preset number from the operation requests each time, and dividing the operation requests into the same request set to obtain at least one request set;
and when the number of the remaining operation requests is smaller than the preset number, dividing the remaining operation requests into the same request set.
In another aspect, there is provided a batch operation processing apparatus, including:
a request message receiving module, configured to receive a first request message sent by a terminal, where the first request message carries a first operation request and a timestamp, and the terminal is configured to generate a plurality of operation requests according to a plurality of operation objects when batch operations carrying the plurality of operation objects are detected, where the first operation request is any one of the operation requests, and the timestamp is used to indicate a sending time of a first operation request in the operation requests;
the operation request processing module is used for processing the first operation request to obtain a first processing result corresponding to the first operation request;
a corresponding relation establishing module, configured to establish a corresponding relation between the timestamp and the first processing result, where the corresponding relation is used to delete the processing result corresponding to the timestamp when processing of any one of the operation requests fails.
Optionally, the apparatus further comprises:
a response message sending module, configured to send a first response message to the terminal, where the first response message carries the timestamp and is used to prompt that the first operation request is successfully processed, and the terminal is further configured to send remaining operation requests in the multiple operation requests based on the first response message.
Optionally, the request message receiving module is further configured to receive a second request message sent by the terminal, where the second request message carries a second operation request and the timestamp, and the second operation request is a next operation request of the first operation request;
the operation request processing module is further configured to process the second operation request to obtain a second processing result corresponding to the second operation request;
and the corresponding relation establishing module is also used for establishing the corresponding relation between the time stamp and the second processing result.
Optionally, the apparatus further comprises:
and the deleting module is used for deleting the processing result corresponding to the timestamp according to the corresponding relation when the first operation request is failed to be processed.
In another aspect, there is provided a batch operation processing apparatus, including:
an operation request obtaining module, configured to obtain a first operation request in multiple operation requests, where the multiple operation requests are generated according to multiple operation objects when batch operations carrying the multiple operation objects are detected, and the first operation request is any one of the multiple operation requests;
a timestamp obtaining module, configured to obtain a timestamp, where the timestamp is used to indicate a sending time of a first operation request in the plurality of operation requests;
a request message sending module, configured to send a first request message to a server, where the first request message carries the first operation request and the timestamp;
the server is configured to process the first operation request according to the first request message, obtain a first processing result corresponding to the first operation request, and establish a correspondence between the timestamp and the first processing result, where the correspondence is used to delete the processing result corresponding to the timestamp when processing of any one of the operation requests fails.
Optionally, the apparatus further comprises:
a response message receiving module, configured to receive a first response message sent by the server, where the first response message carries the timestamp and is used to prompt that the first operation request is successfully processed;
a request message sending module, configured to send a second request message to the server, where the second request message carries a second operation request and the timestamp, and the second operation request is a next operation request of the first operation request;
the server is further configured to process the second operation request according to the second request message, obtain a second processing result corresponding to the second operation request, and establish a corresponding relationship between the timestamp and the second processing result.
Optionally, the apparatus further comprises:
the operation request generation module is used for generating a plurality of operation requests according to the plurality of operation objects when the batch operation is detected;
a request set dividing module, configured to divide the multiple operation requests into at least two request sets, where each request set includes multiple operation requests;
the first operation request is any one operation request in any one request set of the at least two request sets;
the timestamp is used for representing the sending time of the first operation request in the request set to which the first operation request belongs.
Optionally, the request set dividing module includes:
the dividing unit is used for selecting the operation requests with the preset number from the operation requests each time when the number of the operation requests is larger than the preset number, and dividing the operation requests into the same request set to obtain at least one request set;
and the dividing unit is further used for dividing the remaining operation requests into the same request set when the number of the remaining operation requests is smaller than the preset number.
In another aspect, an apparatus for batch operation processing is provided, the apparatus includes a processor and a memory, the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, and the instruction, the program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the operation performed in the method for batch operation processing according to an aspect.
In another aspect, an apparatus for batch operation processing is provided, the apparatus including a processor and a memory, the memory storing at least one instruction, at least one program, a set of codes, or a set of instructions, the instruction, the program, the set of codes, or the set of instructions being loaded and executed by the processor to implement the operation performed in the method for batch operation processing according to another aspect.
In yet another aspect, a computer-readable storage medium having stored therein at least one instruction, at least one program, set of codes, or set of instructions loaded by a processor and having an operation performed to implement the batch operation processing method is provided.
The method, the device and the storage medium provided by the embodiment of the invention have the advantages that the terminal obtains a first operation request in a plurality of operation requests, obtains the timestamp, sends the first request message to the server, the server receives the first request message sent by the terminal, processes the first operation request to obtain a first processing result corresponding to the first operation request, establishes the corresponding relation between the timestamp and the first processing result, sends the first response message to the terminal, the terminal receives the first response message sent by the server, sends a second request message to the server, the second operation request is the next operation request of the first operation request, the server receives the second request message sent by the terminal, processes the second operation request to obtain a second processing result corresponding to the second operation request, and establishes the corresponding relation between the timestamp and the second processing result. According to the batch operation processing scheme provided by the embodiment of the invention, the server immediately processes any one of the operation requests sent by the terminal after receiving the operation request, and the time for waiting for the completion of the complete reception of the operation requests is saved without waiting for the completion of the complete reception of the operation requests, so that the time spent on processing the operation requests is saved, and the processing efficiency is improved.
And when the server fails to request the data, the corresponding processing result can be deleted according to the timestamp, so that data rollback is realized, the efficiency of deleting the processing result is improved, and the atomicity of batch operation is ensured.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic view showing an operational flow of the related art;
FIG. 2 is a schematic diagram of an implementation environment provided by an embodiment of the invention;
FIG. 3 is a flow chart of a batch operation processing method according to an embodiment of the present invention;
FIG. 4 is a flow chart of a batch operation processing method according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart of an operation provided by the embodiment of the invention;
FIG. 6 is a schematic structural diagram of a batch operation processing apparatus according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of another batch operation processing apparatus according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a batch operation processing apparatus according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of another batch operation processing apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
Fig. 2 is a schematic structural diagram of an implementation environment provided by an embodiment of the present invention, and referring to fig. 2, the implementation environment includes a terminal 201 and a server 202. The terminal 201 establishes a communication connection with the server 202, and performs interaction through the established communication connection.
The terminal 201 may be a mobile phone, a computer, a tablet computer, or other various devices. The server 202 may be a server, a server cluster composed of several servers, or a cloud computing service center.
The terminal 201 logs in to the server 202 based on a user identification, which may be a user account, a telephone number, a user nickname, etc. The server 202 establishes a communication connection with the terminal 201, through which interaction between the server 202 and the terminal 201 is possible.
The batch operation processing method provided by the embodiment of the invention can be applied to a scene of processing batch operations.
For example, batch add friend scenarios
A user selects N user identifications through a terminal, wherein N is an integer greater than 1, friend adding operation is triggered on the N user identifications, the terminal generates N friend adding requests according to the N user identifications, and a timestamp is obtained, and is the sending time of a first friend adding request in the N friend adding requests; and sending N adding request messages to the server for multiple times, wherein each adding request message carries a friend adding request and the timestamp, and the server adds the corresponding user identification as the friend of the user according to the received adding request message every time. The server can successfully add N friends to the user, or the server fails to add M +1 th friends after adding M friends to the user, wherein M is an integer smaller than N, and the server deletes the M friends which are added for the user.
Or, batch adding of blacklist scenes:
a user selects N user identifications through a terminal, performs black pulling operation on the N user identifications to request to add the N user identifications into a blacklist, the terminal generates N black pulling operation requests according to the N user identifications and obtains a timestamp, and the timestamp is the sending time of a first black pulling operation request in the N black pulling operation requests; and sending N black-pulling request messages to the server for multiple times, wherein each black-pulling request message carries a black-pulling operation request and the timestamp, and the server adds the corresponding user identifier to a blacklist according to the received black-pulling request message every time. The server may successfully add the N user identifiers to the blacklist, or, after the server adds the M user identifiers to the blacklist, the server fails to add the M +1 th user identifier to the blacklist, where M is an integer smaller than N, and at this time, the server deletes the M user identifiers added to the blacklist for the user.
Fig. 3 is a flowchart of a batch operation processing method according to an embodiment of the present invention. The interactive main body of the embodiment of the invention is a terminal and a server, and referring to fig. 3, the method comprises the following steps:
301. the terminal acquires a first operation request in the plurality of operation requests.
And when the terminal detects batch operations of the user on the plurality of operation objects, generating a plurality of corresponding operation requests according to the plurality of operation objects. And the terminal sends the operation requests to the server for multiple times so that the server processes the received operation requests respectively.
The batch operation may be operations of batch adding of a blacklist, batch adding of a friend, batch deleting of a file and the like, and the operation object may be a user identifier, a file and the like.
In one possible implementation, each operation request corresponds to an operation object in the plurality of operation requests.
For example, the batch operation carries 50 operation objects, and the terminal generates 50 operation requests according to the 50 operation objects.
In addition, the first operation request acquired by the terminal is any one of the plurality of operation requests.
In a possible implementation manner, the terminal generates a plurality of operation requests according to a plurality of operation objects, sorts the operation requests according to a preset rule, and the terminal sequentially obtains each operation request according to the sorting order, so that the first operation request obtained by the terminal may be any one operation request, such as a first operation request or a 2 nd operation request in the operation requests.
Optionally, the preset rules may be arranged in the order from morning to evening according to the time when the user selects the operation object; or when batch operation on the plurality of operation objects is detected, a plurality of operation requests are generated according to the plurality of operation objects, and the plurality of requests are sequentially stored according to the sequence of each operation object selected by the user.
For example, when a terminal detects batch operations on a plurality of operation objects and generates a plurality of operation requests according to the plurality of operation objects, the plurality of operation requests are stored in a queue, and the terminal acquires the operation request to be sent from the queue each time. The queue may be a first-in-last-out queue or a first-in-first-out queue.
For example, when the terminal detects batch operations on 3 operation objects, the terminal generates an operation request a, an operation request B and an operation request C, stores the operation request a in a queue according to the generation sequence, stores the operation request B and finally stores the operation request C. When the queue is an input-first queue and an output-second queue, the sequence of the operation requests obtained from the queue by the terminal is an operation request C, an operation request B and an operation request A; when the queue is a first-in first-out queue, the sequence of the operation requests obtained from the queue by the terminal is an operation request A, an operation request B and an operation request C.
302. A timestamp is obtained.
The timestamp is used for indicating the sending time of the first operation request in the plurality of operation requests, and has uniqueness.
303. And sending a first request message to the server, wherein the first request message carries the first operation request and the timestamp.
The terminal sends a first request message to the server through communication connection with the server.
The first operation request is any one of a plurality of operation requests.
In a possible implementation manner, the first operation request is a first operation request in the multiple operation requests, when the terminal is to send the first operation request to the server, a timestamp corresponding to the current time is generated, and a first request message is sent to the server, where the first request message carries the first operation request and the timestamp.
The timestamp may also be obtained when the first operation request is not the first operation request of the plurality of operation requests, in a manner similar to the manner of obtaining the timestamp in step 307 described below, which will not be described first.
304. The server receives a first request message sent by the terminal, processes the first operation request and obtains a first processing result corresponding to the first operation request.
And after receiving the first request message, the server obtains a first operation request and a timestamp, and immediately processes the first operation request. When the first processing result is obtained, the server is indicated to successfully process the first operation request.
For example, the first operation request is a request for adding a friend, the first operation request carries a user identifier a of a terminal login server and a user identifier B to be added, the server processes the first operation request, a friend relationship is established for the user identifier a and the user identifier B according to an obtained first processing result, the server stores the friend relationship, and the user identifier a and the user identifier B can respectively perform instant messaging after logging in the server through the terminal.
In one possible implementation manner, the server obtains different processing results after processing for different types of operation requests.
For example, for the operation request of adding a friend, the obtained processing result is the user identifier of the terminal login and another user identifier selected by the user to establish a friend relationship; for the file deletion operation request, the obtained processing result is the deletion of the corresponding file; and for the black pulling operation request, adding the user identification selected by the user into the blacklist according to the obtained processing result.
305. And establishing a corresponding relation between the time stamp and the first processing result.
In order to ensure atomicity of the batch operation, when the server fails to process any one of the operation requests, a processing result obtained by completing processing in the operation requests needs to be deleted. Therefore, in order to facilitate the subsequent server to delete the processing result obtained after the processing is completed, the corresponding relationship between the time stamp and the processing result is established first.
For example, the first processing result establishes a friend relationship for the user identifier a and the user identifier B, and the corresponding relationship between the established timestamp and the first processing result is shown in table 1.
TABLE 1
Time stamp Processing the results
Time stamp t Friend relationship between user identification A and user identification B
306. And sending a first response message to the terminal, wherein the first response message carries the timestamp.
Wherein the first response message is used for prompting that the first operation request is successfully processed.
In a possible implementation manner, the server processes the first operation request, and generates a first response message and sends the first response message to the terminal when obtaining the first processing result.
It should be noted that, in the embodiment of the present invention, the step 306 is executed after the step 305, and in another embodiment, the step 305 and the step 306 are executed in parallel, that is, after the server processes the first operation request and obtains the first processing result corresponding to the first operation request, the server establishes the corresponding relationship between the timestamp and the first processing request, and further sends the first response message to the terminal.
307. And the terminal receives a first response message sent by the server and sends a second request message to the server, wherein the second request message carries a second operation request and the timestamp, and the second operation request is the next operation request of the first operation request.
The server sends the timestamp to the terminal, so that the terminal is instructed to send the remaining operation requests in the operation requests according to the timestamp, the server receives the remaining operation requests, the remaining operation requests are processed to obtain a processing result, and then the corresponding relation between the timestamp and the processing result is established.
And the terminal receives the first response message, learns that the server successfully processes the first operation request, and can continue to process the next operation request at the moment. Therefore, the terminal acquires the second operation request from the remaining unprocessed operation requests, acquires the timestamp carried by the first response message, and sends the second request message carrying the second operation request and the timestamp to the server.
In one possible implementation, the process of obtaining the second operation request may include:
the terminal stores a plurality of operation requests in a first-in first-out queue, and then the terminal acquires the operation request stored in the first bit from the first-in first-out queue as a second operation request; alternatively, the first and second electrodes may be,
and the terminal stores a plurality of operation requests in the first-in-last-out queue, and then the terminal acquires the operation request stored in the last bit from the first-in-last-out queue as a second operation request.
308. And the server receives a second request message sent by the terminal, processes the second operation request and obtains a second processing result corresponding to the second operation request.
The process of processing after the server receives the second request message is similar to the step 304, and is not described herein again.
309. And establishing a corresponding relation between the time stamp and the second processing result.
In a possible implementation manner, the server sequentially establishes a plurality of entries according to the obtained plurality of processing results, each entry including the timestamp and the corresponding processing result, and when the server obtains a second processing result, establishes an entry including the timestamp and the second processing result.
For multiple operation requests corresponding to the same batch operation, the corresponding relationship may include multiple entries, and the timestamps included in each entry are the same.
As shown in table 2, the server processes the received first operation request to obtain a first processing result, and establishes an entry a, where the entry a includes the timestamp and the first processing result; and the server processes the received second operation request to obtain a second processing result and establishes an entry B, wherein the entry B comprises the timestamp and the second processing result.
TABLE 2
Item(s) Time stamp Processing the results
Item A Time stamp t First processing result
Item B Time stamp t Second processing result
In another possible implementation manner, after processing a first operation request in the plurality of operation requests, the server obtains a first processing result, and establishes an entry, where the entry includes a timestamp and the first processing result; and when the server processes a second operation request in the operation requests to obtain a second processing result, adding the second processing result to the entry.
And for a plurality of operation requests corresponding to the same batch operation, only one entry is established in the corresponding relation, and the entry comprises a time stamp and at least one processing result.
As shown in table 3, the server processes the received first operation request to obtain a first processing result, and establishes an entry a, where the entry a includes a timestamp and the first processing result; the server processes the received second operation request to obtain a second processing result, and adds the second processing result to the item A.
TABLE 3
Figure BDA0002139827080000121
It should be noted that, in the embodiment of the present invention, the server is used to describe that the processing of the first request message and the second request message is successful, and in another embodiment, after step 307, the method further includes:
3071. and the server receives a second request message sent by the terminal and processes the second operation request.
3072. And when the second operation request is failed to be processed, deleting the processing result corresponding to the time stamp according to the established corresponding relation between the time stamp and the processing result.
When the server fails to process any one of the operation requests, the processing result which is successfully processed in the operation requests is deleted according to the established corresponding relation, so that the atomicity of batch operation is ensured.
It should be noted that, in the embodiment of the present invention, the first request message and the second request message are used for explanation, and after step 309, step 306 to step 309 are executed in a loop, the plurality of operation requests are sequentially sent to the server according to the terminal, and the server sequentially processes the received operation requests until the server completes processing all the plurality of operation requests.
In addition, in the embodiment of the present invention, the server is described as an example of successful processing of the first request operation, and in another embodiment, when the server fails to process the first request operation, the processing result corresponding to the timestamp is deleted according to the correspondence relationship.
In the method provided by the embodiment of the present invention, a terminal obtains a first operation request in a plurality of operation requests, obtains a timestamp, sends a first request message to a server, the server receives the first request message sent by the terminal, processes the first operation request to obtain a first processing result corresponding to the first operation request, establishes a corresponding relationship between the timestamp and the first processing result, sends a first response message to the terminal, the terminal receives the first response message sent by the server, sends a second request message to the server, the second operation request is a next operation request of the first operation request, the server receives the second request message sent by the terminal, processes the second operation request to obtain a second processing result corresponding to the second operation request, and establishes a corresponding relationship between the timestamp and the second processing result. According to the batch operation processing scheme provided by the embodiment of the invention, the server immediately processes any one of the operation requests sent by the terminal after receiving the operation request, and the time for waiting for the completion of the complete reception of the operation requests is saved without waiting for the completion of the complete reception of the operation requests, so that the time spent on processing the operation requests is saved, and the processing efficiency is improved.
And when the server fails to request the data, the corresponding processing result can be deleted according to the timestamp, so that data rollback is realized, the efficiency of deleting the processing result is improved, and the atomicity of batch operation is ensured.
In the embodiment of the present invention, the example that the terminal obtains the first operation request is taken as an example for explanation, and in another embodiment, before step 301, the method further includes:
3011. when a batch operation is detected, a plurality of operation requests are generated according to a plurality of operation objects.
3012. The method includes dividing a plurality of operation requests into at least two request sets, each request set including a plurality of operation requests.
When a terminal divides a plurality of operation requests into at least two request sets, in a possible implementation manner, when the number of the operation requests is greater than a preset number, selecting the preset number of operation requests from the operation requests each time, and dividing the operation requests into the same request set to obtain at least one request set; and when the number of the remaining operation requests is less than the preset number, dividing the remaining operation requests into the same request set.
The terminal sorts the at least two request sets, and sorts the operation requests in each request set in a manner similar to the sorting manner of the operation requests in step 301, arranges the generated at least two request sets in order, and sequentially selects the operation requests from the at least two request sets when step 301 is executed.
The first operation request acquired by the terminal is any one operation request in any one request set of at least two request sets, and the timestamp acquired by the terminal represents the sending time of the first operation request in the request set to which the first operation request belongs.
For example, the terminal divides a plurality of operation requests into a request set a, a request set B and a request set C, the request set a includes an operation request 1, an operation request 2 and an operation request 3, the request set B includes an operation request 4, an operation request 5 and an operation request 6, the request set C includes an operation request 7, an operation request 8 and an operation request 9, and the order in which the terminal obtains the operation requests is the operation request 1, the operation request 2, the operation request 3, the operation request 4, the operation request 5, the operation request 6, the operation request 7, the operation request 8 and the operation request 9.
When the first operation request is the first operation request in any one of the at least two request sets, the manner of obtaining the timestamp by the terminal is similar to the manner of obtaining the timestamp in step 302, and details are not repeated here.
When the first operation request is not the first operation request in any request set of the at least two request sets, the manner of obtaining the timestamp by the terminal is similar to the manner of obtaining the timestamp in step 307, and details are not repeated here.
Since the terminal divides the plurality of operation requests into at least two request sets, the server establishes a corresponding relationship between the time stamps and the processing results and includes at least two time stamps. When the server fails to process the first operation request, determining a timestamp corresponding to the first operation request, and deleting a processing result corresponding to the timestamp according to the corresponding relation, wherein the timestamp represents the sending time of the first operation request in a request set to which the first operation request belongs.
After the processing result corresponding to the server timestamp, the timestamp indicates the sending time of the first operation request in the request set to which the first operation request belongs.
Optionally, after the server sends a request set processing failure message to which the first operation request belongs to the terminal, the terminal displays an operation object corresponding to the request set and an operation object corresponding to an unprocessed request set. The user can perform next batch processing based on the displayed operation object.
Fig. 4 is a flowchart of a batch operation processing method according to an embodiment of the present invention. The interactive main body of the embodiment of the invention is a terminal and a server, and referring to fig. 4, the method comprises the following steps:
401. the terminal detects batch operation carrying a plurality of operation objects, and generates a plurality of operation requests according to the plurality of operation objects.
In one possible implementation, the plurality of operation requests are divided into at least two request sets, each request set including a plurality of operation requests.
This step 401 is similar to steps 3011 and 3012 in the above embodiment, and will not be described again here.
402. A first operation request of the plurality of operation requests is obtained.
Step 402 is similar to step 301 in the above embodiment, and is not described herein.
403. And generating a timestamp corresponding to the current moment, and sending a first request message to the server.
Wherein, the time stamp has uniqueness and represents the sending time of the first operation request. The first request message carries a first operation request and a timestamp.
When a terminal sends a first request message carrying a first operation request to a server, the terminal acquires the current time, generates a timestamp corresponding to the current time, adds the timestamp into the first request message, and sends the first request message to the server.
404. And the server receives a first request message sent by the terminal, processes the first operation request and obtains a first processing result corresponding to the first operation request.
This step is similar to step 304 in the above embodiment and will not be described herein.
405. And establishing a corresponding relation between the time stamp and the first processing result.
The correspondence relationship is used for deleting the processing result corresponding to the time stamp when the processing fails to process any one of the operation requests.
This step is similar to step 305 in the above embodiment and is not described herein.
406. And sending a first response message to the terminal, wherein the first response message carries a time stamp.
This step is similar to step 306 in the above embodiments and will not be described herein.
407. And the terminal receives a first response message sent by the server and sends a second request message to the server, wherein the second request message carries a second operation request and a timestamp.
This step is similar to step 307 in the above embodiment and is not described herein.
408. And the server receives a second request message sent by the terminal, processes the second operation request and obtains a second processing result corresponding to the second operation request.
This step is similar to step 308 in the above embodiments and will not be described herein.
409. And establishing a corresponding relation between the time stamp and the second processing result.
This step is similar to step 309 in the above embodiments and will not be described herein.
The steps 406 and 409 are executed in a loop, so that the terminal sequentially sends the plurality of operation requests to the server, and the server sequentially processes the received operation requests.
The following steps describe the processing procedure of the nth operation request by taking the example that the first operation request to the nth-1 operation request are processed successfully.
410. And the server receives the Nth request message sent by the terminal, processes the Nth operation request, and deletes the processing result corresponding to the timestamp according to the corresponding relation when the Nth operation request is failed to be processed.
In one possible implementation, after step 410, the method further includes:
and the server sends the batch operation processing failure message to the terminal, and the plurality of operation requests corresponding to the batch operation of the terminal are sent to the server again for processing.
Optionally, after the server sends the batch operation processing failure message to the terminal, the terminal displays the processing failure message of the batch operation, and the user may trigger the batch operation again based on the processing failure message of the batch operation, and the batch operation is realized again through interaction between the terminal and the server.
When the terminal divides the plurality of operation requests into at least two request sets, in one possible implementation, step 410 further includes: and the server deletes a processing result corresponding to a time stamp, wherein the time stamp represents the sending time of the first operation request in the request set to which the Nth operation request belongs.
Optionally, after the server deletes the processing result corresponding to the timestamp, the server sends a processing failure message of the request set to which the nth operation request belongs to the terminal, and the terminal sends the operation request in the request set to the server again for processing. For other request sets before the request set, the terminal does not need to send the operation request again.
Optionally, after the server sends a processing failure message of the request set to which the nth operation request belongs to the terminal, the terminal displays an operation object corresponding to the request set and an operation object corresponding to another unprocessed request set. The user may re-trigger the batch operation based on the displayed operation object.
Fig. 5 is a schematic operation flow diagram provided in an embodiment of the present invention, where when a terminal detects batch operations on multiple operation objects, a terminal generates multiple operation requests according to the multiple operation objects, obtains a first operation request in the multiple operation requests, generates a timestamp, and sends the first operation request and the timestamp to a server; the server receives the first operation request and the timestamp, immediately processes the first operation request to obtain a first processing result, confirms that the first operation request is successfully processed, and sends a first response message and the timestamp to the terminal; the terminal receives the first response message and the timestamp, acquires a second operation request, and sends the second operation request and the timestamp to the server; and the server receives the second operation request and the time stamp, processes the second operation request, confirms whether the second operation request is successfully processed or not, and performs data rollback according to the time stamp and deletes the processed processing result when the second operation request is unsuccessfully processed.
The method provided by the embodiment of the invention comprises the steps that a terminal detects batch operation carrying a plurality of operation objects, a plurality of operation requests are generated according to the operation objects, a timestamp is generated, a first request message is sent to a server, the server receives the first request message sent by the terminal, the first operation request is processed to obtain a first processing result corresponding to the first operation request, the corresponding relation between the timestamp and the first processing result is established, a first response message is sent to the terminal, the first response message carries the timestamp, the terminal receives the first response message sent by the server, a second request message is sent to the server, the second request message carries a second operation request and the timestamp, the server receives the second request message sent by the terminal, the second operation request is processed to obtain a second processing result corresponding to the second operation request, and establishing a corresponding relation between the timestamp and the second processing result, and by analogy, receiving an Nth request message sent by the terminal by the server, processing the Nth operation request, and deleting the processing result corresponding to the timestamp according to the corresponding relation when the Nth operation request is failed to be processed. According to the batch operation processing scheme provided by the embodiment of the invention, the server immediately processes the operation requests sent by the terminal without waiting for the completion of the complete reception of the operation requests, so that the time for waiting for the completion of the complete reception of the operation requests is saved, the time spent on processing the operation requests is saved, and the processing efficiency is improved.
And when the server fails to request the data, the corresponding processing result can be deleted according to the timestamp, so that data rollback is realized, the efficiency of deleting the processing result is improved, and the atomicity of batch operation is ensured.
Fig. 6 is a schematic structural diagram of a batch operation processing apparatus according to an embodiment of the present invention, and referring to fig. 6, the apparatus includes:
a request message receiving module 601, configured to receive a first request message sent by a terminal, where the first request message carries a first operation request and a timestamp, and the terminal is configured to generate a plurality of operation requests according to a plurality of operation objects when batch operations carrying the plurality of operation objects are detected, where the first operation request is any one of the plurality of operation requests, and the timestamp is used to indicate sending time of a first operation request in the plurality of operation requests;
an operation request processing module 602, configured to process the first operation request to obtain a first processing result corresponding to the first operation request;
a corresponding relationship establishing module 603, configured to establish a corresponding relationship between the timestamp and the first processing result, where the corresponding relationship is used to delete the processing result corresponding to the timestamp when processing fails for any one of the operation requests.
Optionally, as shown in fig. 7, the apparatus further comprises:
the response message sending module 604 is configured to send a first response message to the terminal, where the first response message carries a timestamp and is used to prompt that the first operation request is successfully processed, and the terminal is further configured to send remaining operation requests in the multiple operation requests based on the first response message.
Optionally, the request message receiving module 601 is further configured to receive a second request message sent by the terminal, where the second request message carries a second operation request and a timestamp, and the second operation request is a next operation request of the first operation request;
the operation request processing module 602 is further configured to process the second operation request to obtain a second processing result corresponding to the second operation request;
the corresponding relationship establishing module 603 is further configured to establish a corresponding relationship between the timestamp and the second processing result.
Optionally, as shown in fig. 7, the apparatus further comprises:
and the deleting module 605 is configured to delete the processing result corresponding to the timestamp according to the correspondence when the processing of the first operation request fails.
Fig. 8 is a schematic structural diagram of a batch operation processing apparatus according to an embodiment of the present invention, and referring to fig. 8, the apparatus includes:
an operation request obtaining module 801, configured to obtain a first operation request in multiple operation requests, where the multiple operation requests are generated according to multiple operation objects when batch operations carrying the multiple operation objects are detected, and the first operation request is any one of the multiple operation requests;
a timestamp obtaining module 802, configured to obtain a timestamp, where the timestamp is used to indicate a sending time of a first operation request in the multiple operation requests;
a request message sending module 803, configured to send a first request message to a server, where the first request message carries a first operation request and a timestamp;
the server is used for processing the first operation request according to the first request message to obtain a first processing result corresponding to the first operation request, and establishing a corresponding relation between the timestamp and the first processing result, wherein the corresponding relation is used for deleting the processing result corresponding to the timestamp when any one operation request in the operation requests fails to be processed.
Optionally, as shown in fig. 9, the apparatus further comprises:
a response message receiving module 804, configured to receive a first response message sent by the server, where the first response message carries a timestamp and is used to prompt that the first operation request is successfully processed;
a request message sending module 803, configured to send a second request message to the server, where the second request message carries a second operation request and a timestamp, and the second operation request is a next operation request of the first operation request;
the server is further configured to process the second operation request according to the second request message, obtain a second processing result corresponding to the second operation request, and establish a corresponding relationship between the timestamp and the second processing result.
Optionally, as shown in fig. 9, the apparatus further comprises:
an operation request generating module 805, configured to generate a plurality of operation requests according to a plurality of operation objects when batch operations are detected;
a request set dividing module 806, configured to divide the plurality of operation requests into at least two request sets, where each request set includes a plurality of operation requests;
the first operation request is any one operation request in any one request set of at least two request sets;
the timestamp is used to indicate the sending time of the first operation request in the request set to which the first operation request belongs.
Optionally, as shown in fig. 9, the request set dividing module 806 includes:
the dividing unit 8061 is configured to, when the number of the multiple operation requests is greater than the preset number, select a preset number of operation requests from the multiple operation requests each time, divide the operation requests into the same request set, and obtain at least one request set;
the dividing unit 8061 is further configured to divide the remaining operation requests into the same request set when the number of the remaining operation requests is smaller than the preset number.
It should be noted that: in the batch operation processing apparatus provided in the above embodiment, only the division of the above functional modules is exemplified when performing batch operation processing, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structures of the terminal and the server are divided into different functional modules to complete all or part of the above described functions. In addition, the batch operation processing apparatus provided in the above embodiment and the batch operation processing method embodiment belong to the same concept, and specific implementation processes thereof are described in the method embodiment and are not described herein again.
Fig. 10 shows a block diagram of a terminal 1000 according to an exemplary embodiment of the present invention. The terminal 1000 can be a portable mobile terminal such as: the mobile terminal comprises a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, Moving Picture Experts compress standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts compress standard Audio Layer 4), a notebook computer, a desktop computer, a head-mounted device, a smart television, a smart sound box, a smart remote controller, a smart microphone, or any other smart terminal. Terminal 1000 can also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or the like by other names.
In general, terminal 1000 can include: a processor 1001 and a memory 1002.
Processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The memory 1002 may include one or more computer-readable storage media, which may be non-transitory, for storing at least one instruction for the processor 1001 to have for implementing the batch operation processing method provided by the method embodiments herein.
In some embodiments, terminal 1000 can also optionally include: a peripheral interface 1003 and at least one peripheral. The processor 1001, memory 1002 and peripheral interface 1003 may be connected by a bus or signal line. Various peripheral devices may be connected to peripheral interface 1003 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1004, display screen 1005, and audio circuitry 1006.
The Radio Frequency circuit 1004 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1004 communicates with communication networks and other communication devices via electromagnetic signals.
The display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. The display screen 1005 may be a touch display screen and may also be used to provide virtual buttons and/or a virtual keyboard.
The audio circuitry 1006 may include a microphone and a speaker. The microphone is used for collecting audio signals of a user and an environment, converting the audio signals into electric signals, and inputting the electric signals to the processor 1001 for processing, or inputting the electric signals to the radio frequency circuit 1004 for realizing voice communication. For stereo sound collection or noise reduction purposes, multiple microphones can be provided, each at a different location of terminal 1000. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert the electrical signal from the processor 1001 or the radio frequency circuit 1004 into an audio signal.
Those skilled in the art will appreciate that the configuration shown in FIG. 10 is not intended to be limiting and that terminal 1000 can include more or fewer components than shown, or some components can be combined, or a different arrangement of components can be employed.
Fig. 11 is a schematic structural diagram of a server according to an embodiment of the present invention, where the server 1100 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1101 and one or more memories 1102, where the memory 1102 stores at least one instruction, and the at least one instruction is loaded and executed by the processors 1101 to implement the methods provided by the foregoing method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
The server 1100 may be used to perform the steps performed by the server in the batch operation processing method described above.
The embodiment of the present invention further provides a batch operation processing apparatus, where the apparatus includes a processor and a memory, where the memory stores at least one instruction, at least one program, code set, or instruction set, and the instruction, the program, the code set, or the instruction set is loaded by the processor and has an operation executed by the terminal in order to implement the batch operation processing method according to the foregoing embodiment.
The embodiment of the present invention further provides another batch operation processing apparatus, which includes a processor and a memory, where the memory stores at least one instruction, at least one section of program, code set, or instruction set, and the instruction, the program, the code set, or the instruction set is loaded by the processor and has an operation executed by a server in the batch operation processing method for implementing the above embodiment.
An embodiment of the present invention further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or an instruction set is stored in the computer-readable storage medium, and the instruction, the program, the code set, or the instruction set is loaded by a processor and has an operation executed by a terminal or a server in a batch operation processing method for implementing the above embodiment.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only a preferred embodiment of the present invention, and should not be taken as limiting the invention, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (15)

1. A method of processing a batch operation, the method comprising:
receiving a first request message sent by a terminal, wherein the first request message carries a first operation request and a timestamp, the terminal is used for generating a plurality of operation requests according to a plurality of operation objects when batch operations carrying the plurality of operation objects are detected, the first operation request is any one of the operation requests, and the timestamp is used for indicating the sending time of the first operation request in the operation requests;
processing the first operation request to obtain a first processing result corresponding to the first operation request;
and establishing a corresponding relation between the time stamp and the first processing result, wherein the corresponding relation is used for deleting the processing result corresponding to the time stamp when any one of the operation requests fails to be processed, and the processing results corresponding to the operation requests corresponding to the same batch operation correspond to the same time stamp.
2. The method according to claim 1, wherein after the processing the first operation request to obtain a first processing result corresponding to the first operation request, the method further comprises:
and sending a first response message to the terminal, wherein the first response message carries the timestamp and is used for prompting that the first operation request is successfully processed, and the terminal is further used for sending the remaining operation requests in the operation requests based on the first response message.
3. The method of claim 2, wherein after the sending the first response message to the terminal, the method further comprises:
receiving a second request message sent by the terminal, where the second request message carries a second operation request and the timestamp, and the second operation request is a next operation request of the first operation request;
processing the second operation request to obtain a second processing result corresponding to the second operation request;
and establishing a corresponding relation between the time stamp and the second processing result.
4. The method of claim 1, further comprising:
and when the first operation request is failed to be processed, deleting the processing result corresponding to the timestamp according to the corresponding relation.
5. A method of processing a batch operation, the method comprising:
the method comprises the steps of obtaining a first operation request in a plurality of operation requests, wherein the operation requests are generated according to a plurality of operation objects when batch operations carrying the operation objects are detected, and the first operation request is any one of the operation requests;
obtaining a time stamp, wherein the time stamp is used for representing the sending time of the first operation request in the plurality of operation requests;
sending a first request message to a server, wherein the first request message carries the first operation request and the timestamp;
the server is configured to process the first operation request according to the first request message, obtain a first processing result corresponding to the first operation request, and establish a corresponding relationship between the timestamp and the first processing result, where the corresponding relationship is used to delete the processing result corresponding to the timestamp when processing of any one of the operation requests fails, and the processing results corresponding to the operation requests corresponding to the same batch operation correspond to the same timestamp.
6. The method of claim 5, wherein after sending the first request message to the server, the method further comprises:
receiving a first response message sent by the server, wherein the first response message carries the timestamp and is used for prompting that the first operation request is successfully processed;
sending a second request message to the server, where the second request message carries a second operation request and the timestamp, and the second operation request is a next operation request of the first operation request;
the server is further configured to process the second operation request according to the second request message, obtain a second processing result corresponding to the second operation request, and establish a corresponding relationship between the timestamp and the second processing result.
7. The method of claim 5, wherein prior to obtaining the first operation request of the plurality of operation requests, the method further comprises:
when the batch operation is detected, generating a plurality of operation requests according to the plurality of operation objects;
dividing the plurality of operation requests into at least two request sets, wherein each request set comprises a plurality of operation requests;
the first operation request is any one operation request in any one request set of the at least two request sets;
the timestamp is used for representing the sending time of the first operation request in the request set to which the first operation request belongs.
8. The method of claim 7, wherein the dividing the plurality of operation requests into at least two request sets, each request set comprising a plurality of operation requests, comprises:
when the number of the operation requests is larger than a preset number, selecting the operation requests with the preset number from the operation requests each time, and dividing the operation requests into the same request set to obtain at least one request set;
and when the number of the remaining operation requests is smaller than the preset number, dividing the remaining operation requests into the same request set.
9. A batch operation processing apparatus, characterized in that the apparatus comprises:
a request message receiving module, configured to receive a first request message sent by a terminal, where the first request message carries a first operation request and a timestamp, and the terminal is configured to generate a plurality of operation requests according to a plurality of operation objects when batch operations carrying the plurality of operation objects are detected, where the first operation request is any one of the operation requests, and the timestamp is used to indicate a sending time of a first operation request in the operation requests;
the operation request processing module is used for processing the first operation request to obtain a first processing result corresponding to the first operation request;
a corresponding relation establishing module, configured to establish a corresponding relation between the timestamp and the first processing result, where the corresponding relation is used to delete the processing result corresponding to the timestamp when processing of any one of the operation requests fails, and the processing results corresponding to the operation requests corresponding to the same batch operation correspond to the same timestamp.
10. The apparatus of claim 9, further comprising:
a response message sending module, configured to send a first response message to the terminal, where the first response message carries the timestamp and is used to prompt that the first operation request is successfully processed, and the terminal is further configured to send remaining operation requests in the multiple operation requests based on the first response message.
11. The apparatus of claim 10,
the request message receiving module is further configured to receive a second request message sent by the terminal, where the second request message carries a second operation request and the timestamp, and the second operation request is a next operation request of the first operation request;
the operation request processing module is further configured to process the second operation request to obtain a second processing result corresponding to the second operation request;
and the corresponding relation establishing module is also used for establishing the corresponding relation between the time stamp and the second processing result.
12. A batch operation processing apparatus, characterized in that the apparatus comprises:
an operation request obtaining module, configured to obtain a first operation request in multiple operation requests, where the multiple operation requests are generated according to multiple operation objects when batch operations carrying the multiple operation objects are detected, and the first operation request is any one of the multiple operation requests;
a timestamp obtaining module, configured to obtain a timestamp, where the timestamp is used to indicate a sending time of a first operation request in the plurality of operation requests;
a request message sending module, configured to send a first request message to a server, where the first request message carries the first operation request and the timestamp;
the server is configured to process the first operation request according to the first request message, obtain a first processing result corresponding to the first operation request, and establish a corresponding relationship between the timestamp and the first processing result, where the corresponding relationship is used to delete the processing result corresponding to the timestamp when processing of any one of the operation requests fails, and the processing results corresponding to the operation requests corresponding to the same batch operation correspond to the same timestamp.
13. An apparatus for batch operation processing, the apparatus comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the instruction, the program, the set of codes, or the set of instructions being loaded and executed by the processor to implement the operations performed in the method for batch operation processing as claimed in any one of claims 1 to 4.
14. An apparatus for batch operation processing, the apparatus comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the instruction, the program, the set of codes, or the set of instructions being loaded and executed by the processor to implement the operations performed in the method for batch operation processing as claimed in any one of claims 5 to 8.
15. A computer-readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the operations performed in the batch operation processing method according to any one of claims 1 to 4; or to implement the operations performed in the batch operation processing method of any of claims 5 to 8.
CN201910665070.1A 2019-07-23 2019-07-23 Batch operation processing method and device and storage medium Active CN110381146B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910665070.1A CN110381146B (en) 2019-07-23 2019-07-23 Batch operation processing method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910665070.1A CN110381146B (en) 2019-07-23 2019-07-23 Batch operation processing method and device and storage medium

Publications (2)

Publication Number Publication Date
CN110381146A CN110381146A (en) 2019-10-25
CN110381146B true CN110381146B (en) 2021-09-03

Family

ID=68254997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910665070.1A Active CN110381146B (en) 2019-07-23 2019-07-23 Batch operation processing method and device and storage medium

Country Status (1)

Country Link
CN (1) CN110381146B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055343A (en) * 2017-12-26 2018-05-18 北京奇虎科技有限公司 For the method for data synchronization and device of computer room
CN108694189A (en) * 2017-04-07 2018-10-23 微软技术许可有限责任公司 The management of the Database Systems of co-ownership

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7779421B2 (en) * 2005-06-30 2010-08-17 Ebay Inc. Business event processing
CN101547092B (en) * 2008-03-27 2011-06-08 天津德智科技有限公司 Method and device for data synchronization of multi-application systems for unifying user authentication
JP6260130B2 (en) * 2013-07-25 2018-01-17 富士通株式会社 Job delay detection method, information processing apparatus, and program
CN107515724B (en) * 2016-06-16 2021-04-02 伊姆西Ip控股有限责任公司 Method and apparatus for reproducing input and output of storage system
US10067678B1 (en) * 2016-12-22 2018-09-04 Amazon Technologies, Inc. Probabilistic eviction of partial aggregation results from constrained results storage
US11314720B2 (en) * 2017-03-01 2022-04-26 Oracle International Corporation Global consistency with recency in distributed database management systems
CN108881225B (en) * 2018-06-19 2021-01-01 陕西师范大学 Vehicle networking condition privacy protection method for verifying signatures in batches
CN109726984A (en) * 2018-12-20 2019-05-07 深圳智乾区块链科技有限公司 A kind of processing result generation method and its equipment, storage medium, electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108694189A (en) * 2017-04-07 2018-10-23 微软技术许可有限责任公司 The management of the Database Systems of co-ownership
CN108055343A (en) * 2017-12-26 2018-05-18 北京奇虎科技有限公司 For the method for data synchronization and device of computer room

Also Published As

Publication number Publication date
CN110381146A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
CN108200170B (en) Message processing method and device and readable storage medium
CN102377739A (en) Mobile terminal as well as realization method, service system and cloud server thereof
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN108933968B (en) Message format conversion method and device, storage medium and android terminal
CN110109594B (en) Drawing data sharing method and device, storage medium and equipment
CN104427118A (en) Method for recommending contents and mobile terminal
CN109995543B (en) Method and apparatus for adding group members
CN112925788A (en) Data set management method, system, device, electronic equipment and storage medium
CN110381146B (en) Batch operation processing method and device and storage medium
AU2018403361B2 (en) Data transmission
CN113111626A (en) Sequence generation method and device, electronic equipment and storage medium
CN112230819B (en) Information processing method, information processing apparatus, storage medium, and electronic device
CN114173319A (en) Method and device for realizing cross-platform call, cloud mobile phone platform and storage medium
CN111367592B (en) Information processing method and device
CN109614137B (en) Software version control method, device, equipment and medium
CN113268179A (en) Session message processing method, device, equipment and storage medium
CN110505253B (en) Method, device and storage medium for requesting webpage information
US20200081799A1 (en) Image Synchronization Method and Device, and Server
CN106331821B (en) Data synchronization method and device in audio and video playing system
CN112311840A (en) Multi-terminal data synchronization method, device, equipment and medium
CN110138991B (en) Echo cancellation method and device
CN106358070B (en) Multimedia file uploading method and device
WO2022237428A1 (en) Method and apparatus for processing network request information, and device and storage medium
CN114100117B (en) Game loading method, game loading device, computer equipment and storage medium
CN112311833B (en) Data updating method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant