Supercharge Your Innovation With Domain-Expert AI Agents!

Distributed database transaction data storage optimization method

A transaction data and storage optimization technology, applied in the field of distributed databases, can solve the problems of data write amplification and occupying storage space, so as to reduce the pressure on the storage layer, improve the overall performance, and reduce the pressure on memory usage.

Active Publication Date: 2021-03-12
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF18 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, due to the layer-by-layer merging process of the LSM structure, DELETE cleaning may need to go to the last layer to ensure that the writing intent data is deleted from the underlying file, thus occupying a large amount of unnecessary storage space, and the data generated during the multiple merging of writing intent data write amplification problem

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
  • Distributed database transaction data storage optimization method
  • Distributed database transaction data storage optimization method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to enable those skilled in the art to better understand the solutions of the present invention, the present invention will be further described in detail below in conjunction with specific embodiments. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts fall within the protection scope of the present invention.

[0036] A preferred embodiment is given below:

[0037] Such as Figure 1-2 As shown, a method for optimizing distributed database transactional data storage in this embodiment has the following steps:

[0038] S1. Add semi-solidified memory table:

[0039] Add a new semi-hardened memory table. When the read-only memory table needs to be persisted, it will be transformed into a semi-solidified memory table after Compaction processing....

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 relates to the technical field of distributed databases, and particularly provides a distributed database transaction data storage optimization method. The method comprises the followingsteps of S1, adding a semi-solidified memory table; S2, the semi-solidified memory table is composed of a memory Block and an SST file; S3, merging the Block data of the memory, and executing Compaction operation; S4, when the memory Block of the semi-solidified memory table is empty, removing the memory table from the storage engine; S5, setting a longest life cycle time threshold value for thesemi-solidified memory table; S6, after the system breaks down and is restarted, recovering the data of the read-only memory table according to the WAL; S7, providing a read interface the same as thatof the read-only memory table for the outside by the semi-solidified memory table; S8, after receiving the reading request, ensuring that the latest written data is preferentially read. Compared withthe prior art, the method has the advantages that the writing intention data can reside in the memory until the transaction is ended or overtime, so that the persistent data volume of the disk is reduced, and the data storage performance is optimized.

Description

technical field [0001] The invention relates to the technical field of distributed databases, and specifically provides a method for optimizing transactional data storage of distributed databases. Background technique [0002] CockroachDB (CRDB) is an open source distributed database system based on the idea of ​​Google Spanner. It has the ability of NoSQL to store and manage massive data, and maintains the characteristics of ACID and SQL supported by traditional databases. [0003] CockroachDB's storage layer RocksDB engine adopts the storage structure of LSM (log structure tree). The data of the write request is first written into the memory table. After the memory table data is full of 64MB (default), it will be persisted to the SST (SortedSequence Table- Sort Sequence List) file. The SST files on the disk are organized in a hierarchical manner, and there are background threads to perform layer-by-layer merge operations. [0004] In the transaction processing of Cockroa...

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/27G06F16/22G06F16/21
CPCG06F16/27G06F16/2282G06F16/217Y02D10/00
Inventor 贾德星孙思清张晖刘佳星张炜刚
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More