CN110287264A - Batch data update method, device and the system of distributed data base - Google Patents

Batch data update method, device and the system of distributed data base Download PDF

Info

Publication number
CN110287264A
CN110287264A CN201910577505.7A CN201910577505A CN110287264A CN 110287264 A CN110287264 A CN 110287264A CN 201910577505 A CN201910577505 A CN 201910577505A CN 110287264 A CN110287264 A CN 110287264A
Authority
CN
China
Prior art keywords
distributed
data
business
distribution mode
instruction
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
CN201910577505.7A
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910577505.7A priority Critical patent/CN110287264A/en
Publication of CN110287264A publication Critical patent/CN110287264A/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/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • G06F16/2386Bulk updating operations
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the present application discloses a kind of batch data update method of distributed data base, including, data in response to receiving business end update request, and the distribution mode for updating to data and requesting the relevant distributed table of corresponding business is provided in distributed data base to business end;The processing batch instruction generated in response to receiving business end according to the distribution mode of distributed table sends processing batch instruction to the database of distributed storage table according to the distribution mode of distributed table.It does not include the location information of distributed table in the distribution mode of distributed table, the distribution mode of distributed table is exposed to business, has not only met race batch task to race batch number of concurrent demand for control, but also can accomplish that distributed table partition information is transparent to business;Distributed data base supports primary interaction to receive a plurality of processing batch instruction, reduces network interaction number, is promoted and runs batch efficiency.

Description

Batch data update method, device and the system of distributed data base
Technical field
The invention relates to database technical fields, and in particular to a kind of batch data update of distributed data base Method, apparatus and system.
Background technique
Distributed relation database (DRDS) be a kind of support data level split, horizontal extension, it is transparent to business, zero The distributed data base of sharing architecture.Business uses complete logic table access DRDS, DRDS as using single machine database Library table is uniformly split to multiple physical partitioning nodes according to certain fractionation rule, copes with the high concurrent access of mass data Scene, to effectively promote database storage capacity and readwrite performance.
As private clound exports, DRDS is widely used in various industries, is especially transformed in core banking system distributionization, The process of replacement traditional database manufacturer plays an important role.Compared to the data centralised storage of traditional database, DRDS will Data level is split, distributed storage, and DRDS is to reduce core banking system distribution retrofit work, and many adaptation works have also been made Make, such as race batch traffic of the core banking system under data distribution formula scene.
Summary of the invention
The embodiment of the present application proposes the method and device of detection client normal users.
In a first aspect, the embodiment of the present application provides a kind of batch data update method of distributed data base, including, it rings The data that Ying Yu receives business end update request, provide to business end corresponding with data update request in distributed data base The distribution mode of the relevant distributed table of business;Batch generated in response to receiving business end according to the distribution mode of distributed table Process instruction sends processing batch instruction to the database of distributed storage table according to the distribution mode of distributed table.
In some embodiments, the above-mentioned data in response to receiving business end update request, provide distribution to business end The distribution mode for requesting the relevant distributed table of corresponding business is updated to data in formula database, comprising: in response to receiving The data at business end update request, provide to update to data in distributed data base to business end and request corresponding business relevant Distributed table divides table number, divides table number and divides table content;It is above-mentioned in response to receiving business end according to the distribution of distributed table The processing batch instruction that mode generates sends batch processing to the database of distributed storage table according to the distribution mode of distributed table and refers to It enables, comprising: the processing batch instruction generated in response to receiving business end according to the distribution mode of distributed table, according to distributed table Divide table number, divide table number and divide table content to the database of distributed storage table send processing batch instruction.
In some embodiments, processing batch instruction includes: inserting instruction, deletes instruction, more new command.
Second aspect, the embodiment of the present application provide a kind of distributed data base, wherein distributed data base includes: generation Manage middleware, in response to receive business end data update request, to business end provide distributed data base in number According to the distribution mode for updating the relevant distributed table of the corresponding business of request;In response to receiving business end according to distributed table Distribution mode generate processing batch instruction, according to the distribution mode of distributed table to the database of distributed storage table send batch at Reason instruction;Database is used for distributed storage table, and in response to processing batch instruction, updates distributed table.
In some embodiments, Proxy middleware, for updating request in response to the data for receiving business end, to business End provide in distributed data base updated to data request the relevant distributed table of corresponding business divide table number, divide table number and Point table content response is in the processing batch instruction for receiving business end and being generated according to the distribution mode of distributed table, according to distributed table Divide table number, divide table number and divide table content to the database of distributed storage table send processing batch instruction.
In some embodiments, processing batch instruction includes: inserting instruction, deletes instruction, more new command.
The third aspect, the embodiment of the present application provide a kind of batch data more new system of distributed data base, wherein are System includes: business end, for sending data update relevant to business to distributed data base and asking in response to receiving business It asks, obtains the distribution mode for the distributed table relevant to business that distributed data base provides;According to the distribution side of distributed table Formula sends processing batch instruction to distributed data base;Distributed data base, distributed data base include: Proxy middleware, are used for Data in response to receiving business end update request, provide to business end corresponding with data update request in distributed data base The relevant distributed table of business distribution mode;It is generated in response to receiving business end according to the distribution mode of distributed table Processing batch instruction sends processing batch instruction to the database of distributed storage table according to the distribution mode of distributed table;Database, For distributed storage table, and in response to processing batch instruction, distributed table is updated.
Fourth aspect, the embodiment of the present application provide a kind of batch data updating device of distributed data base, wherein dress Setting includes: distribution mode sharing unit, is configurable for updating request in response to the data for receiving business end, to business end The distribution mode for updating to data and requesting the relevant distributed table of corresponding business is provided in distributed data base;More new command hair Unit is sent, the processing batch instruction generated in response to receiving business end according to the distribution mode of distributed table is configurable for, Processing batch instruction is sent to the database of distributed storage table according to the distribution mode of distributed table.
In some embodiments, distribution mode sharing unit is configurable for the data in response to receiving business end It updates and requests, provide to update to data in distributed data base to business end and request dividing for the relevant distributed table of corresponding business Table number divides table number and divides table content;Update instruction sending unit, be configurable in response to receive business end according to divide The processing batch instruction that the distribution mode of cloth table generates, dividing table number, divide table number and dividing table content to depositing according to distributed table The database for storing up distributed table sends processing batch instruction.
In some embodiments, above-mentioned processing batch instruction includes: inserting instruction, deletes instruction, more new command.
5th aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, In, the method as described in such as implementation any in first aspect is realized when program is executed by processor.
6th aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Storage dress Set, be stored thereon with one or more programs, when one or more programs are executed by one or more processors so that one or Multiple processors realize the method as described in implementation any in first aspect.
Batch data update method, device and the system of distributed data base provided by the embodiments of the present application, in response to The data for receiving business end update request, provide business corresponding with data update request in distributed data base to business end The distribution mode of relevant distribution table;The batch processing generated in response to receiving business end according to the distribution mode of distributed table Instruction sends processing batch instruction to the database of distributed storage table according to the distribution mode of distributed table.Point of distributed table It does not include the location information of distributed table in mode for cloth, the distribution mode of distributed table is exposed to business, has both met race batch and has appointed Business can accomplish that distributed table partition information is transparent to business to race batch number of concurrent demand for control;Distributed data base supports branch It holds primary interaction and receives a plurality of processing batch instruction, reduce network interaction number, promoted and run batch efficiency.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the application can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for the distributed data base batch updating data of the application;
Fig. 3 is the schematic diagram according to the application scenarios of the method for the distributed data base batch updating data of the present embodiment;
Fig. 4 is the process according to another embodiment of the method for the distributed data base batch updating data of the application Figure;
Fig. 5 is the structure chart according to one embodiment of the distributed data base of the application;
Fig. 6 is the structure chart according to one embodiment of the device of the distributed data base batch updating data of the application;
Fig. 7 is the structure chart according to one embodiment of the system of the distributed data base batch updating data of the application;
Fig. 8 is adapted for the structural schematic diagram for realizing the computer system of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In a typical configuration of this application, business end, server-side include one or more processors (CPU), it is defeated Enter/output interface, network interface and memory.Memory may include the non-volatile memory in computer-readable medium, at random The forms such as memory (RAM) and/or Nonvolatile memory of access, such as read-only memory (ROM) or flash memory (flashRAM).Memory It is the example of computer-readable medium.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media, can be by any side Method or technology realize that information stores.Information can be computer readable instructions, data structure, the module of program or other numbers According to.The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory techniques, CD-ROM are read-only Memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or its His magnetic storage device or any other non-transmission medium, can be used for storing and can be accessed by a computing device information.According to this Defining in text, computer-readable medium do not include non-temporary computer readable media (transitorymedia), such as the number of modulation It is believed that number and carrier wave.
Fig. 1 is shown can be using the batch data update method or device of the distributed data base of embodiment of the disclosure Exemplary architecture 100.
As shown in Figure 1, system architecture 100 may include database 101,102,103, network 104 and Proxy middleware 105.Network 104 between database 101,102,103 and Proxy middleware 105 to provide the medium of communication link.Network 104 may include various connection types, such as wired, wireless communication link or fiber optic cables etc..
Business end can carry out data interaction by Proxy middleware 105 and database 101,102,103, to be written or read Take message etc..Various data-management applications, such as data base management system etc. can be installed on database 101,102,103.
Database 101,102,103 can be hardware, be also possible to software, be used for distributed storage table, and in response to criticizing Process instruction updates distributed table.When database 101,102,103 is hardware, can be with data storage and data pipe The various electronic equipments of function are managed, including but is not limited to is database server, memory etc..When database 101,102, 103 when being software, may be mounted in above-mentioned cited electronic equipment.It may be implemented into for example for providing distributed clothes The multiple softwares or software module of business, also may be implemented into single software or software module.It is not specifically limited herein.
Proxy middleware 105 is the middleware for supporting point library to divide table, read and write abruption, and it is equal that data store internal load may be implemented Weighing apparatus.In the disclosure, Proxy middleware 105 can be hardware, be also possible to software.It, can be with when Proxy middleware 105 is hardware It is the various electronic equipments for dividing table, read and write abruption function with point library.When Proxy middleware 105 is software, may be mounted at In above-mentioned electronic equipment.
It should be understood that the number of the database in Fig. 1 is only schematical.According to needs are realized, can have any The database of number.
With continued reference to Fig. 2, a reality of the batch data update method according to the distributed data base of the application is shown Apply the process 200 of example, comprising the following steps:
Step 201: in response to receive business end data update request, to business end provide distributed data base in Data update the distribution mode for requesting the relevant distributed table of corresponding business.
In the present embodiment, business end can receive various business, such as race batch traffic, the shopping system of banking system Sales volume statistical service of system etc..By taking the race batch traffic of banking system as an example, so-called bank, which runs, to be criticized, and refers to checkout and batch, Main is to generate general ledger, carries out total score verification.Bank runs batch task and reflects that the operation on database be to distributed table All databases of full table are updated operation, including insertion, delete, the operation such as update.
In the present embodiment, for distributed data base system usually using lesser computer system, every computer can be independent It is placed on a place, may all there is DBMS (Database Management System, data base administration system in every computer System) a complete copy copy or copied part copy, and with oneself part database, positioned at different location Many computers are interconnected by network, collectively constitute one it is complete, global concentrate in logic, be physically distributed it is big Type database.In Internet era, the bottleneck problem that the storage of mass data becomes design of database system with access and uses, To solve this problem, it is stored in multiple databases by the dispersion of the data that will be present in the same database, to reach point The effect of throwaway platform apparatus of load alleviates access and the operating pressure of single database.
Data in Database Systems are distributed in multiple databases by way of cutting, and data cutting is according to its cutting The type of rule, can be divided into two kinds of cutting modes of vertical cutting and horizontal cutting.Vertical cutting is according to different in database Table is sliced on different databases.One database is made of many tables, and each table corresponds to different business, Vertical cutting, which refers to, classifies table according to business, is distributed to above different databases, so also just by data in other words Pressure is shared above different data Kukus.According to the logical relation of the data in table, by the data in the same table according to Certain condition is split to above more databases, and this cutting is referred to as the horizontal cutting of data.
Relative to vertical cutting, horizontal cutting, which is not made table, classifies, and divides according to certain rule of certain field It is scattered among multiple databases, includes a part of data in each table.In simple terms, we can be by the horizontal cutting sub-argument of data Certain rows in table are exactly sliced into a database to be the cutting according to data line by solution, and other certain rows are cut It assigns in other databases.
By vertical cutting and horizontal cutting, distributed table is stored in different databases.In response to receiving industry The data at end of being engaged in update request, the executing subject (such as Proxy middleware 105) of the present embodiment according to and data update request pair Distribution table relevant to the business in the acquisition of information distributed data base for the business answered, and by the distribution mode of distributed table It is exposed to business end, the business end of allowing knows the distribution mode of distributed table relevant to above-mentioned business.In the present embodiment, exposure is Refer to that the distribution mode of distributed table is presented to business end by the executing subject (such as Proxy middleware 105) of the present embodiment, so that The distribution mode of business end aware distribution formula table.
Step 202: the processing batch instruction generated in response to receiving business end according to the distribution mode of distributed table, according to The distribution mode of distributed table sends processing batch instruction to the database of distributed storage table.
In the present embodiment, the executing subject (such as Proxy middleware 105) of the present embodiment is for distributed table storage location. Business end generates corresponding errorlevel according to the distribution mode of distributed table relevant to the business received, and agency is intermediate Part is sent to the database of corresponding distributed storage table after receiving errorlevel after parsing processing batch instruction, number It can be updated according to instruction after receiving corresponding processing batch instruction according to library.
In some alternative embodiments, it when the related data of business is less, can store in a distributed table In.After industry termination receives the processing batch instruction about the business, Proxy middleware will store the distributed table of the business datum In content exposure give business end, business end generates relevant processing batch instruction according to the content in distributed table, through in agency Between part be sent to store the distribution table database execution.
In some alternative embodiments, processing batch instruction passes through SQL (Structured Query Language, knot Structure query language) description, SQL is a kind of data base querying and programming language, for accessing data and inquiry, update With administrative relationships Database Systems.
It does not include the location information of distributed table in the present embodiment, in the distribution mode of distributed table, that is, do not know at business end Road distribution table is distributed in that database.The distribution mode of distributed table is exposed to business, and business end passes through distributed table Distribution mode generate processing batch instruction, processing batch instruction is sent to corresponding database, both met race by Proxy middleware The task of criticizing can accomplish that distributed table partition information is transparent to business to race batch number of concurrent demand for control, that is, processing batch instruction It executes database to be determined by Proxy middleware, the processing batch instruction that business end issues need not become with the data distribution of distributed table More change;Distributed data base supports primary interaction to receive a plurality of processing batch instruction, reduces network interaction number, is promoted Run batch efficiency.
With continued reference to Fig. 3, that schematically shows an application scenarios of distributed data base batch updating data.Point Storage service A related data is corresponded to as unit of the moon in each distributed table of cloth database.Business end 301 receives client's The task of the related data in deletion business A2019 January.After receiving above-mentioned business, business end 302 is to Proxy middleware 302 send the data update request about above-mentioned business;Proxy middleware 302 is updated in response to the data requests, and obtains storage The related data in business A2019 January divides that table is point table 306 and that divides table 306 be stored as database 304, and to industry What the exposure of business end obtained divides the related data in January of business A2019 in table.Business end is generated corresponding by the content obtained Instruction is deleted, and is sent to Proxy middleware for instruction is deleted.Proxy middleware is sent to instruction is deleted to database 304, Database 304 deletes the related data in the business A2019 January divided in table 306, divides table 307 after obtaining execution business A.
With continued reference to Fig. 4, show according to the batch data update method of the distributed data base of the application another The process 400 of embodiment, comprising the following steps:
Step 401: in response to receive business end data update request, to business end provide distributed data base in Data, which update, requests dividing table number, divide table number and dividing table content for the relevant distributed table of corresponding business.
In the present embodiment, by above-mentioned vertical cutting and horizontal cutting, the related data of same business may be split Difference to disparate databases is divided in table, in this way, the executing subject (such as Proxy middleware 105) of the present embodiment is in response to receiving The data at business end update request, to provide to update to data in distributed data base to business end and request corresponding business related Distributed table divide table number, divide table number and divide table content.
In the present embodiment, dividing table number is for dividing table of storage service related data corresponding with data update request Number, dividing table number is the arrangement serial number for dividing table of storage service related data corresponding with data update request, and dividing table content is to deposit Store up the data of service related data corresponding with data update request divided in table.
Step 402: the processing batch instruction generated in response to receiving business end according to the distribution mode of distributed table, according to Distributed table divides table number, divides table number and table content is divided to send processing batch instruction to the database of distributed storage table.
Include command information in the present embodiment, in processing batch instruction and divide table information, command information include action type and Operation content, action type include but is not limited to be inserted into, delete and update, and operation content is to insert corresponding to the specific of action type Enter, delete or more new data.The distribution mode for dividing table information to pass through distributed table obtains.As above, the distribution mode of distributed table Including dividing table number, dividing table number and dividing table content, business end can be according to the number for dividing table number to determine processing batch instruction, can be with According to the execution object for dividing table content He table number being divided to determine processing batch instruction.Executing subject (such as Proxy middleware of the present embodiment 105) the corresponding database for being sent to distributed storage table of the processing batch instruction for executing object and number will be determined, in this way, number Corresponding operating is carried out according to corresponding processing batch instruction according to library.
Figure 4, it is seen that compared with the corresponding embodiment of Fig. 2, the data of the distributed data base in the present embodiment The distribution mode that the process 400 of batch updating method specifically illustrates distributed table includes: a point table number, divides table number and divide in table Hold, and embodies the present embodiment and be split for the related data of same business to the difference of disparate databases and divide table this universal When situation, according to the step of dividing table number, divide table number and table content divided to generate processing batch instruction.The present embodiment describes as a result, Scheme is more able to satisfy the business demand in reality.
With continued reference to Fig. 5, as the realization to method shown in above-mentioned each figure, present disclose provides a kind of distributed data bases One embodiment, the distributed data base embodiment is corresponding with embodiment of the method shown in Fig. 2, the distributed data base tool Body can be applied in various electronic equipments.
As shown in figure 5, the distributed data base 500 of the present embodiment includes: Proxy middleware 501 and database 502.
Proxy middleware 501 is used to update request in response to the data for receiving business end, provides to business end distributed The distribution mode for requesting the relevant distributed table of corresponding business is updated to data in database;In response to receiving business end root According to the processing batch instruction that the distribution mode of distributed table generates, according to the distribution mode of distributed table to the number of distributed storage table Processing batch instruction is sent according to library;Database 502 is used for distributed storage table, and in response to processing batch instruction, updates distributed table.
In some optional embodiments, the distribution mode of distributed table includes dividing table number, divide table number and dividing table content. Proxy middleware 501 is used to update request in response to the data for receiving business end, provides in distributed data base to business end It is updated to data and requests dividing table number, divide table number and dividing table content for the relevant distributed table of corresponding business;In response to receiving The processing batch instruction generated to business end according to the distribution mode of distributed table, dividing table number, divide table number according to distributed table With divide table content to the database of distributed storage table send processing batch instruction.Processing batch instruction include: inserting instruction, delete refer to It enables, more new command.
It should be understood that the number of the database in Fig. 5 is only schematical.According to needs are realized, can have any The database of number.
With continued reference to Fig. 6, as the realization to method shown in above-mentioned each figure, present disclose provides a kind of distributed data bases Batch data updating device one embodiment, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, this batch Updating device specifically can be applied in various electronic equipments.
As shown in fig. 6, the batch updating device 600 of the present embodiment includes: distribution mode sharing unit 601 and more new command Transmission unit 602.
Wherein, distribution mode sharing unit 601 is configurable for updating request in response to the data for receiving business end, The distribution mode for updating to data and requesting the relevant distributed table of corresponding business is provided in distributed data base to business end;More New command transmission unit 602 is configurable for batch generated in response to receiving business end according to the distribution mode of distributed table Process instruction sends processing batch instruction to the database of distributed storage table according to the distribution mode of distributed table.
In some optional embodiments of the present embodiment, the distribution mode of distributed table includes dividing table number, dividing table number With divide table content.Distribution mode sharing unit 601 is configurable for updating request in response to the data for receiving business end, to Business end, which provides to update in distributed data base to data, requests dividing table number, dividing table for the relevant distributed table of corresponding business Number and divide table content;Instruction sending unit 602 is updated to be configurable in response to receiving business end according to distributed table The processing batch instruction that distribution mode generates, dividing table number, divide table number and dividing table content to distributed storage according to distributed table The database of table sends processing batch instruction.Processing batch instruction includes: inserting instruction, deletes instruction, more new command.
With continued reference to Fig. 7, it illustrates according to one of the batch data more new system of the distributed data base of the application Embodiment 700, the system include: business end 701, distributed data base 702.
Business end 701 is used to send data relevant to business in response to receiving business to distributed data base and update Request obtains the distribution mode for the distributed table relevant to business that distributed data base provides;According to the distribution of distributed table Mode sends processing batch instruction to distributed data base;Distributed data base 702, distributed data base include: Proxy middleware For updating request in response to the data for receiving business end, provides to update with data in distributed data base to business end and request The distribution mode of the relevant distributed table of corresponding business;It is raw according to the distribution mode of distributed table in response to receiving business end At processing batch instruction, according to the distribution mode of distributed table to the database of distributed storage table send processing batch instruction;Number It is used for distributed storage table according to library, and in response to processing batch instruction, updates distributed table.
Below with reference to Fig. 8, it illustrates the equipment for being suitable for being used to realize the embodiment of the present application (such as equipment shown in FIG. 1 101,102, the 103,105) structural schematic diagram of computer system 800.Equipment shown in Fig. 8 is only an example, is not answered Any restrictions are brought to the function and use scope of the embodiment of the present application.
As shown in figure 8, computer system 800 includes processor (such as central processing unit CPU) 801, it can basis The program that is stored in read-only memory (ROM) 802 is loaded into random access storage device (RAM) 803 from storage section 808 In program and execute various movements appropriate and processing.In RAM803, also it is stored with system 800 and operates required various journeys Sequence and data.CPU801, ROM802 and RAM803 are connected with each other by bus 804.Input/output (I/O) interface 805 also connects It is connected to bus 804.
I/O interface 805 is connected to lower component: the importation 806 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 807 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 808 including hard disk etc.; And the communications portion 809 of the network interface card including LAN card, modem etc..Communications portion 809 via such as because The network of spy's net executes communication process.Driver 810 is also connected to I/O interface 805 as needed.Detachable media 811, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 810, in order to read from thereon Computer program be mounted into storage section 808 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 809, and/or from detachable media 811 are mounted.When the computer program is executed by central processing unit (CPU) 801, limited in execution the present processes Above-mentioned function.
It should be noted that the computer-readable medium of the application can be computer-readable signal media or computer Readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but it is unlimited In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculates The more specific example of machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, portable of one or more conducting wires Formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or The above-mentioned any appropriate combination of person.In this application, computer readable storage medium can be it is any include or storage program Tangible medium, which can be commanded execution system, device or device use or in connection.And in this Shen Please in, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable Any computer-readable medium other than storage medium, the computer-readable medium can send, propagate or transmit for by Instruction execution system, device or device use or program in connection.The journey for including on computer-readable medium Sequence code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
The calculating of the operation for executing the application can be write with one or more programming languages or combinations thereof Machine program code, programming language include object-oriented programming language-such as Java, Smalltalk, C++, also Including conventional procedural programming language-such as " C " language or similar programming language.Program code can be complete It executes, partly executed on the user computer on the user computer entirely, being executed as an independent software package, part Part executes on the remote computer or executes on a remote computer or server completely on the user computer.It is relating to And in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or extensively Domain net (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as provided using Internet service Quotient is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor, packet Include user behavior judging unit, normal users judging unit.Wherein, the title of these units under certain conditions constitute pair The restriction of the unit itself, for example, distribution mode sharing unit is also described as " in response to receiving business end Data update request, provide in distributed data base to update to data to business end and request the relevant distributed table of corresponding business Distribution mode unit ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should Equipment: the data in response to receiving business end update request, provide in distributed data base to business end and ask with data update Seek the distribution mode of the relevant distributed table of corresponding business;In response to receiving business end according to the distribution mode of distributed table The processing batch instruction of generation sends processing batch instruction to the database of distributed storage table according to the distribution mode of distributed table.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (12)

1. a kind of batch data update method of distributed data base, wherein
In response to receive business end data update request, Xiang Suoshu business end provide distributed data base in the data Update the distribution mode for requesting the relevant distributed table of corresponding business;
The processing batch instruction generated in response to receiving the business end according to the distribution mode of distributed table, according to the distribution The distribution mode of formula table sends processing batch instruction to the database for storing the distributed table.
2. according to the method described in claim 1, wherein, the data in response to receiving business end update request, to institute It states business end and the distribution side for updating to the data and requesting the relevant distributed table of corresponding business is provided in distributed data base Formula, comprising:
In response to receive business end data update request, Xiang Suoshu business end provide distributed data base in the data It updates and requests dividing table number, divide table number and dividing table content for the relevant distributed table of corresponding business;
The processing batch instruction generated in response to receiving the business end according to the distribution mode of distributed table, according to described The distribution mode of distributed table sends processing batch instruction to the database for storing the distributed table, comprising:
The processing batch instruction generated in response to receiving the business end according to the distribution mode of distributed table, according to the distribution Formula table divides table number, divides table number and table content is divided to send the processing batch instruction to the database for storing the distributed table.
3. according to the method described in claim 1, wherein,
The processing batch instruction includes: inserting instruction, deletes instruction, more new command.
4. a kind of distributed data base, wherein the distributed data base includes:
Proxy middleware, for updating request in response to the data for receiving business end, Xiang Suoshu business end provides distributed number According to the distribution mode for requesting the relevant distributed table of corresponding business is updated in library to the data;In response to receiving business end According to the processing batch instruction that the distribution mode of distributed table generates, according to the distribution mode of the distributed table to described point of storage The database of cloth table sends processing batch instruction;
Database updates the distributed table for storing the distributed table, and in response to the processing batch instruction.
5. distributed data base according to claim 4, wherein
Proxy middleware, for updating request in response to the data for receiving business end, Xiang Suoshu business end provides distributed number Dividing table number, divide table number and dividing table content for the relevant distributed table of corresponding business is requested according to updating in library to the data;
The processing batch instruction generated in response to receiving business end according to the distribution mode of distributed table, according to the distributed table Divide table number, divide table number and table content divided to send the processing batch instruction to the database for storing the distributed table.
6. distributed data base according to claim 4, wherein
The processing batch instruction includes: inserting instruction, deletes instruction, more new command.
7. a kind of batch data of distributed data base more new system, wherein the system comprises:
Business end, for sending data update relevant to the business to distributed data base and asking in response to receiving business It asks, obtains the distribution mode for the distributed table relevant to the business that the distributed data base provides;According to the distribution The distribution mode of formula table, Xiang Suoshu distributed data base send processing batch instruction;
Distributed data base, the distributed data base include:
Proxy middleware, for updating request in response to the data for receiving the business end, Xiang Suoshu business end provides distribution The distribution mode for requesting the relevant distributed table of corresponding business is updated to the data in formula database;In response to receiving The processing batch instruction that business end is generated according to the distribution mode of distributed table is stated, according to the distribution mode of the distributed table to depositing The database for storing up the distributed table sends processing batch instruction;
Database updates the distributed table for storing the distributed table, and in response to the processing batch instruction.
8. a kind of batch data updating device of distributed data base, wherein described device includes:
Distribution mode sharing unit is configurable for updating request, Xiang Suoshu business in response to the data for receiving business end End provides in distributed data base the distribution mode for updating to the data and requesting the relevant distributed table of corresponding business;
Instruction sending unit is updated, is configurable in response to receiving the business end according to the distribution mode of distributed table The processing batch instruction of generation, sent batch according to the distribution mode of the distributed table to the database for storing the distributed table at Reason instruction.
9. device according to claim 8, wherein
Distribution mode sharing unit is configurable for updating request, Xiang Suoshu business in response to the data for receiving business end End, which provides to update in distributed data base to the data, requests dividing table number, dividing table for the relevant distributed table of corresponding business Number and divide table content;
Instruction sending unit is updated, is configurable in response to receiving the business end according to the distribution mode of distributed table The processing batch instruction of generation, dividing table number, divide table number and dividing table content to the storage distribution according to the distributed table The database of table sends the processing batch instruction.
10. device according to claim 8, wherein
The processing batch instruction includes: inserting instruction, deletes instruction, more new command.
11. a kind of computer-readable medium, is stored thereon with computer program, wherein real when described program is executed by processor Now such as method as claimed in any one of claims 1-3.
12. a kind of electronic equipment, comprising:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1-3.
CN201910577505.7A 2019-06-28 2019-06-28 Batch data update method, device and the system of distributed data base Pending CN110287264A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910577505.7A CN110287264A (en) 2019-06-28 2019-06-28 Batch data update method, device and the system of distributed data base

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910577505.7A CN110287264A (en) 2019-06-28 2019-06-28 Batch data update method, device and the system of distributed data base

Publications (1)

Publication Number Publication Date
CN110287264A true CN110287264A (en) 2019-09-27

Family

ID=68019723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910577505.7A Pending CN110287264A (en) 2019-06-28 2019-06-28 Batch data update method, device and the system of distributed data base

Country Status (1)

Country Link
CN (1) CN110287264A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111399851A (en) * 2020-06-06 2020-07-10 四川新网银行股份有限公司 Batch processing execution method based on distributed system
CN111597160A (en) * 2020-04-21 2020-08-28 中国人民财产保险股份有限公司 Distributed database system, distributed data processing method and device
CN112634021A (en) * 2020-12-24 2021-04-09 中国建设银行股份有限公司 Client data processing method and device
CN112948477A (en) * 2021-03-31 2021-06-11 北京金山云网络技术有限公司 Data downloading method and device, electronic equipment and storage medium
CN112947846A (en) * 2019-12-11 2021-06-11 北京金山云网络技术有限公司 Batch processing task execution method and device of object storage system and electronic equipment
WO2021169272A1 (en) * 2020-02-27 2021-09-02 平安科技(深圳)有限公司 Database table changing method and apparatus, computer device, and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112947846A (en) * 2019-12-11 2021-06-11 北京金山云网络技术有限公司 Batch processing task execution method and device of object storage system and electronic equipment
WO2021169272A1 (en) * 2020-02-27 2021-09-02 平安科技(深圳)有限公司 Database table changing method and apparatus, computer device, and storage medium
CN111597160A (en) * 2020-04-21 2020-08-28 中国人民财产保险股份有限公司 Distributed database system, distributed data processing method and device
CN111399851A (en) * 2020-06-06 2020-07-10 四川新网银行股份有限公司 Batch processing execution method based on distributed system
CN112634021A (en) * 2020-12-24 2021-04-09 中国建设银行股份有限公司 Client data processing method and device
CN112948477A (en) * 2021-03-31 2021-06-11 北京金山云网络技术有限公司 Data downloading method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110287264A (en) Batch data update method, device and the system of distributed data base
US11711420B2 (en) Automated management of resource attributes across network-based services
US6523032B1 (en) Servicing database requests using read-only database servers coupled to a master database server
US10291704B2 (en) Networked solutions integration using a cloud business object broker
US6415335B1 (en) System and method for managing dynamic web page generation requests
US8005792B2 (en) System and method for managing versions of metadata
US20160292249A1 (en) Dynamic replica failure detection and healing
US20070266029A1 (en) Recovery segment identification in a computing infrastructure
CN109492053B (en) Method and device for accessing data
WO2004097668A1 (en) Accessing data based on user identity
JP2020102189A (en) Method, apparatus and system for processing data
US20160378751A1 (en) Fast query processing in columnar databases with gpus
US11076020B2 (en) Dynamically transitioning the file system role of compute nodes for provisioning a storlet
CN109710859A (en) Data query method and apparatus
CN109657174A (en) Method and apparatus for more new data
CN106933891A (en) Access the method for distributed data base and the device of Distributed database service
US20230099501A1 (en) Masking shard operations in distributed database systems
CN114996337A (en) Multi-cluster database management system and method
CN111258988A (en) Asset management method, device, electronic device, and medium
US10832309B2 (en) Inventory data model for large scale flash sales
US11429311B1 (en) Method and system for managing requests in a distributed system
CN109766392A (en) Data processing method and device
JP2023534656A (en) Archiving of accelerator-only database tables
US8024380B2 (en) Improving data access speed while processing transaction requests from web based applications
US8667382B2 (en) Configurable field definition document

Legal Events

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