Method and device for realizing column storage based relational database

A column storage and relational technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve problems such as database performance deterioration, increase database system storage space, affect performance, etc., to reduce hard disk input and output, improve The effect on query performance

Active Publication Date: 2010-06-23
BEIJING CLOUDWAVE TIMES TECH CO LTD
View PDF1 Cites 54 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the process of realizing the present invention, the inventors found that there are at least the following problems in the prior art: the indexes provided by the relational database based on row storage are generally dense indexes, such as B+ tree indexes, that is, the column values ​​of each record must be Being added to the index has two disadvantages: one is to increase the storage space used by the database system, and the other is to increase the performance of data update
It is precisely because of these two problems that in a row-based relational database, it is difficult to index all the columns in the data table, so the following problems arise. If a query statement is based on an unindexed Column query, the

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 and device for realizing column storage based relational database
  • Method and device for realizing column storage based relational database
  • Method and device for realizing column storage based relational database

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0050] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in further detail below in conjunction with the embodiments and accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention.

[0051] The present invention provides a very effective method for realizing a relational database system based on column storage, in the method:

[0052] Firstly, a data file is established. The data file is composed of a series of data blocks with a fixed size, and the data blocks are serialized. The serial number starts from zero and increases in turn.

[0053] Then define the table segment. The table segment can be defined according to the memory size of the computer. The larger the memory, the greater the number of records that can be stored in the table segment. The specific ratio relation...

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 a method and a device for realizing a column storage based relational database. The method comprises: establishing data files, and serially numbering the data blocks which form the data files; defining a table segment; inserting records into the table segment; generating the only record identification number in the table segment for the record inserted in the table segment, and separating the records by columns; for each column in the records, executing the following operation: storing column values and the record identification numbers as value data in the data blocks and sorting according to the size of the column values; storing the record identification numbers and the serial numbers of the data blocks for storing the value data which are taken as connecting data in new data blocks, and sorting according to the size of the record identification numbers; and establishing indexes for the data blocks for storing the value data and the data blocks for storing the connecting data, and generating index data blocks. The embodiment of the invention improves the query performance of the database.

Description

technical field [0001] The present invention relates to the storage technology of relational databases, specifically a method and device for realizing a relational database based on column storage. Background technique [0002] A relational database is a software system for storing and processing structured data. It contains two kinds of data: one is logical data, which is composed of tables, records, etc.; the other is physical data, which represents how the database stores logical data. Different relational database systems may have the same logical data, but they usually have different physical data. There are two ways to realize the physical data of the database: one is based on row storage, and the other is based on column storage. For the implementation method based on row storage, it stores the entire record of the logical data table in the data block of the file. In order to improve the query speed, indexes such as B+ trees are established for certain columns; 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
Inventor 赵伟
Owner BEIJING CLOUDWAVE TIMES 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