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

Method for organizing and accessing memory database index with high performance

An access method and index organization technology, which is applied in the database field, can solve problems such as reducing life span, affecting other nodes, and reducing B+Tree performance, so as to achieve the effect of reducing the number of times of erasing and writing

Active Publication Date: 2016-09-28
诸葛晴凤
View PDF3 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The process of adjusting the position will generate a large number of NVM write operations
[0016] (2) The insertion and deletion operation will not only cause the node to update the information to generate the operation of writing NVM, but also affect other nodes
The process of changing information can generate a lot of write operations
[0017] (3) During range search, B+Tree needs to access and search leaf nodes one by one, which will significantly reduce the performance of B+Tree
[0018] (4) In memory, in order to improve the cache hit rate, the nodes are relatively small, so the height of the tree is very high, which will cause B+Tree to frequently adjust the structure of the tree
[0019] Whether it is a traditional B+Tree or T-tree tree structure, in order to maintain the internal order of its nodes and the balance of the tree, frequent adjustments need to be made, resulting in a large number of NVM write operations and reducing its lifespan

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
  • Method for organizing and accessing memory database index with high performance
  • Method for organizing and accessing memory database index with high performance
  • Method for organizing and accessing memory database index with high performance

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0074] The definitions of abbreviations and key terms provided in this embodiment are as follows: NVM: Non-Volatile Memory, non-volatile memory; MMU: Memory Management Unit, storage management unit; VAB: Virtual Address Bucket, virtual address bucket;

[0075] As shown in the figure, the high-performance in-memory database index organization and access method provided by this embodiment includes the following steps:

[0076] S1. The overall index table structure is organized hierarchically;

[0077] S2. Allocate a continuous virtual address space for each level of bucket list in the virtual address space of the system;

[0078] S3. Map each bucket linked list to the corresponding virtual address space;

[0079] S4. Use linked lists to organize the indexes and data in the index structure at all levels. Each item in the linked list is a bucket organization, and each bucket organization stores the attribute information of the bucket organization itself, and points to the next bu...

Embodiment 2

[0110] The high-performance memory database index organization and access method provided by this embodiment solves the problem that the traditional disk database index cannot be applied to the memory management environment of the computer, which will cause huge and unnecessary system overhead.

[0111] The organization form and access method of the in-memory database index provided by this embodiment fully fit the environment of the computer memory, reduce the overhead of the system accessing the database index structure, and greatly improve the performance of the in-memory database. The basic database operations such as insertion, deletion, search, and range search are efficiently performed on NVM memory. The organization and access methods of in-memory database indexes fully consider the storage characteristics of NVM, and reduce the number of write operations to NVM as much as possible to maintain the service life of NVM memory.

[0112] Such as figure 2As shown, in the ...

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 method for organizing and accessing memory database indexes with high performance. The method comprises the following steps of: firstly, organizing an overall index table structure in stages; then, distributing a continuous virtual address space for each stage of bucket chain table in the virtual address space of a system; mapping each bucket chain table to a corresponding virtual address space; finally, organizing indexes and data in each stage of index structure by using a chain table manner, wherein each item in the chain table is a bucket organization, attribute information of the bucket organization, a pointer pointing to a next bucket organization and index entry information are stored in each bucket organization. According to a structure for organizing the database indexes provided by the invention, data are not needed to sort when being inserted or deleted; elements in a VAB (Virtual Address Bucket) are stored disorderly, data can be identified through a bitmap; different from the mode of a tree structure, the elements are not needed to sort when a datum is inserted or deleted once in order to keep the orderliness of inner elements, thus the times of frequently writing a NVM (Non-Volatile Memory) is reduced.

Description

technical field [0001] The invention relates to the database field, in particular to a high-performance memory database index organization and access method. Background technique [0002] With the development of computer hardware technology, the price of memory continues to decrease, and the memory capacity is getting larger and larger. It is completely feasible to store all or part of the data in the database into the memory. However, traditional DRAM memory cannot retain data after power failure, so it does not have a data storage function. [0003] In recent years, a new type of memory, non-volatile memory (NVM), has emerged. The main features of this memory are: the data stored in NVM will not be lost due to power failure or system crash, its storage capacity can be close to that of disk, and NVM has a read and write speed close to that of DRAM. In addition, non-volatile memory also has many advantages such as high density, low power consumption, and radiation resistan...

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): G06F17/30G06F12/0817G06F12/0871
CPCG06F12/0824G06F12/0871G06F16/2272G06F16/2282G06F16/245
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