CN106095938A - A kind of example operation method and device thereof - Google Patents

A kind of example operation method and device thereof Download PDF

Info

Publication number
CN106095938A
CN106095938A CN201610414009.6A CN201610414009A CN106095938A CN 106095938 A CN106095938 A CN 106095938A CN 201610414009 A CN201610414009 A CN 201610414009A CN 106095938 A CN106095938 A CN 106095938A
Authority
CN
China
Prior art keywords
cdb
batch operation
batch
request
client
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
CN201610414009.6A
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.)
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 CN201610414009.6A priority Critical patent/CN106095938A/en
Publication of CN106095938A publication Critical patent/CN106095938A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Abstract

A kind of open example operation method of the embodiment of the present invention and device thereof, wherein method comprises the steps: to obtain the batch operation request of at least two cloud data base's CDB example for intended application that client sends, and the CDB instance identification that the batch operation type information of described at least two CDB example is corresponding with each CDB example in described at least two CDB example is carried in the request of described batch operation;The batch operation that batch operation type information described in the CDB example executed in parallel corresponding to described each CDB instance identification is corresponding, to generate operating result;Described operating result is sent to described client.Use the present invention, it is possible to realize multiple CDB example executed in parallel batch operations, improve the operating efficiency to CDB example.

Description

A kind of example operation method and device thereof
Technical field
The present invention relates to database technical field, particularly relate to a kind of example operation method and device thereof.
Background technology
Becoming increasingly popular and widely applying along with cloud computing technology, cloud computing is realizing the high availability of service, is processing energy The advantage of the aspects such as the extensibility of power is more and more approved by industry.Wherein, cloud data base (Cloud Data base, CDB) being the most gradually developed, CDB is different under traditional mode the data base being deployed in home server, and CDB is to be deployed to Data base in one virtual computation environmental, and the ability of data base can be supplied to multiple client in the form of services. In actual application, CDB client can dispose the data base about an application in virtual computation environmental, and what usual client disposed should The data base of application can be referred to as the CDB example of this application, such as, the data base of a certain application is carried out dilatation needing Time, it is only necessary to establish a number of data base newly.Therefore, client can to dispose this application in virtual computation environmental many Individual CDB example.
In the prior art, client is needed that multiple CDB examples of this application all complete same class to operate (such as, Continue to pay dues operation, parameter configuration operation or SQL (Structured Query Language, SQL) operation etc.) Situation, client need to each CDB example to example operation device send once-through operation request, and example operation device also according to The operation requests sent performs operation correspondingly successively, have impact on the operating efficiency to CDB example.
Summary of the invention
The embodiment of the present invention provides a kind of example operation method and device thereof, it is possible to realize holding multiple CDB examples parallel Row batch operation, and then improve the operating efficiency to CDB example.
Embodiment of the present invention first aspect provides a kind of example operation method, including:
Obtain the batch operation request of at least two cloud data base's CDB example for intended application that client sends, Described batch operation asks to carry the batch operation type information of described at least two CDB example and described at least two CDB is real The CDB instance identification that in example, each CDB example is corresponding;
Batch operation type information described in the CDB example executed in parallel corresponding to described each CDB instance identification is corresponding Batch operation, to generate operating result;
Described operating result is sent to described client.
Embodiment of the present invention second aspect provides a kind of example operation device, including:
Acquisition request unit, real for obtaining at least two cloud data base CDB for intended application of client transmission Example batch operation request, described batch operation request carry described at least two CDB example batch operation type information and The CDB instance identification that in described at least two CDB example, each CDB example is corresponding;
Example operation unit, for batch behaviour described in the CDB example executed in parallel corresponding to described each CDB instance identification Make the batch operation that type information is corresponding, to generate operating result;
Result transmitting element, for sending described operating result to described client.
In embodiments of the present invention, by obtaining at least two CDB example in the batch operation request that client sends The CDB instance identification that batch operation type information is corresponding with each CDB example, the CDB example corresponding to each CDB instance identification The batch operation that executed in parallel batch operation type information is corresponding, to generate operating result, and sends operating result to client End.So by receiving the batch operation request of the batch operation about multiple CDB examples that client disposably sends, it is achieved According to the batch operation request the sent executed in parallel to the batch operation of multiple CDB examples, and then improve CDB example Operating efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of example operation method that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of example operation method that the embodiment of the present invention provides;
Fig. 3 is the schematic flow sheet of a kind of example operation device that the embodiment of the present invention provides;
Fig. 4 is the schematic flow sheet of the another kind of example operation device that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the example operation unit that the embodiment of the present invention provides;
Fig. 6 is the structural representation of the another kind of example operation device that the embodiment of the present invention provides.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not paying creative work premise Embodiment, broadly falls into the scope of protection of the invention.
The example operation method that the embodiment of the present invention provides can apply to carry out multiple CDB examples of target game criticizing The scene of amount operation, such as: obtain the batch operation request of the multiple CDB examples for target game that client sends, institute State batch operation request and carry each CDB in the batch operation type information of the plurality of CDB example and the plurality of CDB example The CDB instance identification that example is corresponding;Batch operation described in the CDB example executed in parallel corresponding to described each CDB instance identification The batch operation that type information is corresponding, to generate operating result;Described operating result is sent to described client.So pass through Receive the batch operation request of the batch operation about multiple CDB examples that client disposably sends, it is achieved that according to transmission The batch operation request executed in parallel to the batch operation of multiple CDB examples, and then improve the effect of the operation to CDB example Rate.
The example operation device that the present embodiments relate to can be any possess communication and the equipment of storage function, example As, the physical machine individually set up;Or, the function of described example operation device can also be by a physical machine virtualization The virtual machine obtained realizes.Described CDB example is the multiple data bases about intended application disposed in CDB, described reality Example operation device can perform database manipulation, such as, the operation that continues to pay dues, time shelves operation, ginseng to multiple CDB examples of intended application Number configuration operation, SQL operation etc..
Below in conjunction with accompanying drawing 1 and accompanying drawing 2, the example operation method providing the embodiment of the present invention describes in detail.
Refer to Fig. 1, for embodiments providing the schematic flow sheet of a kind of example operation method.As it is shown in figure 1, The described method of the embodiment of the present invention may comprise steps of S101-step S103.
S101, obtains the batch operation of at least two cloud data base's CDB example for intended application that client sends Request.
Concrete, example operation device obtains criticizing of at least two CDB example for intended application of client transmission Amount operation requests.Wherein, batch operation type information and the institute of described at least two CDB example is carried in the request of described batch operation State the CDB instance identification that at least two CDB example, each CDB example is corresponding.In feasible scheme, described example operation device Can provide a user with the operation interface of CDB example list, this operation interface can show in the client.Further, described reality The batch operation request that example operation device obtains can be the operation interface transmission that client passes through CDB example list, in batches Operation requests is carried at least two CDB instance identification and batch operation type information selected by user.So user is permissible Select multiple CDB example and once ask to the transmission of described example operation device, decreasing the number of operations of user, improve use Family experience effect.
Optionally, described example operation device can be arranged has needed the user disposing CDB example to register user's mark Know and the flow process of password, so can in the case of the ID that user is logged in by client and password authentification are passed through, The operation interface of the whole CDB example list disposed, i.e. described at least two CDB in the embodiment of the present invention is shown to user Example is the data base about intended application disposed in CDB by client.So so that the CDB example disposed is entered by user Row monitoring and operation, be also beneficial to improve the managerial effectiveness of the CDB example that numerous users are disposed by example operation device.
In feasible scheme, in described at least two CDB example, each CDB example uses identical database structure.Its In, data structure refers to exist each other the set of the data element of one or more particular kind of relationships, generally includes set knot Structure, linear structure, tree and network structure.
S102, batch operation type information pair described in the CDB example executed in parallel corresponding to described each CDB instance identification The batch operation answered, to generate operating result.
Concrete, described in the CDB example executed in parallel that described example operation device is corresponding to described each CDB instance identification The batch operation that batch operation type information is corresponding, to generate operating result.In feasible scheme, described example operation device bag Including multiple request treatment progress, each request treatment progress is to the operation requests about data base received Reason, described example operation device can be to described batch operation request distribution one request treatment progress, at the request by distribution It is corresponding that reason process completes batch operation type information described in the CDB example executed in parallel corresponding to described each CDB instance identification Batch operation.Further, in being asked batch operation by the request treatment progress of distribution, each CDB instance identification is corresponding CDB example allocation operation thread, and it is described to the CDB example execution that described each operation thread is corresponding to control each operation thread The batch operation that batch operation type information is corresponding.
Further, described example operation device can generate operating result, described operating result by the batch operation performed Include whether described at least two CDB example to perform the status information of batch operation and/or described each operation thread to institute State the implementation progress information of CDB example corresponding to each operation thread.Such as, described in described batch operation being asked at least Two CDB examples perform having started to mode of operation or non-mode of operation or completing mode of operation of batch operation;Or, if opening Described at least two CDB example in beginning to ask described batch operation performs batch operation, and described operating result can also wrap Include the implementation progress information to each CDB example.
In feasible scheme, the request of described batch operation is also carried the data letter corresponding with described batch operation type Breath.For example, the duration that continues to pay dues (such as: month or a year etc.) of the operation that continues to pay dues in batches, batch returns time shelves of shelves operation and arrives Time point information (such as: during * * * * month * * day * *, * * divides the * * second), in batches parameter configuration operation parameter information, SQL behaviour The data message made.
S103, sends described operating result to described client.
Concrete, described operating result is sent to described client by described example operation device, in feasible scheme, and can So that the operation interface of the CDB example list in described client showing, described operating result, described operating result can lead to Cross word or form of icons shows;Implementation progress information in the most described operating result can show with the form of progress bar, This is not limited by the embodiment of the present invention.The so convenient user sending described batch processing requests understands example operation dress in time Put the operation progress to CDB example.
In embodiments of the present invention, by obtaining at least two CDB example in the batch operation request that client sends The CDB instance identification that batch operation type information is corresponding with each CDB example, the CDB example corresponding to each CDB instance identification The batch operation that executed in parallel batch operation type information is corresponding, to generate operating result, and sends operating result to client End.So by receiving the batch operation request of the batch operation about multiple CDB examples that client disposably sends, it is achieved According to the batch operation request the sent executed in parallel to the batch operation of multiple CDB examples, and then improve CDB example Operating efficiency.
Refer to Fig. 2, for embodiments providing the schematic flow sheet of another kind of example operation method.Such as Fig. 2 institute Showing, the described method of the embodiment of the present invention may comprise steps of S201-step S205.
S201, obtains the batch operation of at least two cloud data base's CDB example for intended application that client sends Request.
Concrete, example operation device obtains criticizing of at least two CDB example for intended application of client transmission Amount operation requests.In feasible scheme, described example operation device obtains the request of described batch operation and may refer to described example Operation device receives the batch operation request of at least two cloud data base's CDB example for intended application that client sends. Wherein, the batch operation type information of described at least two CDB example and described at least two are carried in the request of described batch operation The CDB instance identification that in CDB example, each CDB example is corresponding.In feasible scheme, described example operation device can carry to user For the operation interface of CDB example list, this operation interface can show in the client.Further, described example operation device The batch operation request obtained can be the operation interface transmission that client passes through CDB example list, in batch operation request Carry at least two CDB instance identification and batch operation type information selected by user.So user can select multiple CDB Example is also once asked to the transmission of described example operation device, decreases the number of operations of user, improves Consumer's Experience effect.
Optionally, described example operation device can be arranged has needed the user disposing CDB example to register user's mark Know and the flow process of password, so can in the case of the ID that user is logged in by client and password authentification are passed through, The operation interface of the whole CDB example list disposed, i.e. described at least two CDB in the embodiment of the present invention is shown to user Example is the data base about intended application disposed in CDB by client.So so that the CDB example disposed is entered by user Row monitoring and operation, be also beneficial to improve the managerial effectiveness of the CDB example that numerous users are disposed by example operation device.
In optional scheme, when described example operation device receive that client sends at least the two of intended application When the batch operation of individual cloud data base's CDB example is asked, the request of described batch operation is added to request queue, with according to asking The time order and function order of request in queue or the priority sequencing of request is asked to process.It is understood that in request Queue can also include the operation requests of a CDB example for a certain application, and the operation for a CDB example please Asking, described example operation device can perform, to this CDB example, the operation that action type information is corresponding, to generate operating result, And send, to the client sending this request, the operating result generated.
S202, detect described target web-privilege password Web whether with default access code matches.
Concrete, described example operation device is receiving at least two cloud number for intended application that client sends After asking according to the batch operation of storehouse CDB example, detect described target web-privilege password Web whether with default access code matches.Its In, described target web-privilege password Web carries in described batch operation is asked, and described target web-privilege password Web is indicated for holding The authority of the batch operation that the described batch operation type of row is corresponding.Described default access password is by disposing this intended application The user of CDB example sets and is stored in described example operation device.If described target web-privilege password Web being detected and presetting Web-privilege password Web matches, then it represents that possesses the authority performing batch operation corresponding to described batch operation type, and performs step S203;If detecting, described target web-privilege password Web does not mates with default access password, then it represents that do not possess execution described batch behaviour Make the authority of batch operation corresponding to type, in feasible scheme, can send for representing do not possess execution to described client The information of the authority of the batch operation that described batch operation type is corresponding.
S203, the CDB example allocation operation thread corresponding to described each CDB instance identification.
Concrete, if described target web-privilege password Web and default access code matches, described example operation device being detected The CDB example allocation operation thread corresponding to described each CDB instance identification, wherein, a corresponding operation line of CDB example Journey.Optionally, described example operation device includes that multiple request treatment progress, each request treatment progress are for receiving The operation requests about data base process, by distribution request treatment progress to batch operation ask in each CDB The CDB example allocation operation thread that instance identification is corresponding.
S204, controls each operation thread and the CDB example that described each operation thread is corresponding is performed described batch operation The batch operation that type information is corresponding, to generate operating result.
Concrete, it is real to the CDB that described each operation thread is corresponding that described example operation device controls each operation thread Example performs the batch operation that described batch operation type information is corresponding, to generate operating result.Described example operation device can lead to Crossing the batch operation performed and generate operating result, described operating result includes whether to perform to criticize to described at least two CDB example The status information of amount operation and/or the execution of described each operation thread CDB example corresponding to described each operation thread are entered Degree information.Such as, what the described at least two CDB example in the request of described batch operation performed batch operation has started to operation State or non-mode of operation or complete mode of operation;Or, if having started to described batch operation ask in described at least two Individual CDB example performs batch operation, and described operating result can also include the implementation progress information to each CDB example.
In feasible scheme, the request of described batch operation is also carried the data letter corresponding with described batch operation type Breath.For example, the duration that continues to pay dues (such as: month or a year etc.) of the operation that continues to pay dues in batches, batch returns time shelves of shelves operation and arrives Time point information (such as: during * * * * month * * day * *, * * divides the * * second), in batches parameter configuration operation parameter information, SQL behaviour The data message made.
S205, sends described operating result to described client.
Concrete, described operating result is sent to described client by described example operation device, in feasible scheme, and can So that the operation interface of the CDB example list in described client showing, described operating result, described operating result can lead to Cross word or form of icons shows;Implementation progress information in the most described operating result can show with the form of progress bar, This is not limited by the embodiment of the present invention.The so convenient user sending described batch processing requests understands example operation dress in time Put the operation progress to CDB example.
In embodiments of the present invention, by obtaining at least two CDB example in the batch operation request that client sends The CDB instance identification that batch operation type information is corresponding with each CDB example, the CDB example corresponding to each CDB instance identification The batch operation that executed in parallel batch operation type information is corresponding, to generate operating result, and sends operating result to client End.So by receiving the batch operation request of the batch operation about multiple CDB examples that client disposably sends, it is achieved According to the batch operation request the sent executed in parallel to the batch operation of multiple CDB examples, and then improve CDB example Operating efficiency.
Below in conjunction with accompanying drawing 3-accompanying drawing 6, the example operation device providing the embodiment of the present invention describes in detail.Need It is noted that the example operation device shown in accompanying drawing 3-accompanying drawing 6, for performing the side of Fig. 1 of the present invention and embodiment illustrated in fig. 2 Method, for convenience of description, illustrate only the part relevant to the embodiment of the present invention, and concrete ins and outs do not disclose, refer to Embodiment shown in Fig. 1 and Fig. 2 of the present invention.
Refer to Fig. 3, for embodiments providing the structural representation of a kind of example operation device.As it is shown on figure 3, The described example operation device 1 of the embodiment of the present invention may include that acquisition request unit 11, example operation unit 12 and result are sent out Send unit 13.
Acquisition request unit 11, for obtaining at least two cloud data base CDB for intended application that client sends The batch operation request of example, the batch operation type information of described at least two CDB example is carried in the request of described batch operation The CDB instance identification corresponding with CDB example each in described at least two CDB example.
Concrete, at least two CDB for intended application that described acquisition request unit 11 obtains client transmission is real The batch operation request of example.Wherein, the batch operation type letter of described at least two CDB example is carried in the request of described batch operation Cease the CDB instance identification corresponding with each CDB example in described at least two CDB example.In feasible scheme, described example is grasped Making device 1 and can provide a user with the operation interface of CDB example list, this operation interface can show in the client.Further, The batch operation request that described acquisition request unit 11 obtains can be the operation interface transmission that client passes through CDB example list , at least two CDB instance identification and batch operation type information selected by user is carried in batch operation request.So use Family can select multiple CDB example sending to described example operation device 1 once to ask, and decreases the number of operations of user, Improve Consumer's Experience effect.
Optionally, described example operation device 1 can be arranged has needed the user disposing CDB example to register user's mark Know and the flow process of password, so can in the case of the ID that user is logged in by client and password authentification are passed through, The operation interface of the whole CDB example list disposed, i.e. described at least two CDB in the embodiment of the present invention is shown to user Example is the data base about intended application disposed in CDB by client.So so that the CDB example disposed is entered by user Row monitoring and operation, be also beneficial to improve the managerial effectiveness of the CDB example that numerous users are disposed by example operation device 1.
In feasible scheme, in described at least two CDB example, each CDB example uses identical database structure.Its In, data structure refers to exist each other the set of the data element of one or more particular kind of relationships, generally includes set knot Structure, linear structure, tree and network structure.
Example operation unit 12, for batch described in the CDB example executed in parallel corresponding to described each CDB instance identification The batch operation that action type information is corresponding, to generate operating result.
Concrete, that described example operation unit 12 is corresponding to described each CDB instance identification CDB example executed in parallel institute State the batch operation that batch operation type information is corresponding, to generate operating result.In feasible scheme, described example operation device 1 includes that multiple request treatment progress, each request treatment progress are for entering the operation requests about data base received Row process, described example operation device 1 can be to described batch operation request distribution one request treatment progress, asking by distribution Treatment progress is asked to complete batch operation type information described in the CDB example executed in parallel corresponding to described each CDB instance identification Corresponding batch operation.Further, each CDB instance identification pair in batch operation being asked by the request treatment progress of distribution The CDB example allocation operation thread answered, and control the CDB example execution that each operation thread is corresponding to described each operation thread The batch operation that described batch operation type information is corresponding.
Further, described example operation unit 12 can generate operating result by the batch operation performed, and described operation is tied Fruit includes whether described at least two CDB example is performed the status information of batch operation and/or described each operation thread pair The implementation progress information of the CDB example that described each operation thread is corresponding.Such as, described in described batch operation being asked extremely Few two CDB examples perform having started to mode of operation or non-mode of operation or completing mode of operation of batch operation;Or, if Starting the described at least two CDB example in asking described batch operation and perform batch operation, described operating result is all right Including the implementation progress information to each CDB example.
In feasible scheme, the request of described batch operation is also carried the data letter corresponding with described batch operation type Breath.For example, the duration that continues to pay dues (such as: month or a year etc.) of the operation that continues to pay dues in batches, batch returns time shelves of shelves operation and arrives Time point information (such as: during * * * * month * * day * *, * * divides the * * second), in batches parameter configuration operation parameter information, SQL behaviour The data message made.
Result transmitting element 13, for sending described operating result to described client.
Concrete, described operating result is sent to described client by described result transmitting element 13, in feasible scheme, Can show described operating result in the operation interface of CDB example list in described client, described operating result is permissible Shown by word or form of icons;Implementation progress information in the most described operating result can show with the form of progress bar Showing, this is not limited by the embodiment of the present invention.The so convenient user sending described batch processing requests understands example behaviour in time Make the device 1 operation progress to CDB example.
In embodiments of the present invention, by obtaining at least two CDB example in the batch operation request that client sends The CDB instance identification that batch operation type information is corresponding with each CDB example, the CDB example corresponding to each CDB instance identification The batch operation that executed in parallel batch operation type information is corresponding, to generate operating result, and sends operating result to client End.So by receiving the batch operation request of the batch operation about multiple CDB examples that client disposably sends, it is achieved According to the batch operation request the sent executed in parallel to the batch operation of multiple CDB examples, and then improve CDB example Operating efficiency.
Refer to Fig. 4, for embodiments providing the structural representation of another kind of example operation device.Such as Fig. 4 institute Showing, the described example operation device 1 of the embodiment of the present invention may include that acquisition request unit 11, example operation unit 12, result Transmitting element 13 and password detector unit 14.
Acquisition request unit 11, for obtaining at least two cloud data base CDB for intended application that client sends The batch operation request of example, the batch operation type information of described at least two CDB example is carried in the request of described batch operation The CDB instance identification corresponding with CDB example each in described at least two CDB example;
Concrete, at least two CDB for intended application that described acquisition request unit 11 obtains client transmission is real The batch operation request of example.In feasible scheme, described acquisition request unit 11 obtains the request of described batch operation and may refer to Receive the batch operation request of at least two cloud data base's CDB example for intended application that client sends.Wherein, described Batch operation request is carried in batch operation type information and the described at least two CDB example of described at least two CDB example The CDB instance identification that each CDB example is corresponding.In feasible scheme, it is real that described example operation device 1 can provide a user with CDB The operation interface of example list, this operation interface can show in the client.Further, described acquisition request unit 11 obtains Batch operation request can be client pass through CDB example list operation interface send, batch operation request in carry by At least two CDB instance identification of user's selection and batch operation type information.So user can select multiple CDB example also Send to described example operation device 1 and once ask, decrease the number of operations of user, improve Consumer's Experience effect.
Optionally, described example operation device 1 can be arranged has needed the user disposing CDB example to register user's mark Know and the flow process of password, so can in the case of the ID that user is logged in by client and password authentification are passed through, The operation interface of the whole CDB example list disposed, i.e. described at least two CDB in the embodiment of the present invention is shown to user Example is the data base about intended application disposed in CDB by client.So so that the CDB example disposed is entered by user Row monitoring and operation, be also beneficial to improve the managerial effectiveness of the CDB example that numerous users are disposed by example operation device 1.
In optional scheme, when described acquisition request unit 11 receive that client sends for intended application at least When the batch operation of two cloud data base's CDB examples is asked, the request of described batch operation is added to request queue, with basis The time order and function order of request in request queue or the priority sequencing of request process.It is understood that asking Seek the operation requests that can also include a CDB example for a certain application in queue, and for the operation of a CDB example Request, described example operation device 1 can perform, to this CDB example, the operation that action type information is corresponding, to generate operation knot Really, and to the client sending this request the operating result generated is sent.
Password detector unit 14, be used for detecting described target web-privilege password Web whether with default access code matches.
Concrete, receive, at described acquisition request unit 11, at least two cloud for intended application that client sends After the batch operation request of data base's CDB example, described password detector unit 14 detect described target web-privilege password Web whether with Default access code matches.Wherein, described target web-privilege password Web carries in described batch operation is asked, described target Web-privilege password Web is indicated for performing the authority of batch operation corresponding to described batch operation type.Described default access password It is to be set and be stored in by the user of the CDB example disposing this intended application in described example operation device 1.If institute being detected State target web-privilege password Web and default access code matches, then it represents that possess and perform the batch behaviour that described batch operation type is corresponding The authority made, and perform example operation unit 12;If detecting, described target web-privilege password Web does not mates with default access password, then Represent do not possess the authority performing batch operation corresponding to described batch operation type, in feasible scheme, can be to described client End sends for representing the information not possessing the authority performing batch operation corresponding to described batch operation type.
Example operation unit 12, if for described target web-privilege password Web and described default access code matches being detected, Then perform corresponding the criticizing of batch operation type information described in the CDB example executed in parallel corresponding to described each CDB instance identification The step of amount operation.
Concrete please also refer to Fig. 5, for embodiments providing the structural representation of example operation unit.Such as figure Shown in 5, described example operation unit 12 includes thread allocation unit 121 and Thread Control Unit 122.
Thread allocation unit 121, for the CDB example allocation operation thread corresponding to described each CDB instance identification.
Concrete, if described password detector unit 14 detects described target web-privilege password Web and default access password phase Join, the CDB example allocation operation thread that described thread allocation unit 121 is corresponding to described each CDB instance identification, wherein, one The corresponding operation thread of individual CDB example.Optionally, described example operation device 1 includes multiple request treatment progress, each please Seeking treatment progress is for processing the operation requests about data base received, by the request treatment progress of distribution The CDB example allocation operation thread that in asking batch operation, each CDB instance identification is corresponding.
Thread Control Unit 122, holds the CDB example that described each operation thread is corresponding for controlling each operation thread The batch operation that the described batch operation type information of row is corresponding, to generate operating result.
Concrete, described Thread Control Unit 122 controls the CDB that each operation thread is corresponding to described each operation thread Example performs the batch operation that described batch operation type information is corresponding, to generate operating result.Described Thread Control Unit 122 Can generate operating result by the batch operation performed, described operating result includes whether to hold described at least two CDB example Holding of the status information of row batch operation and/or described each operation thread CDB example corresponding to described each operation thread Row progress msg.Such as, the described at least two CDB example in asking described batch operation performs having started to of batch operation Mode of operation or non-mode of operation or complete mode of operation;Or, if described in having started to described batch operation is asked extremely Few two CDB examples perform batch operation, and described operating result can also include the implementation progress information to each CDB example.
In feasible scheme, the request of described batch operation is also carried the data letter corresponding with described batch operation type Breath.For example, the duration that continues to pay dues (such as: month or a year etc.) of the operation that continues to pay dues in batches, batch returns time shelves of shelves operation and arrives Time point information (such as: during * * * * month * * day * *, * * divides the * * second), in batches parameter configuration operation parameter information, SQL behaviour The data message made.
Result transmitting element 13, for sending described operating result to described client.
Concrete, described operating result is sent to described client by described result transmitting element 13, in feasible scheme, Can show described operating result in the operation interface of CDB example list in described client, described operating result is permissible Shown by word or form of icons;Implementation progress information in the most described operating result can show with the form of progress bar Showing, this is not limited by the embodiment of the present invention.The so convenient user sending described batch processing requests understands example behaviour in time Make the device 1 operation progress to CDB example.
In embodiments of the present invention, by obtaining at least two CDB example in the batch operation request that client sends The CDB instance identification that batch operation type information is corresponding with each CDB example, the CDB example corresponding to each CDB instance identification The batch operation that executed in parallel batch operation type information is corresponding, to generate operating result, and sends operating result to client End.So by receiving the batch operation request of the batch operation about multiple CDB examples that client disposably sends, it is achieved According to the batch operation request the sent executed in parallel to the batch operation of multiple CDB examples, and then improve CDB example Operating efficiency.
Refer to Fig. 6, for embodiments providing the structural representation of another kind of example operation device.Such as Fig. 6 institute Showing, described example operation device 1000 may include that at least one processor 1001, such as CPU, at least one network interface 1004, user interface 1003, memorizer 1005, at least one communication bus 1002.Wherein, communication bus 1002 is used for realizing this Connection communication between a little assemblies.Wherein, user interface 1003 can include display screen (Display), keyboard (Keyboard), Optional user interface 1003 can also include the wireline interface of standard, wave point.Network interface 1004 optionally can include The wireline interface of standard, wave point (such as WI-FI interface).Memorizer 1005 can be high-speed RAM memorizer, it is also possible to right and wrong Unstable memorizer (non-volatile memory), for example, at least one disk memory.Memorizer 1005 is optionally also Can be that at least one is located remotely from the storage device of aforementioned processor 1001.As shown in Figure 6, it is situated between as a kind of Computer Storage The memorizer 1005 of matter can include operating system, network communication module, Subscriber Interface Module SIM and example operation application journey Sequence.
In the example operation device 1000 shown in Fig. 6, user interface 1003 is mainly used in providing the user connecing of input Mouthful, obtain user and send the operation requests of one or more CDB example for application;And processor 1001 may be used for adjusting With the example operation application program of storage in memorizer 1005, and specifically perform following operation:
Obtain the batch operation request of at least two cloud data base's CDB example for intended application that client sends, Described batch operation asks to carry the batch operation type information of described at least two CDB example and described at least two CDB is real The CDB instance identification that in example, each CDB example is corresponding;
Batch operation type information described in the CDB example executed in parallel corresponding to described each CDB instance identification is corresponding Batch operation, to generate operating result;
Described operating result is sent to described client.
In a possible embodiment, described processor 1001 performs to obtain that client sends for intended application The batch operation request of at least two cloud data base's CDB example, specifically performs following steps:
Receive the batch operation request of at least two cloud data base's CDB example for intended application that client sends, And the request of described batch operation is added to request queue.
In a possible embodiment, the request of described batch operation is also carried for performing described batch operation type pair The target web-privilege password Web of the batch operation answered;
Described processor 1001 performs batch described in the CDB example executed in parallel corresponding to described each CDB instance identification Before the batch operation that action type information is corresponding, described processor 1001 be additionally operable to perform following steps:
Detect described target web-privilege password Web whether with default access code matches;
The most then perform batch operation type described in the CDB example executed in parallel corresponding to described each CDB instance identification The step of the batch operation that information is corresponding.
In a possible embodiment, described processor 1001 performs the CDB corresponding to described each CDB instance identification The batch operation that batch operation type information described in example executed in parallel is corresponding, specifically performs following steps:
The CDB example allocation operation thread corresponding to described each CDB instance identification;
Control each operation thread and the CDB example that described each operation thread is corresponding is performed described batch operation type letter The batch operation that breath is corresponding.
In a possible embodiment, described operating result includes whether to perform to criticize to described at least two CDB example The status information of amount operation and/or the execution of described each operation thread CDB example corresponding to described each operation thread are entered Degree information.
In a possible embodiment, in described at least two CDB example, each CDB example uses identical data base Structure.
In embodiments of the present invention, by obtaining at least two CDB example in the batch operation request that client sends The CDB instance identification that batch operation type information is corresponding with each CDB example, the CDB example corresponding to each CDB instance identification The batch operation that executed in parallel batch operation type information is corresponding, to generate operating result, and sends operating result to client End.So by receiving the batch operation request of the batch operation about multiple CDB examples that client disposably sends, it is achieved According to the batch operation request the sent executed in parallel to the batch operation of multiple CDB examples, and then improve CDB example Operating efficiency.
It should be noted that for each embodiment of the method aforesaid, in order to be briefly described, therefore it is all expressed as one it be The combination of actions of row, but those skilled in the art should know, and the present invention is not limited by described sequence of movement, because of For according to the present invention, certain some step can use other orders or carry out simultaneously.Secondly, those skilled in the art also should Knowing, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily this Bright necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in certain embodiment Part, may refer to the associated description of other embodiments.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, be permissible Instructing relevant hardware by computer program to complete, described program can be stored in a computer read/write memory medium In, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc..
The above disclosed present pre-ferred embodiments that is only, can not limit the right model of the present invention with this certainly Enclose, the equivalent variations therefore made according to the claims in the present invention, still belong to the scope that the present invention is contained.

Claims (12)

1. an example operation method, it is characterised in that including:
Obtain the batch operation request of at least two cloud data base's CDB example for intended application that client sends, described Batch operation request is carried in batch operation type information and the described at least two CDB example of described at least two CDB example The CDB instance identification that each CDB example is corresponding;
The batch that batch operation type information described in the CDB example executed in parallel corresponding to described each CDB instance identification is corresponding Operation, to generate operating result;
Described operating result is sent to described client.
Method the most according to claim 1, it is characterised in that described acquisition client send for intended application extremely The batch operation request of few two cloud data base's CDB examples, including:
Receive the batch operation request of at least two cloud data base's CDB example for intended application that client sends, and will The request of described batch operation is added to request queue.
Method the most according to claim 1, it is characterised in that the request of described batch operation is also carried for performing described batch The target web-privilege password Web of the batch operation that amount action type is corresponding;
Batch operation type information described in the described CDB example executed in parallel corresponding to described each CDB instance identification is corresponding Before batch operation, also include:
Detect described target web-privilege password Web whether with default access code matches;
The most then perform batch operation type information described in the CDB example executed in parallel corresponding to described each CDB instance identification The step of corresponding batch operation.
4. according to the method described in any one of claim 1-3, it is characterised in that described to described each CDB instance identification pair The batch operation that batch operation type information described in the CDB example executed in parallel answered is corresponding, including:
The CDB example allocation operation thread corresponding to described each CDB instance identification;
Control each operation thread and the CDB example that described each operation thread is corresponding is performed described batch operation type information pair The batch operation answered.
Method the most according to claim 1, it is characterised in that described operating result includes whether described at least two CDB example performs the status information of batch operation and/or the CDB that described each operation thread is corresponding to described each operation thread The implementation progress information of example.
Method the most according to claim 1, it is characterised in that in described at least two CDB example, each CDB example uses Identical database structure.
7. an example operation device, it is characterised in that including:
Acquisition request unit, for obtaining at least two cloud data base's CDB example for intended application of client transmission Batch operation is asked, and the batch operation type information of described at least two CDB example and described is carried in the request of described batch operation The CDB instance identification that at least two CDB example, each CDB example is corresponding;
Example operation unit, for batch operation class described in the CDB example executed in parallel corresponding to described each CDB instance identification The batch operation that type information is corresponding, to generate operating result;
Result transmitting element, for sending described operating result to described client.
Device the most according to claim 7, it is characterised in that described acquisition request unit is sent out specifically for receiving client The batch operation request of at least two cloud data base's CDB example for intended application sent, and described batch operation is asked Add to request queue.
Device the most according to claim 7, it is characterised in that the request of described batch operation is also carried for performing described batch The target web-privilege password Web of the batch operation that amount action type is corresponding;Described device also includes:
Password detector unit, be used for detecting described target web-privilege password Web whether with default access code matches;
If described example operation unit is specifically for described target web-privilege password Web and described default access code matches being detected, Then perform corresponding the criticizing of batch operation type information described in the CDB example executed in parallel corresponding to described each CDB instance identification The step of amount operation.
10. according to the device described in any one of claim 7-9, it is characterised in that described example operation unit includes:
Thread allocation unit, for the CDB example allocation operation thread corresponding to described each CDB instance identification;
Thread Control Unit, performs described for controlling each operation thread to the CDB example that described each operation thread is corresponding The batch operation that batch operation type information is corresponding, to generate operating result.
11. devices according to claim 7, it is characterised in that described operating result includes whether described at least two CDB example performs the status information of batch operation and/or the CDB that described each operation thread is corresponding to described each operation thread The implementation progress information of example.
12. devices according to claim 7, it is characterised in that in described at least two CDB example, each CDB example is adopted With identical database structure.
CN201610414009.6A 2016-06-12 2016-06-12 A kind of example operation method and device thereof Pending CN106095938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610414009.6A CN106095938A (en) 2016-06-12 2016-06-12 A kind of example operation method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610414009.6A CN106095938A (en) 2016-06-12 2016-06-12 A kind of example operation method and device thereof

Publications (1)

Publication Number Publication Date
CN106095938A true CN106095938A (en) 2016-11-09

Family

ID=57845508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610414009.6A Pending CN106095938A (en) 2016-06-12 2016-06-12 A kind of example operation method and device thereof

Country Status (1)

Country Link
CN (1) CN106095938A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858041A (en) * 2020-07-10 2020-10-30 中国联合网络通信集团有限公司 Data processing method and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0455440A2 (en) * 1990-04-30 1991-11-06 International Business Machines Corporation Method of operating a data processing system to perform database transactions
CN1479486A (en) * 2003-07-04 2004-03-03 李志猛 Paper electronic repaying card
CN1489067A (en) * 2002-09-09 2004-04-14 �Ҵ���˾ Data-transmitting method and system
US20120078929A1 (en) * 2010-09-29 2012-03-29 International Business Machines Corporation Utilizing Metadata Generated During XML Creation to Enable Parallel XML Processing
CN103761144A (en) * 2013-12-31 2014-04-30 曙光云计算技术有限公司 Batch operation management method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0455440A2 (en) * 1990-04-30 1991-11-06 International Business Machines Corporation Method of operating a data processing system to perform database transactions
CN1489067A (en) * 2002-09-09 2004-04-14 �Ҵ���˾ Data-transmitting method and system
CN1479486A (en) * 2003-07-04 2004-03-03 李志猛 Paper electronic repaying card
US20120078929A1 (en) * 2010-09-29 2012-03-29 International Business Machines Corporation Utilizing Metadata Generated During XML Creation to Enable Parallel XML Processing
CN103761144A (en) * 2013-12-31 2014-04-30 曙光云计算技术有限公司 Batch operation management method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
BRENT FISHER 等: "Computing the Distribution for the Number of Renewals with Bulk Arrivals", 《INFORMS JOURNAL ON COMPUTING》 *
RDS-PD: "RDS控制台再次发布更新,批量续费等功能上线", 《HTTPS://BBS.ALIYUN.COM/READ/180837.HTML》 *
朱生 等: "基于云的数据库的研究", 《电脑知识与技术》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858041A (en) * 2020-07-10 2020-10-30 中国联合网络通信集团有限公司 Data processing method and server
CN111858041B (en) * 2020-07-10 2023-06-30 中国联合网络通信集团有限公司 Data processing method and server

Similar Documents

Publication Publication Date Title
CN108510389A (en) Intelligent contract call method, equipment and readable storage medium storing program for executing based on block chain
CN107861760A (en) BIOS collocation method, terminal and server
CN108924250A (en) Service request processing method, device and computer equipment based on block chain
CN109040227A (en) Service request response method, device and computer equipment based on block chain
CN109656706A (en) Distributed task dispatching method, system, equipment and medium
CN108228363A (en) A kind of message method and device
CN106572146A (en) Message sending method and message sending device
CN111026994A (en) Task evaluation information pushing method, system, equipment and storage medium
CN106998314B (en) Account interaction method and device
CN107704310A (en) A kind of method, apparatus and equipment for realizing container cluster management
CN110020046A (en) A kind of data grab method and device
CN108965450A (en) Service request response method, device, computer equipment and storage medium
CN104239519B (en) A kind of information recommendation method and relevant device, system
CN107203408A (en) The methods, devices and systems of redirection
CN103713852A (en) Method for processing information, service platform and electronic devices
CN105656794B (en) Data distributing method, device and computer readable storage medium
CN109218447A (en) Media file distribution method and file distributing platform
CN106095938A (en) A kind of example operation method and device thereof
CN109508243A (en) Service request processing method, device, computer equipment and storage medium
CN104184685B (en) Data center resource distribution method, apparatus and system
CN106034148A (en) Fast information interaction method, local server, remote server and system
CN107180525A (en) Bluetooth control method, device, system and the relevant device of a kind of physical equipment
CN106790445A (en) Data transmission method, device and electronic equipment based on Samba agreements
CN107786308B (en) Data transmission method and terminal device
JP2021520580A (en) Message exchange methods and devices, computer programs, electronic devices

Legal Events

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

Application publication date: 20161109