Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Database fragmentation method and device, electronic equipment and readable storage medium

A database and sharding technology, applied in database distribution/replication, database indexing, structured data retrieval, etc., can solve problems affecting database reading efficiency and inconsistent time required

Pending Publication Date: 2021-09-10
HANGZHOU NETEASE CLOUD MUSIC TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this segmentation method is relatively simple, so that when reading data on the shards, the time required may be inconsistent, thus affecting the reading efficiency on the database

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 fragmentation method and device, electronic equipment and readable storage medium
  • Database fragmentation method and device, electronic equipment and readable storage medium
  • Database fragmentation method and device, electronic equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0084] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0085] figure 1 is a flow chart of the steps of a database fragmentation method provided by an embodiment of the present disclosure, and the method can be applied to a multi-node database, such as figure 1 As shown, the method may include:

[0086] Step 101, determine the target data table on each node database, and determine the first fragment configuration parameter and the second fragment configuration parameter.

[0087] In t...

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 fragmentation method and device, electronic equipment and a readable storage medium, and belongs to the field of electronic equipment. The method comprises the following steps: firstly, determining a target data table on each node database, and determining a first fragment configuration parameter and a second fragment configuration parameter; performing iterative segmentation on a first interval in the target data table based on a first preset fragmentation strategy to obtain N first alternative fragments; for each first alternative fragment, dividing a second interval in the first alternative fragment according to a second preset fragment strategy to obtain M second alternative fragments; and finally, classifying the N * M second alternative fragments, and determining a target interval in the target data table so as to segment according to the target interval to obtain a target fragment in the node database. In this way, the difference of the data storage amount on each target fragment can be reduced to a certain extent, and then the situation that a machine is blocked when data is read due to the fact that too much data is stored on an individual fragment can be avoided.

Description

technical field [0001] The application belongs to the technical field of electronic equipment, and in particular relates to a database fragmentation method, device, electronic equipment and a readable storage medium. Background technique [0002] With the rapid development of electronic technology and the higher and higher requirements for data storage, it is more and more common to use multi-node databases to store data, and the storage capacity in the database is also increasing. In order to facilitate the management of data stored in the database, the database is often fragmented, that is, each node database contains multiple fragments, and each fragment stores several data. [0003] In the prior art, the method for sharding the database is often to directly perform slicing according to all the data stored in the database, and obtain multiple shards in the database according to the slicing results. However, this segmentation method is relatively simple, so that when read...

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
IPC IPC(8): G06F16/22G06F16/27G06K9/62
CPCG06F16/2282G06F16/27G06F18/241
Inventor 汪磊苏杭李宽蒋文伟岳猛段石石刘长伟谭钧心王军正
Owner HANGZHOU NETEASE CLOUD MUSIC TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products