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

Method utilizing cache tables to improve insertion performance of data in database

A technology for data insertion and cache table, which is applied in electrical digital data processing, special data processing applications, instruments, etc.

Active Publication Date: 2012-07-04
XIAMEN YAXON NETWORKS CO LTD
View PDF5 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] By upgrading the server hardware (mainly the hard disk), the database insertion performance can be improved relatively simply, but the improvement range is limited, and the hardware overhead is relatively large, and the overall cost performance is not high
[0004] Batch insertion is a method of concatenating multiple pieces of data to be inserted into one statement and then submitting it to the database for execution at one time. It can achieve a large performance improvement without upgrading the hardware. When the table is read frequently, it is easy to cause the data table to be locked, which will cause frequent and periodic performance degradation, which is not conducive to the stability of the system.

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 utilizing cache tables to improve insertion performance of data in database
  • Method utilizing cache tables to improve insertion performance of data in database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0010] The present invention uses a cache table to improve the performance of database data insertion. Firstly, two memory-based database cache tables are established. Above, so the insertion performance of the table depends on the write performance of the memory, which is far greater than the data table based on the hard disk; first insert the data into the first cache table, and wait until the data in the first cache table exceeds the maximum number threshold Then, import the data of the first cache table into the destination data table in batches. During the import process, if there is new data to be inserted into the database, then insert the new data into the second cache table, and wait for the second cache table to After the data in the second cache table exceeds the maximum number threshold, the data in the second cache table is imported into the destination data table. Once the data in the first or second cache table is imported into the destination data table, the Th...

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 utilizing cache tables to improve insertion performance of data in a database, which includes firstly, building two database cache tables which are based on internal memory and have the same structure with a target data table to be inserted finally; secondly, inserting data into a first cache table, importing the data of the first cache table to the target data table after the data of the first cache table are higher than the maximum number threshold, inserting new data to a second cache table if the new data are required to be inserted to the database during the import process, and then importing data of the second cache table to the target data table after the data of the second cache table are higher than the maximum number threshold. By the method, the insertion performance of the data in the database can be improved greatly without updating of hardware or dead embracing of the database.

Description

technical field [0001] The invention relates to a method for improving database data insertion performance by utilizing a cache table. technical background [0002] Large-scale business application systems generally store system-related business data in a database. During the actual operation of the system, new business data of the same type are written into the data table corresponding to the database. The data of the data table is stored in the hard disk of the server. The writing performance of the hard disk affects the insertion performance of the data table. The current hard disk The read and write performance of the hard disk is the lowest part of the server components, and the read and write performance of the hard disk has become the bottleneck of the insertion performance of the database data table. In order to improve the insertion efficiency of the database, currently adopted technical solutions include: upgrading server hardware or batch insertion. [0003] By ...

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 XIAMEN YAXON NETWORKS CO LTD
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