CN105094972A - Method and device for processing database operation tasks - Google Patents

Method and device for processing database operation tasks Download PDF

Info

Publication number
CN105094972A
CN105094972A CN201510452085.1A CN201510452085A CN105094972A CN 105094972 A CN105094972 A CN 105094972A CN 201510452085 A CN201510452085 A CN 201510452085A CN 105094972 A CN105094972 A CN 105094972A
Authority
CN
China
Prior art keywords
task
priority
database
main thread
database manipulation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510452085.1A
Other languages
Chinese (zh)
Inventor
雷志海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201510452085.1A priority Critical patent/CN105094972A/en
Publication of CN105094972A publication Critical patent/CN105094972A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention provides a method and device for processing database operation tasks. The method comprises the steps that a main thread generates the database operation tasks according to an application upper-layer service request during application execution; the main thread sets the configuration information and priority of each database operation task according to the attribute of the upper-layer service request; the database operation tasks are scheduled to a database processing thread by the main thread according to the priorities; the database processing thread executes the tasks according to the configuration information of the database operation tasks; the database processing thread feeds task execution results back to an upper-layer service request of the main thread to enable the database operation tasks with higher priorities to be executed preferentially by the database processing thread, so that the task execution results of the database operation tasks with higher priorities are fed back in time, and then certain database operation tasks depending on the task execution results which are fed back in time can be effectively executed and UI lag caused by synchronous execution of the main thread is avoided.

Description

The disposal route of database manipulation task and device
Technical field
The embodiment of the present invention relates to database technical field, particularly relates to a kind of disposal route and device of database manipulation task.
Background technology
The application program that mobile terminal performs can produce a large amount of database manipulation demands, thus produce a large amount of database manipulation tasks, typical in the operation task such as reading, write, deletion, inquiry to database, and user interface (UserInterface, UI) interactive task etc.
Prior art has two kinds of settling modes, and one is by main thread, according to the generation order of generic task each in application program, and synchronous performing database operation task; Another kind produces database manipulation task by main thread, by other thread asynchronous execution database manipulation tasks, result returned to main thread.
The defect that the first scheme exists is: because the execution time of database manipulation task is long, so make main thread to the processing delay of UI interactive task, cause UI Caton phenomenon; The defect that first scheme exists is: because database manipulation task performs at another asynchronous thread, sequence of operation entanglement can be caused, return results comparatively slow with the database manipulation task that UI interactive task triggers, cause UI interactive task normally to perform, such as, show white page.
Summary of the invention
The embodiment of the present invention provides a kind of disposal route and device of database manipulation task, to optimize the processing mode to the database manipulation task produced in the process of executive utility.
First aspect, embodiments provides a kind of disposal route of database manipulation task, comprising:
Main thread, in the process of executive utility, produces database manipulation task according to the request of application upper-layer service;
Described main thread is according to the configuration information of the setup of attribute database manipulation task of described upper-layer service request and priority;
Described main thread according to described priority, by database manipulation task scheduling to database processing thread;
Described database processing thread is executed the task according to the configuration information of described database manipulation task;
Task action result is returned to the upper-layer service request of described main thread by described database processing thread.
Second aspect, embodiments provides a kind for the treatment of apparatus of database manipulation task, comprising:
Operation task generation module, for main thread in the process of executive utility, produces database manipulation task according to the request of application upper-layer service;
Mission bit stream arranges module, for described main thread according to the configuration information of the setup of attribute database manipulation task of described upper-layer service request and priority;
Operation task scheduler module, for described main thread according to described priority, by database manipulation task scheduling to database processing thread;
Operation task execution module, executes the task for the configuration information of described database processing thread according to described database manipulation task;
Execution result returns module, for described database processing thread, task action result is returned to the upper-layer service request of described main thread.
The disposal route of the database manipulation task that the embodiment of the present invention provides and device, by main thread in the process of executive utility, corresponding database manipulation task is produced according to different application upper-layer service requests, and by the described main thread priority order from high to low corresponding according to database manipulation task, database manipulation task asynchronous schedule is processed to database processing thread, and task action result is back to the upper-layer service request of main thread, on the one hand, the database manipulation task making priority higher preferentially can be performed by database processing thread, ensure that the database manipulation task that priority is higher can return task action result in time, the database manipulation task making some depend on the task action result that this returns in time can effectively perform, avoid sequence of operation entanglement, on the other hand, avoid by generation order, the processing delay of to some priority higher database manipulation task that synchronous performing database operation task cause and the UI Caton phenomenon that occur of main thread according to generic task each in application program.
Accompanying drawing explanation
In order to be illustrated more clearly in the present invention, introduce doing one to the accompanying drawing used required in the present invention simply below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic flow sheet of the disposal route of a kind of database manipulation task that Fig. 1 provides for the embodiment of the present invention one;
The schematic flow sheet of a kind of scheduling of database manipulation task in the disposal route of the database manipulation task that Fig. 2 a provides for the embodiment of the present invention two;
Fig. 2 b is the schematic diagram of the process example of a kind of database manipulation task that the embodiment of the present invention two is suitable for;
The schematic flow sheet of the disposal route of a kind of database manipulation task that Fig. 3 provides for the embodiment of the present invention three;
The structural representation of the treating apparatus of a kind of database manipulation task that Fig. 4 provides for the embodiment of the present invention four.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, be described in further detail the technical scheme in the embodiment of the present invention below in conjunction with accompanying drawing, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Be understandable that; specific embodiment described herein is only for explaining the present invention; but not limitation of the invention; based on the embodiment in the present invention; those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.It also should be noted that, for convenience of description, illustrate only part related to the present invention in accompanying drawing but not full content.
Before in further detail exemplary embodiment being discussed, it should be mentioned that some exemplary embodiments are described as the process or method described as process flow diagram.Although operations (or step) is described as the process of order by process flow diagram, many operations wherein can be implemented concurrently, concomitantly or simultaneously.In addition, the order of operations can be rearranged.Described process can be terminated when its operations are completed, but can also have the additional step do not comprised in the accompanying drawings.Described process can correspond to method, function, code, subroutine, subroutine etc.
Embodiment one
Refer to Fig. 1, the schematic flow sheet of the disposal route of a kind of database manipulation task provided for the embodiment of the present invention one.The method of the embodiment of the present invention can be performed by the treating apparatus of the database manipulation task being configured to hardware and/or software simulating, and this implement device is typically configured in the terminal run application.
The method comprises: operation 110 ~ operation 150.
110, main thread is in the process of executive utility, produces database manipulation task according to the request of application upper-layer service.
In the process run application, first need to create and run one or more software thread, then, needing software thread to be dispatched in central processing unit to run.In the present embodiment, in the process run application, to create and the software thread run comprises: main thread and database processing thread.
In this operation, described main thread is used for producing corresponding database manipulation task according to different application upper-layer service requests.Wherein, described upper-layer service request can comprise: the request of user's call operation, and the request of application program background process etc.The database manipulation task corresponding with the request of user's call operation can comprise: the operation tasks such as the reading to database triggered by user's call operation, write, deletion, inquiry; The database manipulation task corresponding with the request of application program background process can comprise: the operation tasks such as the reading to database triggered by application program back-end processing operations, write, deletion, inquiry.
120, described main thread is according to the configuration information of the setup of attribute database manipulation task of described upper-layer service request and priority.
In this operation, not only comprise the configuration information of described main thread according to the setup of attribute database manipulation task of described upper-layer service request, and comprise the priority of described main thread according to the setup of attribute database manipulation task of described upper-layer service request.
Wherein, described configuration information can comprise: task identification, target matrix, action type and call back function.Described task identification is used for unique database manipulation task identifying correspondence; Store multiple tables of data in usual database, described target matrix refer to database manipulation task for database in concrete handling object; Described action type refers to the concrete operations classification to target matrix, can comprise target matrix read, write, delete, inquire about, renewal etc.; In the present embodiment, by database processing thread execution database manipulation task, obtain task action result, database processing thread and the mutual described task action result of main thread need to adopt call back function, in other words, described task action result is back to described main thread based on call back function by database processing thread, is specifically back to the upper-layer service request of described main thread.
Described main thread, according to the priority of the setup of attribute database manipulation task of described upper-layer service request, specifically can comprise at least one operation following:
Described main thread, according to the source of described upper-layer service request, determines the priority of task; Particularly, described main thread can search the dictionary of the corresponding relation of the priority based on the source including upper-layer service request set up in advance and database manipulation task, determine the priority of the database manipulation task corresponding with the source of described upper-layer service request, preferably, in this dictionary, derive from the priority of database manipulation task corresponding to user's call operation request higher than the priority deriving from database manipulation task corresponding to application program background process request.
Described main thread, according to the action type of described upper-layer service request, determines the priority of task; Particularly, described main thread also can search the dictionary of the corresponding relation of the priority of the action type including upper-layer service request and the database manipulation task set up in advance, determine the priority of the database manipulation task corresponding with the action type of described upper-layer service request, such as, the priority of foreground user read operation is higher than the priority of background message write operation.
130, described main thread is according to described priority, by database manipulation task scheduling to database processing thread.
Described main thread is in the process of executive utility, corresponding database manipulation task is produced according to different application upper-layer service requests, described main thread is according to the height of priority corresponding to database manipulation task, according to priority order from high to low, by database manipulation task scheduling to database processing thread, the database manipulation task making priority high preferentially can be performed by database processing thread.
140, described database processing thread is executed the task according to the configuration information of described database manipulation task.
Exemplarily, suppose in the process performing certain application program, main thread creates two database operation tasks, wherein, application upper-layer service request corresponding to the first database manipulation task is the request of user's call operation, application upper-layer service request corresponding to the second database manipulation task is the request of application program background process, priority set by the attribute of above-mentioned two database operation tasks is: the priority of the first database manipulation task is higher than the priority of the second database manipulation task, therefore, described main thread preferentially by described first database manipulation task scheduling to database processing thread, then by described second database manipulation task scheduling lower for priority to database processing thread, and database processing thread is according to the sequencing of main thread scheduler task, the described first database manipulation task of preferential execution, then described second database manipulation task is performed.
Particularly, database processing thread is when performing certain database manipulation task, this database manipulation task can be accurately navigated to according to the task identification in the configuration information of this task, and determine concrete handling object according to the target matrix in configuration information, according to the action type in configuration information, corresponding operating is performed to the target matrix determined, obtain task action result.
150, task action result is returned to the upper-layer service request of described main thread by described database processing thread.
Particularly, task action result is returned to the upper-layer service request of described main thread by described database processing thread by the call back function in configuration information.
The technical scheme of the present embodiment, by main thread in the process of executive utility, corresponding database manipulation task is produced according to different application upper-layer service requests, and by the described main thread priority order from high to low corresponding according to database manipulation task, database manipulation task asynchronous schedule is processed to database processing thread, and task action result is back to the upper-layer service request of main thread, on the one hand, the database manipulation task making priority higher preferentially can be performed by database processing thread, ensure that the database manipulation task that priority is higher can return task action result in time, the database manipulation task making some depend on the task action result that this returns in time can effectively perform, avoid sequence of operation entanglement, on the other hand, avoid by generation order, the processing delay of to some priority higher database manipulation task that synchronous performing database operation task cause and the UI Caton phenomenon that occur of main thread according to generic task each in application program.
Embodiment two
The present embodiment, on the basis of above-described embodiment, provides main thread according to described priority, by database manipulation task scheduling to the preferred version of this operation of database processing thread.Refer to Fig. 2 a, specifically comprise: operation 210 ~ operation 220.
210, main thread is according to the priority of database manipulation task, by database manipulation task according to generation order, adds in task queue corresponding to described priority.
Wherein, the quantity of task queue and the coverage of priority consistent.The priority of the database manipulation task comprised in each task queue is identical, and in each task queue, each database manipulation task comprised is arranged in order according to generation order.
Such as, a large amount of database manipulation tasks is created in certain application program implementation, suppose that the priority of produced a large amount of database manipulation task has three classes, also be, it is high that the coverage of priority is respectively priority, neutralize low, have three task queues accordingly, be respectively: corresponding to the task queue 1 of priority " height ", corresponding to priority " in " task queue 2 and correspond to the task queue 3 of priority " low ", in other words, the priority of the database manipulation task that the priority of the database manipulation task that task queue 1 comprises comprises higher than task queue 2, and the priority of database manipulation task that the priority of database manipulation task that task queue 2 comprises comprises higher than task queue 3.And the generation of the preceding database manipulation task that sorts in each task queue order is higher than the generation order of the posterior database manipulation task of sequence.
220, described main thread is according to the task order in the priority of described task queue and task queue, gives described database processing thread by task scheduling.
Specifically, according to the priority of task queue, the task order in task queue high for priority can be dispatched to database processing thread, when the task queue of high priority is empty, dispatch the task in the task queue of next priority.
The technical scheme of the present embodiment, main thread carries out asynchronous schedule process for database manipulation task according to priority and generation order, on the one hand, database manipulation task in the task queue making priority higher preferentially can be performed by database processing thread, ensure that the database manipulation task that priority is higher can return task action result in time, the database manipulation task making some depend on the task action result that this returns in time can effectively perform; On the other hand, for each database manipulation task in the task queue that priority is identical, generation order according to task is dispatched, generation order database manipulation task formerly preferentially can be performed by database processing thread, avoid sequence of operation confusion, improve efficiency and the fluency of application program execution.
Example
Refer to Fig. 2 b, in certain application program implementation, main thread creates mass data storehouse operation task according to application upper-layer service request (being specially the request of user's call operation); Described main thread is according to the configuration information of the setup of attribute database manipulation task of described user's call operation request and priority; Described main thread adopts the method for aforesaid operations 210 ~ operation described in 220 to carry out asynchronous schedule process to database operation task according to priority and generation order, particularly, suppose that the coverage of the priority of produced database manipulation task is respectively priority higher and lower, therefore, main thread by the database manipulation task of priority " higher " according to generation order, add in corresponding task queue 1, and by the database manipulation task of priority " lower " according to generation order, add in corresponding task queue 2.
Then, task order in task queue 1 higher for priority is dispatched to database processing thread by main thread, often dispatch 1 task, i.e. this task of corresponding removing from task queue 1, now, database processing thread performs each task successively according to the dispatching sequence of main thread, often executes a database operation task, namely by the call back function in the configuration information of this database manipulation task, task action result is back in time the request of user's call operation; When the task queue 1 that priority is higher is empty, main thread dispatches the task in the task queue of next priority, also, is dispatched by the task order in task queue 2 lower for priority and performs to database processing thread, repeat no more.
Main thread carries out asynchronous schedule process for database manipulation task according to priority and generation order, not only make the database manipulation task in the higher task queue of priority preferentially can be performed by database processing thread, and for each database manipulation task in the identical task queue of priority, generation order database manipulation task formerly preferentially can be performed by database processing thread, avoid sequence of operation confusion.
Embodiment three
Refer to Fig. 3, the schematic flow sheet of the disposal route of a kind of database manipulation task provided for the embodiment of the present invention three.The method comprises: operation 310 ~ operation 350.
310, main thread is in the process of executive utility, produces database manipulation task according to application upper-layer service request, and according to the setting dimension of upper-layer service request, is batch data storehouse operation task by multiple database manipulation task merging.
Wherein, setting dimension can be: multiple database manipulation tasks that same upper-layer service produces in setting-up time, thus the multiple database manipulation task mergings produced in setting-up time are batch data storehouse operation task by main thread.
320, described main thread is according to the configuration information of the setup of attribute batch data storehouse operation task of described upper-layer service request and priority.
Particularly, for batch data storehouse operation task, the configuration information of multiple database manipulation tasks that this batch data storehouse operation task comprises is set respectively, for the setting of priority, then this batch data storehouse operation task is integrally arranged, in other words, for any one batch data storehouse operation task, the priority of each task comprised is all identical, but each task is to there being different configuration informations.
330, described main thread is according to described priority, dispatches batch data storehouse operation task to database processing thread.
340, described database processing thread splits described batch data storehouse operation task, and performs respectively according to the configuration information splitting rear each task.
Particularly, after database processing thread receives a task, first can resolve task, just directly perform according to the configuration information of this task if task is single database manipulation task; If task is batch data storehouse operation task, then splits this batch data storehouse operation task, and perform respectively according to the configuration information of each task.
Database processing thread is when performing single database manipulation task, this database manipulation task can be accurately navigated to according to the task identification in the configuration information of this task, and determine concrete handling object according to the target matrix in configuration information, according to the action type in configuration information, corresponding operating is performed to the target matrix determined, obtain task action result.
350, the execution result splitting rear each task merges by described database processing thread, as the execution result of described batch data storehouse operation task, and returns to the upper-layer service request of described main thread.
Particularly, for single database manipulation task, then the task action result of this task is returned to the upper-layer service request of described main thread by described database processing thread by the call back function in configuration information.For batch data storehouse operation task, then the execution result splitting rear each task is merged, as the execution result of described batch data storehouse operation task, and return to the upper-layer service request of described main thread.
The technical scheme of the present embodiment, on the one hand, the database manipulation task making priority higher preferentially can be performed by database processing thread, ensure that the database manipulation task that priority is higher can return task action result in time, the database manipulation task making some depend on the task action result that this returns in time can effectively perform, and avoids sequence of operation entanglement; On the other hand, avoid by the generation order of main thread according to generic task each in application program, the processing delay of the database manipulation task higher to some priority that synchronous performing database operation task causes and the UI Caton phenomenon occurred; Again on the one hand, support scheduling and the process of batch data storehouse operation task, improve operational efficiency and the fluency of application program.
Embodiment four
Refer to Fig. 4, the structural representation of the treating apparatus of a kind of database manipulation task provided for the embodiment of the present invention four.This device comprises: operation task generation module 410, mission bit stream arrange module 420, operation task scheduler module 430, operation task execution module 440 and execution result and return module 450.
Wherein, operation task generation module 410 in the process of executive utility, produces database manipulation task according to the request of application upper-layer service for main thread; Mission bit stream arranges module 420 for described main thread according to the configuration information of the setup of attribute database manipulation task of described upper-layer service request and priority; Operation task scheduler module 430 for described main thread according to described priority, by database manipulation task scheduling to database processing thread; Operation task execution module 440 is executed the task for the configuration information of described database processing thread according to described database manipulation task; Execution result returns task action result is returned to described main thread by module 450 upper-layer service request for described database processing thread.
The technical scheme of the present embodiment, by main thread in the process of executive utility, corresponding database manipulation task is produced according to different application upper-layer service requests, and by the described main thread priority order from high to low corresponding according to database manipulation task, database manipulation task asynchronous schedule is processed to database processing thread, and task action result is back to the upper-layer service request of main thread, on the one hand, the database manipulation task making priority higher preferentially can be performed by database processing thread, ensure that the database manipulation task that priority is higher can return task action result in time, the database manipulation task making some depend on the task action result that this returns in time can effectively perform, avoid sequence of operation entanglement, on the other hand, avoid by generation order, the processing delay of to some priority higher database manipulation task that synchronous performing database operation task cause and the UI Caton phenomenon that occur of main thread according to generic task each in application program.
In such scheme, described operation task scheduler module 430 can preferably include: operation task adding device and operation task scheduling unit.
Wherein, operation task adding device is used for described main thread according to described priority, by database manipulation task according to generation order, adds in task queue corresponding to described priority; Operation task scheduling unit is used for described main thread according to the task order in the priority of described task queue and task queue, gives described database processing thread by task scheduling.
In such scheme, described configuration information can comprise: task identification, target matrix, action type and call back function.
In such scheme, described mission bit stream arranges module 420 and can comprise: configuration information setting unit and at least one priority setting unit following.
Wherein, described configuration information setting unit is used for described main thread according to the configuration information of the setup of attribute database manipulation task of described upper-layer service request; First priority setting unit is used for described main thread according to the source of described upper-layer service request, determines the priority of task; Second priority setting unit is used for described main thread according to the action type of described upper-layer service request, determines the priority of task.
In such scheme, described operation task generation module 410 specifically can be used for: described main thread, produce database manipulation task according to application upper-layer service request, and according to the setting dimension of upper-layer service request, be batch data storehouse operation task by multiple database manipulation task merging;
Accordingly, described operation task execution module 440 specifically can be used for: described database processing thread splits described batch data storehouse operation task, and performs respectively according to the configuration information splitting rear each task;
Described execution result returns 450 modules and specifically can be used for: the execution result splitting rear each task merges by described database processing thread, as the execution result of described batch data storehouse operation task, and returns to the upper-layer service request of described main thread.
The treating apparatus of the database manipulation task that the embodiment of the present invention provides can perform the disposal route of the database manipulation task that any embodiment of the present invention provides, and possesses the corresponding functional module of manner of execution and beneficial effect.
Last it is noted that above each embodiment is only for illustration of technical scheme of the present invention, but not be limited; In embodiment preferred embodiment, be not limited, to those skilled in the art, the present invention can have various change and change.All do within spirit of the present invention and principle any amendment, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a disposal route for database manipulation task, is characterized in that, comprising:
Main thread, in the process of executive utility, produces database manipulation task according to the request of application upper-layer service;
Described main thread is according to the configuration information of the setup of attribute database manipulation task of described upper-layer service request and priority;
Described main thread according to described priority, by database manipulation task scheduling to database processing thread;
Described database processing thread is executed the task according to the configuration information of described database manipulation task;
Task action result is returned to the upper-layer service request of described main thread by described database processing thread.
2. method according to claim 1, is characterized in that, described main thread, according to described priority, by database manipulation task scheduling to database processing thread, comprising:
Described main thread, according to described priority, by database manipulation task according to generation order, adds in task queue corresponding to described priority;
Task scheduling, according to the task order in the priority of described task queue and task queue, is given described database processing thread by described main thread.
3. method according to claim 1 and 2, is characterized in that, described configuration information comprises: task identification, target matrix, action type and call back function.
4. method according to claim 1 and 2, is characterized in that, described main thread, according to the priority of the setup of attribute database manipulation task of described upper-layer service request, comprising:
Described main thread, according to the source of described upper-layer service request, determines the priority of task; And/or
Described main thread, according to the action type of described upper-layer service request, determines the priority of task.
5. method according to claim 1 and 2, is characterized in that, main thread, in the process of executive utility, produces database manipulation task according to the request of application upper-layer service, comprising:
Described main thread, produces database manipulation task according to application upper-layer service request, and according to the setting dimension of upper-layer service request, is batch data storehouse operation task by multiple database manipulation task merging;
Described database processing thread is executed the task according to the configuration information of described database manipulation task, specifically comprises:
Described database processing thread splits described batch data storehouse operation task, and performs respectively according to the configuration information splitting rear each task;
Task action result is returned to the upper-layer service request of described main thread by described database processing thread, specifically comprises:
The execution result splitting rear each task merges by described database processing thread, as the execution result of described batch data storehouse operation task, and returns to the upper-layer service request of described main thread.
6. a treating apparatus for database manipulation task, is characterized in that, comprising:
Operation task generation module, for main thread in the process of executive utility, produces database manipulation task according to the request of application upper-layer service;
Mission bit stream arranges module, for described main thread according to the configuration information of the setup of attribute database manipulation task of described upper-layer service request and priority;
Operation task scheduler module, for described main thread according to described priority, by database manipulation task scheduling to database processing thread;
Operation task execution module, executes the task for the configuration information of described database processing thread according to described database manipulation task;
Execution result returns module, for described database processing thread, task action result is returned to the upper-layer service request of described main thread.
7. device according to claim 6, is characterized in that, described operation task scheduler module comprises:
Operation task adding device, for described main thread according to described priority, by database manipulation task according to generation order, adds in task queue corresponding to described priority;
Operation task scheduling unit, for described main thread according to the task order in the priority of described task queue and task queue, gives described database processing thread by task scheduling.
8. the device according to claim 6 or 7, is characterized in that, described configuration information comprises: task identification, target matrix, action type and call back function.
9. the device according to claim 6 or 7, is characterized in that, described mission bit stream arranges module and comprises: configuration information setting unit and at least one priority setting unit following;
Described configuration information setting unit, for the configuration information of described main thread according to the setup of attribute database manipulation task of described upper-layer service request;
First priority setting unit, for the source of described main thread according to described upper-layer service request, determines the priority of task;
Second priority setting unit, for the action type of described main thread according to described upper-layer service request, determines the priority of task.
10. the device according to claim 6 or 7, it is characterized in that, described operation task generation module is specifically for described main thread, database manipulation task is produced according to the request of application upper-layer service, and according to the setting dimension of upper-layer service request, be batch data storehouse operation task by multiple database manipulation task merging;
Described operation task execution module specifically for: described database processing thread splits described batch data storehouse operation task, and performs respectively according to the configuration information of each task after splitting;
Described execution result returns module and is merged by the execution result of each task after splitting specifically for: described database processing thread, as the execution result of described batch data storehouse operation task, and returns to the upper-layer service request of described main thread.
CN201510452085.1A 2015-07-28 2015-07-28 Method and device for processing database operation tasks Pending CN105094972A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510452085.1A CN105094972A (en) 2015-07-28 2015-07-28 Method and device for processing database operation tasks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510452085.1A CN105094972A (en) 2015-07-28 2015-07-28 Method and device for processing database operation tasks

Publications (1)

Publication Number Publication Date
CN105094972A true CN105094972A (en) 2015-11-25

Family

ID=54575480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510452085.1A Pending CN105094972A (en) 2015-07-28 2015-07-28 Method and device for processing database operation tasks

Country Status (1)

Country Link
CN (1) CN105094972A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912385A (en) * 2016-04-12 2016-08-31 北京橙鑫数据科技有限公司 Method and device for operating database by application program based on Android system
CN105959398A (en) * 2016-06-15 2016-09-21 华南师范大学 Cooperation oriented internet of things interaction control method and device
CN106371910A (en) * 2016-09-05 2017-02-01 努比亚技术有限公司 Method and terminal for preventing user interface from being frequently operated
CN106899649A (en) * 2016-06-30 2017-06-27 阿里巴巴集团控股有限公司 A kind of task requests processing method, device and user equipment
CN107038645A (en) * 2016-12-21 2017-08-11 阿里巴巴集团控股有限公司 Method for processing business, apparatus and system and server
CN108090114A (en) * 2017-11-02 2018-05-29 珠海许继芝电网自动化有限公司 A kind of determination method of the single-link request-reply based on real-time data base
CN110059111A (en) * 2019-04-17 2019-07-26 珠海金山网络游戏科技有限公司 A kind of data calling method, device, a kind of calculating equipment and storage medium
WO2019154130A1 (en) * 2018-02-07 2019-08-15 阿里巴巴集团控股有限公司 Task running method and apparatus, and electronic device
CN110347952A (en) * 2019-07-18 2019-10-18 武汉斗鱼网络科技有限公司 A kind of method, apparatus and computer equipment for opening the direct broadcasting room page
WO2020135551A1 (en) * 2018-12-29 2020-07-02 中兴通讯股份有限公司 Method and apparatus for synchronously replicating database
CN112527627A (en) * 2020-11-02 2021-03-19 百果园技术(新加坡)有限公司 Page blockage detection method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521265A (en) * 2011-11-21 2012-06-27 华中科技大学 Dynamic consistency control method in massive data management
CN102915254A (en) * 2011-08-02 2013-02-06 中兴通讯股份有限公司 Task management method and device
CN103019859A (en) * 2012-12-05 2013-04-03 北京普泽天玑数据技术有限公司 Method and system for calling service request

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915254A (en) * 2011-08-02 2013-02-06 中兴通讯股份有限公司 Task management method and device
CN102521265A (en) * 2011-11-21 2012-06-27 华中科技大学 Dynamic consistency control method in massive data management
CN103019859A (en) * 2012-12-05 2013-04-03 北京普泽天玑数据技术有限公司 Method and system for calling service request

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912385A (en) * 2016-04-12 2016-08-31 北京橙鑫数据科技有限公司 Method and device for operating database by application program based on Android system
CN105959398A (en) * 2016-06-15 2016-09-21 华南师范大学 Cooperation oriented internet of things interaction control method and device
CN106899649A (en) * 2016-06-30 2017-06-27 阿里巴巴集团控股有限公司 A kind of task requests processing method, device and user equipment
CN106371910A (en) * 2016-09-05 2017-02-01 努比亚技术有限公司 Method and terminal for preventing user interface from being frequently operated
CN107038645A (en) * 2016-12-21 2017-08-11 阿里巴巴集团控股有限公司 Method for processing business, apparatus and system and server
CN108090114A (en) * 2017-11-02 2018-05-29 珠海许继芝电网自动化有限公司 A kind of determination method of the single-link request-reply based on real-time data base
WO2019154130A1 (en) * 2018-02-07 2019-08-15 阿里巴巴集团控股有限公司 Task running method and apparatus, and electronic device
WO2020135551A1 (en) * 2018-12-29 2020-07-02 中兴通讯股份有限公司 Method and apparatus for synchronously replicating database
CN110059111A (en) * 2019-04-17 2019-07-26 珠海金山网络游戏科技有限公司 A kind of data calling method, device, a kind of calculating equipment and storage medium
CN110059111B (en) * 2019-04-17 2022-02-01 珠海金山网络游戏科技有限公司 Data calling method and device, computing equipment and storage medium
CN110347952A (en) * 2019-07-18 2019-10-18 武汉斗鱼网络科技有限公司 A kind of method, apparatus and computer equipment for opening the direct broadcasting room page
CN112527627A (en) * 2020-11-02 2021-03-19 百果园技术(新加坡)有限公司 Page blockage detection method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN105094972A (en) Method and device for processing database operation tasks
CN108959292B (en) Data uploading method, system and computer readable storage medium
CN110648054A (en) Task parallel processing method and device for robot process automation
CN102456031B (en) A kind of Map Reduce system and the method processing data stream
CN104035818A (en) Multiple-task scheduling method and device
US20150254105A1 (en) Data processing system, data processing method, and program
CN104750690A (en) Query processing method, device and system
CN109597810B (en) Task segmentation method, device, medium and electronic equipment
CN103581336A (en) Service flow scheduling method and system based on cloud computing platform
CN105975493A (en) File combination method and apparatus
CN113010286A (en) Parallel task scheduling method and device, computer equipment and storage medium
CN109669767B (en) Task packaging and scheduling method and system for multi-type context dependence
CN105528381A (en) Database data migration method and system
EP3667495A1 (en) Task scheduling method, apparatus and device, and storage medium
CN112860401A (en) Task scheduling method and device, electronic equipment and storage medium
KR100590764B1 (en) Method for mass data processing through scheduler in multi processor system
CN106201696A (en) Method and apparatus for thread
CN105630778A (en) DB data migration method and system
CN102147750A (en) Method and system for processing operation
CN102508720A (en) Method for improving efficiency of preprocessing module and efficiency of post-processing module and system
CN111435329A (en) Automatic testing method and device
CN111736967B (en) Multi-branch flow management and control device, flow template generation method and storage medium
CN106325991B (en) Instruction scheduling method and device of flow engine
CN105956043A (en) Method and device for allocating Map task for MapReduce running on Hbase database
CN113034048A (en) Task processing method, device, server and storage medium

Legal Events

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

Application publication date: 20151125

RJ01 Rejection of invention patent application after publication