A kind of transaction methods, device and electronic equipment
Technical field
This application involves field of computer technology more particularly to a kind of transaction methods, device and electronic equipment.
Background technique
Currently, generally require to keep accounts flowing water and flowing water of entering an item of expenditure in the accounts are by order number the progress amount of money, side in reconciliation treatment process
Verification to information such as, stroke counts, after these information are checked successfully, it is also necessary to which the state for the original document that change has been checked is beaten
Upper corresponding verification label.It is also desirable to which the summarized results statement according to reconciliation is adjusted correspondingly.It is entire processed
Journey often relates to the join-update operation to multiple tables of data, and in the treatment process in order to guarantee this multiple tables of data
Transaction consistency, therefore, it is necessary to submit in an affairs to the database for being stored with this multiple tables of data.
And when the pipelined data amount in tables of data increases with the increase of portfolio, the affairs of submission also will become major issue
Business, this will cause the shake even delay machine of database, and then influence being normally carried out for entire business.
The data processing method of big affairs is coped with therefore, it is necessary to a solution, at the data to avoid big affairs
Reason influences the performance of database.
Summary of the invention
The embodiment of the present application provides a kind of transaction methods, device and electronic equipment, big in the prior art for solving
The data processing of affairs influences the problem of performance of database.
In order to solve the above technical problems, the embodiment of the present application is achieved in that
In a first aspect, proposing a kind of transaction methods, it is applied to distributed data base, comprising:
Transaction resource to be processed is grouped in the management node of the distributed data base;
Based on the group result of the transaction resource to be processed, described in the distribution node reading of the distributed data base
The corresponding transaction resource data of grouping of distribution node distribution;
In response to the corresponding transactions requests operation of grouping of the distribution node to distribution, to institute on the distribution node
The corresponding transaction resource to be processed of grouping for stating distribution node distribution carries out corresponding transaction operation.
Second aspect proposes a kind of transacter, comprising:
Resource grouped element is grouped transaction resource to be processed for the management node in distributed data base;
Data-reading unit, for the group result based on the transaction resource to be processed, in the distributed data base
Distribution node read the corresponding transaction resource data of grouping of distribution node distribution;
Response unit is operated, for being operated in response to the corresponding transactions requests of grouping of the distribution node to distribution,
Corresponding transaction operation is carried out to the corresponding transaction resource to be processed of the grouping of distribution node distribution on the distribution node.
The third aspect proposes a kind of electronic equipment, which includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed
It manages device and executes following operation:
Transaction resource to be processed is grouped in the management node of distributed data base;
Based on the group result of the transaction resource to be processed, described in the distribution node reading of the distributed data base
The corresponding transaction resource data of grouping of distribution node distribution;
In response to the corresponding transactions requests operation of grouping of the distribution node to distribution, to institute on the distribution node
The corresponding transaction resource to be processed of grouping for stating distribution node distribution carries out corresponding transaction operation.
Fourth aspect proposes a kind of computer readable storage medium, the computer-readable recording medium storage one
Or multiple programs, one or more of programs are when the electronic equipment for being included multiple application programs executes, so that the electricity
Sub- equipment executes following operation:
Transaction resource to be processed is grouped in the management node of distributed data base;
Based on the group result of the transaction resource to be processed, described in the distribution node reading of the distributed data base
The corresponding transaction resource data of grouping of distribution node distribution;
In response to the corresponding transactions requests operation of grouping of the distribution node to distribution, to institute on the distribution node
The corresponding transaction resource to be processed of grouping for stating distribution node distribution carries out corresponding transaction operation.
As can be seen from the technical scheme provided by the above embodiments of the present application, the embodiment of the present application scheme at least has following one kind
Technical effect:
Before handle transaction resource to be processed, can distributed data base management node to acquisition to
Processing transaction resource is grouped, and the group result of the transaction resource to be processed is then based on, in the distribution of distributed data base
Node reads the corresponding transaction resource data of grouping of these distribution nodes distribution, is finally able to respond in distribution node to distribution
Grouping corresponding transactions requests operation, to the corresponding affairs to be processed of grouping of these distribution nodes distribution on distribution node
Resource carries out corresponding transaction operation, in this way by being grouped to transaction resource to be processed, and uses distributed data base
Distribution node is grouped corresponding resource to these and synchronizes processing, improves distributed data base in the data for coping with big affairs
Data-handling efficiency when processing avoids the problem that influencing its performance when the data of the big affairs of database processing.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen
Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is a kind of implementation process schematic diagram for transaction methods that one embodiment of this specification provides;
Fig. 2 is a kind of implementation process schematic diagram for account checking method that one embodiment of this specification provides;
Fig. 3 is the structural schematic diagram for the electronic equipment that one embodiment of this specification provides;
Fig. 4 is the structural schematic diagram for another electronic equipment that one embodiment of this specification provides;
Fig. 5 is the structural schematic diagram for the transacter that one embodiment of this specification provides;
Fig. 6 is the structural schematic diagram for the account checking apparatus that one embodiment of this specification provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one
Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
Below in conjunction with attached drawing, the technical scheme provided by various embodiments of the present application will be described in detail.
To solve the problems, such as that the data processing of big affairs in the prior art influences the performance of database, this specification embodiment
A kind of transaction methods are provided.The executing subject for the transaction methods that this specification embodiment provides can be, but not limited to take
Business device etc. can be configured as executing at least one of party's subtraction unit provided in an embodiment of the present invention, alternatively, this method
Executing subject can also be and be able to carry out distributed data base of this method itself.
For ease of description, hereafter executing subject in this way is to be able to carry out for the distributed data base of this method,
The embodiment of this method is introduced.It is appreciated that it is that one kind is shown that the executing subject of this method, which is distributed data base,
The explanation of example property, is not construed as the restriction to this method.
In the prior art, number is often fished for from tables of data by processing dimension when handling due to database data
According to being handled, big affairs can be caused when the data volume in tables of data is excessive, therefore existing resolving ideas will be handled
Data volume becomes smaller.Specifically, the big tables of data of data volume can be carried out to a point library and divide list processing, i.e., will originally deposit in one
Data in tables of data are stored in respectively by certain routing rule corresponding to multiple data of the same name in multiple databases
In table, when carrying out data processing, data is only obtained from a tables of data every time and the processing such as carry out data Machining Analysis, made
The data volume handled in each affairs becomes smaller, to avoid big affairs.
It is asked although above-mentioned point of library divides the processing scheme of table to alleviate the big affairs in data handling procedure to a certain extent
Topic, but since a point library divides table to be a kind of fixed configurations, i.e., before the development of data processing business, the quantity for the tables of data divided is
Through determination, when the quantity of divided tables of data is more, the data volume of individual data table is smaller, the rule of instant data processing business
The hidden danger that mould has growth to there will not be big affairs within a certain period of time, but also will increase overhead simultaneously, cause database to provide
The waste in source;And when the negligible amounts of divided tables of data, once the portfolio of data processing increases, in order to avoid big affairs
Point table must just be increased and stored data are migrated according to new routing rule, it is time-consuming and laborious.Meanwhile the processing of table is divided in point library
In scheme, routing rule does not ensure that the distribution of the data in each tables of data is substantially uniformity, is still likely to occur certain
The data volume very little of tables of data, and the situation that the data volume of certain tables of data is excessive, when this happens, big affairs are still
It is unavoidable.
In order to solve this problem, the transaction methods that this specification one embodiment provides can be based on grouping field
Even group-division, and the group result based on the transaction resource to be processed are carried out to transaction resource to be processed with group capacity, divided
The distribution node of cloth database reads the corresponding transaction resource data of grouping of distribution node distribution;It finally being capable of sync response
In the corresponding transactions requests operation of grouping of each distribution node to distribution, to the grouping pair of distribution node distribution on distribution node
The transaction resource to be processed answered carries out corresponding transaction operation.Accordingly even when the data quantitative change of transaction resource to be processed is very big,
Due to group capacity be it is preset, the size of the data volume of the corresponding transaction resource of each grouping, Neng Goutong will not be increased
Increase number of packet is crossed to avoid big affairs.
Specifically, the implementation process schematic diagram of this specification one embodiment transaction methods is as shown in Figure 1, comprising:
Step 110, transaction resource to be processed is grouped in the management node of distributed data base;
Wherein, affairs to be processed specifically can be with reconciliation affairs, correspondingly, and transaction resource to be processed specifically can be to reconciliation
List should can be a list to reconciliation list, and be also possible to be distributed in multiple lists in multiple databases.These lists
In storage have data, the data volume in these lists can be very big, for example can be the account current in bank, these bills
In data volume may be very huge, and certain type of service likely corresponds to multiple account currents.
After the grouping in order to avoid transaction resource to be processed, the data volume in each grouping is not of uniform size, and then generates
The hidden danger of big affairs, the embodiment of the present invention can be based on the grouping field of transaction resource to be processed and group capacity come to be processed
Transaction resource carries out even group-division, guarantees that the data volume in each grouping is consistent, therefore, the management node pair of distributed data base
Transaction resource to be processed is grouped.It specifically, can be firstly, determining that the grouping field of transaction resource to be processed and grouping are held
Amount;Then, the grouping field based on transaction resource to be processed, is ranked up transaction resource to be processed;Finally, being held based on grouping
Amount, is grouped the transaction resource to be processed after sequence.
It should be understood that for convenient for subsequent issued transaction, based on the grouping field of transaction resource to be processed, to affairs to be processed
Resource is ranked up, specifically can be with, the sequence that the grouping field based on transaction resource to be processed is gradually incremented by or gradually successively decreases,
Transaction resource to be processed is ranked up.
Wherein it is determined that the grouping field of resource to be processed, optionally, firstly, determining the type of service of resource to be processed;So
Afterwards, the type of service based on resource to be processed, determines the grouping field of resource to be processed.For example, if the business of resource to be processed
When type is that flowing water files this single list processing type service, grouping field can be the list id to reconciliation list;
And if the type of service of resource to be processed is that this needs of flowing water reconciliation are associated with keep accounts flowing water list and mechanism flowing water sheet disposal
Business when, due to keeping accounts flowing water and mechanism flowing water is usually checked according to order number, the flowing water list of same order number can
To be divided into the same grouping, therefore, grouping field is order number.
And determine the group capacity of the resource to be processed, it specifically can be firstly, determining the type of service of resource to be processed
With the performance for the database for storing resource to be processed;Then, type of service and storage resource to be processed based on resource to be processed
Database performance, determine the group capacity of resource to be processed.For example, if the better performances of database, are capable of handling data
Biggish data are measured, and the type of service of resource to be processed is that the reconciliation of bank's flowing water is this kind of, the corresponding data of the type of service
Amount is also larger, in this case, so that it may which the group capacity of resource to be processed is set as biggish number in a zone of reasonableness
Value.The group capacity can specifically be obtained according to many experiments, however, it is determined that the group capacity is too big or too small, can also be to this
The size of group capacity is adjusted.
Since transaction resource to be processed is usually data, these data are grouped, often to determine number in each grouping
According to coboundary and lower boundary, so as to transaction resource to be processed carry out issued transaction when, obtain corresponding packet data, because
This, is grouped the transaction resource to be processed after sequence.It optionally, then can be firstly, based on the affairs to be processed after sequence
Resource determines and is grouped corresponding initialization transaction resource and end transaction resource;Then, it is determined that the grouping field of initialization transaction resource
Transaction resource between the grouping field of end transaction resource is to be grouped corresponding grouping resources.
Wherein it is determined that the transaction resource between the grouping field of initialization transaction resource and the grouping field of end transaction resource
To be grouped corresponding grouping resources, specifically can then determine that grouping field is greater than from the transaction resource to be processed after sequence terminates
The grouping field of transaction resource and be less than or equal to initialization transaction resource grouping field transaction resource be grouping corresponding point
Group resource.
Optionally, the process that the above-mentioned transaction resource to be processed to after sequence is grouped specifically can be firstly, assign for i
Initial value 1;Then, it is based on group capacity N, given step is executed to the transaction resource to be processed circulation after sequence and is grouped,
Until point that the coboundary in the grouping field of the transaction resource in the i-th group of transaction resource determined is transaction resource to be processed
The maximum value of group field.
Wherein, above-mentioned given step includes:
Step i obtains (i-1) * N~i*N transaction resource from the transaction resource to be processed after sequence;Work as i=1
When, obtain the 0th~N number of transaction resource from the transaction resource to be processed after sequence, that is, the 1st~N number of transaction resource works as i
When=2, the N~2*N transaction resource is obtained from the transaction resource to be processed after sequence, and so on.
Step ii, determines coboundary and lower boundary from the grouping field of (i-1) * N~i*N transaction resource;Example
Such as, by taking grouping field is order number as an example, as i=2, the upper of the grouping field of the N~2*N transaction resource can be determined
Boundary is the grouping field M of the 2*N transaction resource2, lower boundary is the grouping field M of n-th transaction resource1, and each point
The grouping field of transaction resource in group is all larger than lower boundary and is less than or equal to coboundary.
Step iii, determine grouping field in the coboundary in step ii and the transaction resource to be processed between lower boundary,
The transaction resource to be processed that this is determined is determined as i-th group of transaction resource;
The value of above-mentioned i is updated to i+1 by step iv.
The group result determined is as shown in table 1 below, and in table 1, all flowing water lists are divided by grouping field for n
+ 1 grouping.According to this grouping algorithm, it is ensured that packet size is uniform, and being grouped interior data volume is group capacity, even if working as industry
When business amount changes, the data volume in each grouping can't change therewith, and only number of packet changes.
1 group result example of table
Packet numbering |
Lower boundary |
Coboundary |
1 |
0 |
M1 |
2 |
M1 |
M2 |
3 |
M2 |
M3 |
… |
… |
… |
n |
Mn-1 |
Mn |
n+1 |
Mn+1 |
|
Step 120, the group result based on transaction resource to be processed reads distribution in branch's node of distributed data base
The corresponding transaction resource data of grouping of node distribution;
Based on the group result of transaction resource to be processed, distribution node distribution is read in the distribution node of distributed data base
The corresponding transaction resource data of grouping, specifically can be to lead to firstly, the number of packet based on the transaction resource to be processed after grouping
Cross the subtask that management node creation corresponds to number of packet;Then, the grouping based on the corresponding initialization transaction resource in subtask
The grouping field of field and end transaction resource reads the subtask of distribution node distribution in the distribution node of distributed data base
Corresponding transaction resource data.
By taking flowing water reconciliation as an example, obtained first to the number of packet after the grouping of reconciliation list, and create and correspond to this point
The subtask of group quantity;Then, multiple servers (i.e. distribution node) concurrently fish for subtask, obtain fished for subtask pair
Coboundary and the lower boundary of the packet numbering and corresponding grouping field answered;Finally, fishing for grouping field to reconciliation list
It is handled greater than lower boundary and less than or equal to the data of upper boundary values.
Step 130, operated in response to the corresponding transactions requests of grouping of the distribution node to distribution, on distribution node to point
The corresponding transaction resource to be processed of the grouping of cloth node distribution carries out corresponding transaction operation.
Subtask is created for each grouping due to above-mentioned, for convenient for transaction operation, therefore in response to distribution node
Specifically to the operation of the grouping of distribution corresponding transactions requests, that is, it is corresponding in response to subtask of the distribution node to distribution
Transactions requests operation, the corresponding transaction resource to be processed in subtask of distribution node distribution is carried out on distribution node corresponding
Transaction operation.
It is operated in response to the corresponding transactions requests of grouping of the distribution node to distribution, to distribution node on distribution node
After the corresponding transaction resource to be processed of the grouping of distribution carries out corresponding transaction operation, counts and locate for the ease of follow-up data
Reason, can also update the processing status of transaction resource to be processed.Such as it can be complete based on the implementing result of subtask, such as reconciliation
At updating the state of each subtask, then update based on the state of all subtasks the processing shape of entire transaction resource to be processed
State.By taking reconciliation affairs as an example, corresponding reconciliation can be stamped to each list for completing reconciliation operation and marked, then be based on all tables
Single state updates the states of entire reconciliation affairs.Further, it is also possible to affairs to be processed be submitted, to complete to the thing to be processed
The operation of business.
It should be noted that the two are walked processing status of the above-mentioned update to processing transaction resource with affairs to be processed are submitted
Rapid execution sequence is not especially limited in embodiments of the present invention.
Before handle transaction resource to be processed, can distributed data base management node to acquisition to
Processing transaction resource is grouped, and the group result of the transaction resource to be processed is then based on, in the distribution of distributed data base
Node reads the corresponding transaction resource data of grouping of these distribution nodes distribution, is finally able to respond in distribution node to distribution
Grouping corresponding transactions requests operation, to the corresponding affairs to be processed of grouping of these distribution nodes distribution on distribution node
Resource carries out corresponding transaction operation, in this way by being grouped to transaction resource to be processed, and uses distributed data base
Distribution node is grouped corresponding resource to these and synchronizes processing, improves distributed data base in the data for coping with big affairs
Data-handling efficiency when processing avoids the problem that influencing its performance when the data of the big affairs of database processing.
To solve the problems, such as that the data processing of big affairs in the prior art influences the performance of database, one reality of this specification
It applies example and also proposes a kind of account checking method, as shown in Fig. 2, being the implementation process schematic diagram of this method, comprising:
Step 210, reconciliation list is treated in the management node of distributed data base to be grouped;
Optionally, reconciliation list is treated in the management node of distributed data base to be grouped, it specifically can be firstly, determining
Grouping field and group capacity to reconciliation list;Then, based on the grouping field to reconciliation list, the progress of reconciliation list is treated
Sequence;Finally, group capacity is based on, to being grouped after sequence to reconciliation list.
Optionally, to being grouped to reconciliation list after sequence, specifically can with firstly, based on after sequence to reconciliation table
It is single, it determines and is grouped corresponding starting form data and end form data;Determine the grouping field and end of starting form data
Form data between the grouping field of form data is to be grouped corresponding packet data.
Optionally it is determined that the grouping field to reconciliation list, it specifically can be firstly, determining the service class to reconciliation list
Type;Then, based on the type of service to reconciliation list, the grouping field to reconciliation list is determined.
Optionally it is determined that the group capacity to reconciliation list, it specifically can be firstly, determining the type of service to reconciliation list
Performance with storage to the database of reconciliation list;Then, based on to reconciliation list type of service and storage to reconciliation list
Database performance, determine the group capacity of resource to be processed.
Optionally it is determined that the list between the grouping field of starting form data and the grouping field for terminating form data is
It is grouped corresponding packet data, it specifically can be from the form data to the end of determining that grouping field is greater than in reconciliation list after sequence
Grouping field and to be less than or equal to the transaction resource of the grouping field of starting form data be to be grouped corresponding packet data.
Above-mentioned grouping process, specifically can be firstly, assign initial value 1 for i;Then, it is based on group capacity N, after sequence
To reconciliation list recycle execute given step be grouped, until the form data in the i-th group of form data determined
Grouping field is the maximum value of the grouping field to reconciliation list.
Wherein, above-mentioned given step includes: firstly, from a to obtain (i-1) * N~i*N in reconciliation list after sequence
Form data;Then, coboundary and lower boundary are determined from the grouping field of (i-1) * N~i*N form data;Most
Afterwards, by the grouping field to reconciliation list after sequence in the coboundary of the grouping field of (i-1) * N~i*N form data
Form data between lower boundary is determined as i-th group of data;Again, the value of i is updated to i+1.
Step 220, based on the group result to reconciliation list, distribution node is read in the distribution node of distributed data base
The corresponding form data of the grouping of distribution;
Optionally, based on the group result to reconciliation list, distribution node is read in the distribution node of distributed data base
The corresponding form data of the grouping of distribution, specifically, firstly, being passed through based on the number of packet to reconciliation list after grouping
Management node creation corresponds to the subtask of number of packet;Then, the grouping word based on the corresponding starting form data in subtask
Section and the grouping field for terminating form data read the subtask pair of distribution node distribution in the distribution node of distributed data base
The form data answered.
Step 230, operated in response to the corresponding transactions requests of grouping of the distribution node to distribution, on distribution node to point
The grouping of cloth node distribution is corresponding to carry out corresponding transaction operation to reconciliation list.
In response to the corresponding transactions requests operation of grouping of the distribution node to distribution, to distribution node point on distribution node
The grouping matched is corresponding specifically can be in response to distribution node to distribution to the corresponding transaction operation of reconciliation list progress
Subtask corresponding transactions requests operation, it is corresponding to reconciliation list to the subtask of distribution node distribution on distribution node
Carry out corresponding transaction operation.
It is operated in response to the corresponding transactions requests of grouping of the distribution node to distribution, to distribution node on distribution node
After the corresponding corresponding transaction operation to the progress of reconciliation list of the grouping of distribution, the processing shape to reconciliation list can also be updated
State.Further, it is also possible to submit this to reconciliation list.
The specific implementation of embodiment illustrated in fig. 2 correlation step can refer to the specific of step corresponding in embodiment illustrated in fig. 1
It realizes, details are not described herein for this specification one or more embodiment.
Before treating reconciliation list and being handled, can distributed data base management node to acquisition to reconciliation
List is grouped, and is then based on the group result for waiting for reconciliation list, reads these in the distribution node of distributed data base
The corresponding form data of grouping of distribution node distribution, is finally able to respond affairs corresponding in grouping of the distribution node to distribution
Request operation carries out corresponding thing to the corresponding transaction resource to be processed of the grouping of these distribution nodes distribution on distribution node
Business operation, is grouped by treating reconciliation list in this way, and using the distribution node of distributed data base to these groupings pair
The list answered synchronizes processing, improves data processing of the distributed data base in the biggish list reconciliation of reply data volume
Efficiency avoids the problem that influencing its performance when the data of this big affairs of database processing.
Fig. 3 is the structural schematic diagram for the electronic equipment that one embodiment of this specification provides.Referring to FIG. 3, in hardware
Level, the electronic equipment include processor, optionally further comprising internal bus, network interface, memory.Wherein, memory can
It can include memory, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-easy
The property lost memory (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible to
Including hardware required for other business.
Processor, network interface and memory can be connected with each other by internal bus, which can be ISA
(Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral
Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard
Architecture, expanding the industrial standard structure) bus etc..The bus can be divided into address bus, data/address bus, control always
Line etc..Only to be indicated with a four-headed arrow in Fig. 3, it is not intended that an only bus or a type of convenient for indicating
Bus.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating
Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from the then operation into memory of corresponding computer program is read in nonvolatile memory, in logical layer
The associated apparatus of resource increment object and resource object is formed on face.Processor executes the program that memory is stored, and specific
For performing the following operations:
Transaction resource to be processed is grouped in the management node of the distributed data base;
Based on the group result of the transaction resource to be processed, described in the distribution node reading of the distributed data base
The corresponding transaction resource data of grouping of distribution node distribution;
In response to the corresponding transactions requests operation of grouping of the distribution node to distribution, to institute on the distribution node
The corresponding transaction resource to be processed of grouping for stating distribution node distribution carries out corresponding transaction operation.
Transaction methods disclosed in the above-mentioned embodiment illustrated in fig. 1 such as this specification can be applied in processor, or
It is realized by processor.Processor may be a kind of IC chip, the processing capacity with signal.During realization, on
Each step for stating method can be completed by the integrated logic circuit of the hardware in processor or the instruction of software form.It is above-mentioned
Processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processes
Device (Network Processor, NP) etc.;Can also be digital signal processor (Digital Signal Processor,
DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate
Array (Field-Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or crystalline substance
Body pipe logical device, discrete hardware components.It may be implemented or execute and is in this specification one or more embodiment disclosed
Each method, step and logic diagram.General processor can be microprocessor or the processor be also possible to it is any conventional
Processor etc..The step of method in conjunction with disclosed in this specification one or more embodiment, can be embodied directly in hardware decoding
Processor executes completion, or in decoding processor hardware and software module combination execute completion.Software module can position
In random access memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register
In the storage medium of equal this fields maturation.The storage medium is located at memory, and processor reads the information in memory, in conjunction with it
Hardware completes the step of above-mentioned transaction methods.
The electronic equipment can also carry out the transaction methods of Fig. 1, and details are not described herein for this specification.
Certainly, other than software realization mode, other implementations are not precluded in the electronic equipment of this specification, such as
Logical device or the mode of software and hardware combining etc., that is to say, that the executing subject of following process flow is not limited to each
Logic unit is also possible to hardware or logical device.
Fig. 4 is the structural schematic diagram of one embodiment electronic equipment of this specification.Referring to FIG. 4, in hardware view, it should
Electronic equipment includes processor, optionally further comprising internal bus, network interface, memory.Wherein, memory may be comprising interior
It deposits, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-volatile memories
Device (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible that other
Hardware required for business.
Processor, network interface and memory can be connected with each other by internal bus, which can be ISA
(Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral
Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard
Architecture, expanding the industrial standard structure) bus etc..The bus can be divided into address bus, data/address bus, control always
Line etc..Only to be indicated with a four-headed arrow in Fig. 4, it is not intended that an only bus or a type of convenient for indicating
Bus.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating
Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from the then operation into memory of corresponding computer program is read in nonvolatile memory, in logical layer
The device based on resource object selection resource increment object is formed on face.Processor executes the program that memory is stored, and has
Body is for performing the following operations:
Reconciliation list is treated in the management node of the distributed data base to be grouped;
Based on the group result to reconciliation list, distribution node is read in the distribution node of the distributed data base
The corresponding form data of the grouping of distribution;
In response to the corresponding transactions requests operation of grouping of the distribution node to distribution, to institute on the distribution node
The grouping for stating distribution node distribution is corresponding to the corresponding transaction operation of reconciliation list progress.
Account checking method disclosed in the above-mentioned embodiment illustrated in fig. 2 such as this specification can be applied in processor, or by
Device is managed to realize.Processor may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side
Each step of method can be completed by the integrated logic circuit of the hardware in processor or the instruction of software form.Above-mentioned place
Reason device can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit
(Network Processor, NP) etc.;Can also be digital signal processor (Digital Signal Processor,
DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate
Array (Field-Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or crystalline substance
Body pipe logical device, discrete hardware components.It may be implemented or execute and is in this specification one or more embodiment disclosed
Each method, step and logic diagram.General processor can be microprocessor or the processor be also possible to it is any conventional
Processor etc..The step of method in conjunction with disclosed in this specification one or more embodiment, can be embodied directly in hardware decoding
Processor executes completion, or in decoding processor hardware and software module combination execute completion.Software module can position
In random access memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register
In the storage medium of equal this fields maturation.The storage medium is located at memory, and processor reads the information in memory, in conjunction with it
Hardware completes the step of above-mentioned account checking method.
The electronic equipment can also carry out the account checking method of Fig. 2, and details are not described herein for this specification.
Certainly, other than software realization mode, other implementations are not precluded in the electronic equipment of this specification, such as
Logical device or the mode of software and hardware combining etc., that is to say, that the executing subject of following process flow is not limited to each
Logic unit is also possible to hardware or logical device.
Fig. 5 is the structural schematic diagram for the transacter 500 that this specification provides.Referring to FIG. 5, real in a kind of software
It applies in mode, transacter 500 may include resource grouped element 501, data-reading unit 502 and operation response unit
503, in which:
Resource grouped element 501 is grouped transaction resource to be processed in the management node of distributed data base;
Data-reading unit 502, based on the group result of the transaction resource to be processed, in the distributed data base
Distribution node reads the corresponding transaction resource data of grouping of the distribution node distribution;
Response unit 503 is operated, is operated in response to the corresponding transactions requests of grouping of the distribution node to distribution, in institute
It states and corresponding transaction operation is carried out to the corresponding transaction resource to be processed of the grouping of distribution node distribution on distribution node.
In one embodiment, the resource grouped element 501,
Determine the grouping field and group capacity of the transaction resource to be processed;
Based on the grouping field of the transaction resource to be processed, the transaction resource to be processed is ranked up;
Based on the group capacity, the transaction resource to be processed after the sequence is grouped.
In one embodiment, the resource grouped element 501,
Based on the transaction resource to be processed after the sequence, determines and be grouped corresponding initialization transaction resource and end transaction money
Source;
Determine that the transaction resource between the grouping field of initialization transaction resource and the grouping field of end transaction resource is point
The corresponding grouping resources of group.
In one embodiment, the data-reading unit 502,
Based on the number of packet of the transaction resource to be processed after the grouping, institute is corresponded to by management node creation
State the subtask of number of packet;
The grouping field of grouping field and end transaction resource based on the corresponding initialization transaction resource in the subtask,
The distribution node of the distributed data base reads the corresponding transaction resource data in subtask of the distribution node distribution.
In one embodiment, the resource grouped element 501,
Determine the type of service of the resource to be processed;
Based on the type of service of the resource to be processed, the grouping field of the resource to be processed is determined.
In one embodiment, the resource grouped element 501,
It determines the type of service of the resource to be processed and stores the performance of the database of the resource to be processed;
The performance of the database of type of service and the storage resource to be processed based on the resource to be processed, determines institute
State the group capacity of resource to be processed.
In one embodiment, the grouping in the operation response unit 503 in response to the distribution node to distribution
Corresponding transactions requests operation provides the corresponding affairs to be processed of the grouping of distribution node distribution on the distribution node
After source carries out corresponding transaction operation, described device further include:
State updating unit 504 updates the processing status of the transaction resource to be processed;
Affairs submit unit 505, submit the affairs to be processed.
The method that transacter 500 can be realized the embodiment of the method for Fig. 1, specifically refers to embodiment illustrated in fig. 1
Transaction methods, repeat no more.
Fig. 6 is the structural schematic diagram for the account checking apparatus 600 that this specification provides.Referring to FIG. 6, in a kind of software implementation side
In formula, account checking apparatus 600 may include list grouped element 601, data-reading unit 602 and operation response unit 603, in which:
List grouped element 601 is treated reconciliation list in the management node of distributed data base and is grouped;
Data-reading unit 602, based on the group result to reconciliation list, in the distribution of the distributed data base
Node reads the corresponding form data of grouping of distribution node distribution;
Response unit 603 is operated, is operated in response to the corresponding transactions requests of grouping of the distribution node to distribution, in institute
It states corresponding to the grouping of distribution node distribution to the corresponding transaction operation of reconciliation list progress on distribution node.
In one embodiment, the list grouped element 601:
Determine the grouping field and group capacity to reconciliation list;
Based on the grouping field to reconciliation list, it is ranked up to described to reconciliation list;
Based on the group capacity, to being grouped to reconciliation list after the sequence.
In one embodiment, the list grouped element 601:
Based on, to reconciliation list, determination is grouped corresponding starting form data and terminates form data after the sequence;
Determine that the form data between the grouping field of starting form data and the grouping field of end form data is point
The corresponding packet data of group.
In one embodiment, the data-reading unit 602:
Based on the number of packet to reconciliation list after the grouping, correspond to described point by management node creation
The subtask of group quantity;
The grouping field of grouping field and end form data based on the corresponding starting form data in the subtask,
The distribution node of the distributed data base reads the corresponding form data in subtask of the distribution node distribution.
In one embodiment, the list grouped element 601:
Determine the type of service to reconciliation list;
Based on the type of service to reconciliation list, the grouping field to reconciliation list is determined.
In one embodiment, the list grouped element 601:
Determine the performance of the type of service to reconciliation list and the storage database to reconciliation list;
Performance based on the type of service to reconciliation list and the storage database to reconciliation list, determines institute
State the group capacity of resource to be processed.
In one embodiment, the grouping in the operation response unit 603 in response to the distribution node to distribution
Corresponding transactions requests operation provides the corresponding affairs to be processed of the grouping of distribution node distribution on the distribution node
After source carries out corresponding transaction operation, described device further include:
State updating unit 604 updates the processing status to reconciliation list.
Affairs submit unit 605, submit described to reconciliation list.
The method that account checking apparatus 600 can be realized the embodiment of the method for Fig. 2 specifically refers to pair of embodiment illustrated in fig. 2
Account method, repeats no more.
In short, being not intended to limit the protection of this specification the foregoing is merely the preferred embodiment of this specification
Range.With within principle, made any modification, changes equivalent replacement all spirit in this specification one or more embodiment
Into etc., it should be included within the protection scope of this specification one or more embodiment.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.