Data storage method and data storage device for distributed database

A data storage device and data storage technology, applied in the information field, can solve problems such as slow update speed and low data insertion efficiency

Active Publication Date: 2015-02-25
HUAWEI TECH CO LTD
View PDF7 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a data storage method and device for a distributed data

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 data storage device for distributed database
  • Data storage method and data storage device for distributed database
  • Data storage method and data storage device for distributed database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0076] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0077] figure 1 It is a schematic flowchart of Embodiment 1 of the data storage method of the distributed database provided by the present invention, such as figure 1 As shown, the method includes:

[0078] S101: The first node receives a record insertion request, where the record insertion request carries a first record.

[0079] The dist...

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

Provided are a data storage method and device for a distributed database. The method comprises: a first node receiving a record insertion request, said request carrying a first record; the first node, according to a mapping relationship between a foreign key identifier and a storage node, determining a first storage node in which a first related record corresponding to the first record is located, wherein a primary key identifier of the first related record and the foreign key identifier of the first record are identical; the first node inserting the first record into a second node within the first storage node. The present method solves the technical problems in the prior art of low data insertion efficiency and slow updating speeds.

Description

technical field [0001] The embodiment of the present invention relates to the field of information technology, and relates to a data storage method and device for a distributed database. Background technique [0002] In distributed data storage, the front-end server partitions or shards the data in each data table in the database according to certain rules and then distributes and stores them on multiple different nodes. The data here can be in the data table Multiple records for each node, and the database instance running on each node manages the records assigned to the node. In order to ensure the reliability of the system, in a distributed system, at least one data backup is usually made on other nodes for each piece of data, that is, after the master node receives the data, it will save data on one or more nodes (slave nodes) Since the partitioning and backup methods are used to act on each data table independently, when performing a more complex association query for ...

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
CPCG06F16/21G06F16/27G06F16/2471G06F16/22G06F16/2379G06F16/245
Inventor 张军
Owner HUAWEI TECH CO LTD
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