Unlock instant, AI-driven research and patent intelligence for your innovation.

Database-dividing and table-dividing method and device for mass data

A technology of sub-database, sub-table and massive data, applied in the field of information processing, can solve the problems of complex business data processing and low efficiency, and achieve the effect of reducing processing difficulty, improving utilization rate, and reducing maintenance costs

Pending Publication Date: 2020-12-01
武汉物易云通网络科技有限公司
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method is not only inefficient, but also makes the processing of business data more complicated

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Database-dividing and table-dividing method and device for mass data
  • Database-dividing and table-dividing method and device for mass data
  • Database-dividing and table-dividing method and device for mass data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] In order to solve the problem that traditional solutions cannot effectively store massive data, the embodiment of the present invention provides a method for storing massive data in separate databases and tables based on the self-developed sub-database algorithm and table sub-algorithm, which can convert traditional relational databases into Perform efficient vertical splitting and horizontal splitting.

[0049]Among them, in the field of database technology, the storage and processing capabilities of a single table have an upper limit. Once the upper limit is exceeded, the storage and processing performance will decline, and different relational databases have different single-table storage and processing capabilities. Therefore, Special processing is required according to different databases, but the storage methods of sub-databases and sub-tables are the same. Therefore, in order to illustrate the technical solution of the present invention more clearly, the MySQL da...

Embodiment 2

[0095] In the traditional solution, when performing batch query of data through query statements, that is, when executing a query with the IN keyword, all value lists corresponding to the IN keyword will be sent to different databases for execution. But the fact is that some of these value lists are only stored in the A`table of the A database, and should be queried in the A`table of the A database, while some values ​​are only stored in the B`table of the B database. You should go to the B` table of the B database to query. However, because the traditional solution does not perform additional clustering processing when performing such batch data query, but simply and rudely distributes the original SQL query statement directly to each database for execution, it not only wastes resources, but also reduces execution efficiency.

[0096] In order to solve the above problems, on the basis of storing data in separate databases and tables in the above-mentioned embodiment 1, the e...

Embodiment 3

[0112] On the basis of the sub-database and sub-table storage methods for massive data provided in the above-mentioned embodiment 1 and embodiment 2, the present invention also provides a sub-database and sub-table storage device that can be used to implement the above method, such as Figure 12 Shown is a schematic diagram of the device architecture of the embodiment of the present invention. The sub-database and sub-table storage device for massive data in this embodiment includes one or more processors 21 and memory 22 . in, Figure 12 A processor 21 is taken as an example.

[0113] The processor 21 and the memory 22 may be connected via a bus or in other ways, Figure 12 Take connection via bus as an example.

[0114] The memory 22 is a non-volatile computer-readable storage medium for storing massive data in sub-databases and sub-tables, and can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, as in the embodiment ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a database-dividing and table-dividing method and device for mass data. The method comprises the steps of determining the total number N of data tables and the total number M of databases, wherein N is greater than or equal to M, and each database accommodates N / M data tables; naming each database according to the database index, so that the database names of the M databases are progressively increased according to the sequence of the database index; naming each data table according to the table index, so that the table names of the N data tables are progressively increased according to the sequence of the table index; and selecting a split key field from the data table, determining a corresponding library index and a table index for each piece of data based on thevalue of the split key field, and further storing the data into the corresponding database and the data table. According to the method, mass data is stored in the relational database in a structured mode through database-dividing and table-dividing operation, so that the storage problem of the mass data is effectively solved, the maintenance cost of the mass data is reduced on the whole, the processing difficulty of service data is reduced, and the hardware utilization rate of the database is increased.

Description

technical field [0001] The present invention relates to the technical field of information processing, and more specifically, to a method and device for storing massive data in sub-databases and tables. Background technique [0002] At present, in many application fields such as commerce, finance, and management, Internet companies generally use relational databases as data storage media for data processing; for example, bulk B2B supply chain financial platforms, e-commerce platforms, etc. Relational databases are used as storage media for processing. A relational database is a database composed of multiple two-dimensional row-column tables that can be connected to each other. The current mainstream relational databases include Oracle, DB2, Microsoft SQLServer, Microsoft Access, MySQL, etc. At present, most enterprises use relational databases such as MySQL to store, process and analyze data information, but with the continuous development and growth of these enterprises, t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/22G06F16/242G06F16/2458G06F16/28
CPCG06F16/2228G06F16/2282G06F16/242G06F16/2458G06F16/284
Inventor 张宁王义聂磊
Owner 武汉物易云通网络科技有限公司