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

Memory database storage engine management method

A storage engine and management method technology, applied in the field of in-memory database storage engine management, can solve problems such as multiple storage spaces, read amplification, and space amplification, achieve efficient read and write performance, solve read amplification problems, and optimize read performance problems. Effect

Active Publication Date: 2021-11-23
上海沄熹科技有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The price in exchange is read performance and increased merge overhead: the Memtable of the RocksDB single-column family has a default size of 64MB. When this size is exceeded, the written data will be converted from Memtable to immutable Memtable, and then a background thread will be started to regularly write the data written into immutable Memtable. Perform Compaction operations to reclaim resources; add immutable Memtable to the flush pipeline and wait for the background thread to flush to the SST, resulting in read amplification problems. To query the Value value corresponding to a Key value, it may be necessary to traverse multiple SSTable files , corresponding to multiple random IO
And the space is enlarged, and the multi-version data will take up more storage space before merging
[0006] In order to optimize the read amplification problem based on the RocksDB storage engine in the existing distributed NewSQL database, and optimize the read performance problem of the memory database based on the ART algorithm, the present invention proposes a management method for the memory database storage engine

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
  • Memory database storage engine management method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. 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 shall fall within the protection scope of the present invention.

[0031] ART (Adaptive Radix Tree, adaptive radix / prefix tree) is a trie tree with binary bit string as the key. It is a multi-fork tree structure, and at the same time it is similar to a multi-layer index table. An array of pointers to nodes, leaf nodes contain pointers to actual objects. The intermediate nodes are divided into several different types...

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 particularly relates to a memory database storage engine management method. According to the memory database storage engine management method, on the basis of a Memtable management mechanism of a RocksDB storage engine, an ART index is newly built in the Memtable to replace a skiplist index, a key-value is inquired by adopting a double-index mechanism of the ART index and a Hash index, and the reading performance of the RocksDB storage engine is optimized, so that a RocksDB memory engine mode is realized, disk reading and writing are reduced, and the inquiry speed is increased. According to the memory database storage engine management method, the read performance problem of a RocksDB-based storage engine in an existing distributed NewSQL database is optimized, the efficient read-write performance of the memory is fully played, more data can be cached in the memory, and the read amplification problem of the RocksDB is solved.

Description

technical field [0001] The invention relates to the technical field of database management, in particular to a method for managing a memory database storage engine. Background technique [0002] In recent years, as the capacity of dynamic random access memory (DRAM) has increased and the unit price has decreased, it has become possible to store and process large amounts of data in memory. Compared with disk, the data read and write speed of memory is several orders of magnitude higher. Saving data in memory can greatly improve the performance of applications than accessing it from disk. [0003] CockroachDB is an open source distributed database. It has the ability of NoSQL to store and manage massive data, and maintains the ACID and SQL supported by traditional databases. It also supports cross-region, decentralization, high concurrency, strong consistency of multiple copies, and high availability. and other characteristics. Supports OLTP scenarios and lightweight OLAP sc...

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/2455
CPCG06F16/2255G06F16/2246G06F16/24553Y02D10/00
Inventor 张华海
Owner 上海沄熹科技有限公司
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