Supercharge Your Innovation With Domain-Expert AI Agents!

Association rule-based database file page prefetching method and device

A file page and database technology, applied in the database field, can solve the problems affecting the response speed of the database, large consumption of memory, cpu and disk resources, etc., and achieve the effect of improving prefetch accuracy, improving response speed, and reducing waiting time

Pending Publication Date: 2022-05-10
CHINA TELECOM CLOUD TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] In view of this, the embodiment of the present invention provides a method and device for prefetching database file pages based on association rules, so as to overcome the linear prefetching method of file pages based on the principle of program locality in the prior art. The consumption of disk and disk resources is large, which affects the response speed of the database

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
  • Association rule-based database file page prefetching method and device
  • Association rule-based database file page prefetching method and device
  • Association rule-based database file page prefetching method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0111] 1. The sequential prefetching step is reserved in buf_reader. Sequential prefetching embodies the principle of time and space locality of the program, and it has been proved to have practical benefits, so it is retained;

[0112] 2. Call the associated prefetch method in buf_reader, and execute it in parallel with sequential prefetch

[0113] 3. The sequential prefetching relationship is removed in the associative prefetching method; since the sequential relationship occurs frequently in sequential prefetching, it is not included in the associative relationship to reduce the storage space of the associative relationship.

[0114] Regarding association rule extraction and maintenance implementation:

[0115] 1. Inherent association: Inherent association is a user-defined inherent association, mainly including foreign key association, trigger association, etc. This type of association needs to be adjusted when data is added, deleted, or modified.

[0116] 2. Temporal sym...

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 embodiment of the invention provides a database file page prefetching method and device based on association rules. The method comprises the steps that a currently read first file page and the number requirement of prefetched file pages are obtained; based on the first file page, determining a corresponding second file page in the disk according to an association rule between preset file pages; determining a storage mode of the second file page based on a relationship between the number requirement of the prefetched file pages and a preset storage threshold value; based on the storage mode, third file pages meeting the requirement for the number of the pre-fetched file pages are extracted from the second file pages and loaded to the memory. Therefore, the access trend of the data can be reflected by utilizing a plurality of association rules existing in the database, the file pages are prefetched through the association rules, the database prefetching accuracy can be improved, the database waiting time can be shortened, the database response speed can be improved, and the data access efficiency can be improved by flexibly determining the storage mode of the prefetched file pages in the memory. The maximum database performance improvement is achieved by consuming the minimum memory, CPU and disk resources.

Description

technical field [0001] The invention relates to the technical field of databases, in particular to a method and device for prefetching database file pages based on association rules. Background technique [0002] In a database system, a file page (page for short) is the smallest unit of disk storage and management. The process of database accessing data after receiving sql request is: [0003] 1. Calculate the file page of the data in the disk. [0004] 2. Load the file page from disk to memory. [0005] 3. Read data from memory. [0006] In this process, the time consumption of calculating the data location and reading data from memory is negligible, and the most time-consuming step is loading data from disk to memory. In the process of processing SQL requests, the database can process memory data and disk IO in parallel; if you can read the file page (page) that needs to be loaded in the next step while processing memory data, you can reduce waiting for disk IO time, ...

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): G06F16/172G06F12/123
CPCG06F16/172G06F12/123
Inventor 蒋伟苏飞唐钰杰曾令江周国剑
Owner CHINA TELECOM CLOUD 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