Data storage method and device

A data storage device and data storage technology, applied in the direction of electrical digital data processing, special data processing applications, data processing input/output process, etc., can solve the problems of unfriendly expansion, increased storage space pressure, time-consuming, etc. Guaranteed friendly effect

Inactive Publication Date: 2015-03-04
CHINA CONSTRUCTION BANK
View PDF5 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Analyzing the existing horizontal partition technology, we can find that partitioning according to the hash value of the partition index field is relatively balanced, but it is not friendly to expansion. When the server needs to be expanded, all data must be repartitioned, which takes a lot of time; Segmentation according to the range of the index field, obviously, this me

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
  • Data storage method and device
  • Data storage method and device
  • Data storage method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention belong to the protection scope of the present invention.

[0040] The embodiment of the present invention provides a data storage method and device, which can ensure the friendliness of database partition expansion and the balance of data storage.

[0041] see figure 1 , an embodiment of the data storage method of the present invention includes:

[0042] 101. Using a preset algorithm to calculate the hash value of the index field used to identify the database partition;

[0043] In a specific implementation, the preset algorithm is a hash algorithm, and the abov...

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 embodiment of the invention discloses a data storage method and device. The method comprises the following steps: calculating hash values for identifying index fields of database partitions by adopting a preset algorithm; calculating hash values for identifying the IP (internet protocol) addresses of storage nodes by adopting a preset algorithm, wherein the hash values of the IP addresses of the storage nodes form a storage node ring; when data need to be stored, by taking the hash values of the index fields corresponding to the to be stored data as the starting points, searching the storage nodes from the storage node ring along the clockwise direction, and storing the to-be-stored data into the searched first storage node. According to the data storage method and device, the friendliness in the aspect of database partition extension and the balance of data storage can be ensured.

Description

technical field [0001] Embodiments of the present invention relate to the technical field of data storage, and in particular, to a data storage method and device. Background technique [0002] With the widespread popularization of Internet technology, the e-commerce model has developed rapidly. With its advantages of low cost and high efficiency, the total amount of online business transactions has repeatedly hit new highs, but this has also brought about the problem of how to efficiently store and access massive data. The scale of the e-commerce database is constantly expanding, and it is under huge query pressure all the time. Therefore, many methods of database performance expansion have emerged. [0003] The most common method is to add database servers, copy multiple copies of the database and store them in different servers to achieve the purpose of dispersing query pressure, and use the principle that most database read operations are more frequent than write operatio...

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): G06F17/30
CPCG06F3/067G06F16/2255
Inventor 廖继逢李观钊王伟赵金鑫包辰明胡立强李尚真刘颖莲刘威邓龙腾
Owner CHINA CONSTRUCTION BANK
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products