Unlock instant, AI-driven research and patent intelligence for your innovation.

An olap query optimization method in memory-flash hybrid storage mode

A hybrid storage and query optimization technology, applied in the input/output process of data processing, special data processing applications, instruments, etc., can solve the problems of OLAP storage optimization without memory, the combination of query processing optimization technology, and the inclusion of flash, etc. Performance gap, overall cost reduction, effect of reducing demand

Active Publication Date: 2017-06-06
RENMIN UNIVERSITY OF CHINA
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

On the one hand, the application of high-speed flash memory cards provides cheap secondary storage expansion capabilities for expensive memory storage, but on the other hand, high-speed flash memory cards are mainly used as extended caches for databases on flash, expanding the capacity of memory caches (buffers), However, it has not been combined with in-memory OLAP storage optimization and query processing optimization technology, and has not implemented flash-aware OLAP optimization technology at the OLAP algorithm level
[0003] The current analytical in-memory database mainly uses DRAM as the main storage device, and flash is used as a backup storage or disk cache to replace the disk. Flash has not yet been incorporated into the OLAP algorithm design of the memory.

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
  • An olap query optimization method in memory-flash hybrid storage mode
  • An olap query optimization method in memory-flash hybrid storage mode
  • An olap query optimization method in memory-flash hybrid storage mode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0033] like figure 2 As shown, flash-aware is reflected in the optimization of the OLAP query algorithm to push the access to the metric attributes stored on the flash to the end, and convert the sequential scanning of the fact table into a random method with a low selection rate for the metric attributes of the fact table according to the selection vector. access, reducing the latency of accessing metric properties on flash.

[0034] Step 2) Take the following query command as an example:

[0035] SELECT c_nation, s_nation, sum(l_revenue), sum(l_price)

[0036] FROM customer, line order, supplier

[0037] WHERE lo_custkey=c_custkey

[0038] and lo_suppkey=s_suppkey

[0039] and c_region='AMERICA'

[0040] and s_region='ASIA'

[0041] group by c_nation, s_nation;

[0042] The query command needs to connect the fact table lineorder with the dimension tables customer and supplier, and then calculate the cumulative sum of the fact table measurement columns l_revenue and l...

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 an OLAP (On-Line Analytical Processing) query optimization method in a memory and flesh memory hybrid storage mode, which comprises the following steps that a flash-aware storage model is adopted for OLAP storage, division is carried out between a relatively small DRAM (Dynamic Random Access Memory) and a relatively big flash memory according to locality of data access, and storage optimization is carried out two stages of heterogeneous memories; array storage is adopted for memory OLAP, each attribute line is stored in a continuous array unit, conventional connection operation is simplified into array index access (AIR), and OLAP query processing of an AIR algorithm is carried out, wherein AIR is array index access; OLAP query processing on the basis of array storage and the AIR algorithm is decomposed into three sequential data access processes; a designated measurement value of a flash storage measurement line is accessed to by a selection vector; K keyword connection bitmaps are optimally stored in two stages of DRAM-flash storage on the basis of keyword-based bitmap continuous indexing to form a two-stage connection bitmap indexing structure. According to the invention, storage cost performance of the memory, use efficiency of the memory and a CPU (Central Processing Unit) and data storage efficiency can be improved; the OLAP query optimization method can be widely applied to universal OLAP application scenes.

Description

technical field [0001] The invention relates to a storage optimization and OLAP (Online Analytical Processing) query optimization method in the field of databases, in particular to a two-level DRAM (Dynamic Random Access Memory) and Flash (flash memory) suitable for the memory database integrated machine platform OLAP query optimization method under storage-based memory-flash hybrid storage mode. Background technique [0002] In-memory analysis processing (in-memory OLAP) is an important technology for real-time analysis and processing of big data. With the support of large memory and parallel processing capabilities of multi-core processors, in-memory OLAP has excellent real-time analysis and processing capabilities, but compared to other storage devices, such as flash , disk, etc., memory is still a very expensive storage medium, and its storage energy consumption is an order of magnitude higher than that of flash (DRAM: ~100mW / GB, NAND flash: 1-10mW / GB), memory OLAP analy...

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 Patents(China)
IPC IPC(8): G06F17/30G06F3/06
CPCG06F3/068G06F16/2237G06F16/24534
Inventor 张延松张宇王珊
Owner RENMIN UNIVERSITY OF CHINA