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

Data storage method and device for database

A data storage and database technology, applied in the field of data storage methods and devices for databases, can solve problems such as poor data reading and writing efficiency

Pending Publication Date: 2021-10-12
HUAWEI CLOUD COMPUTING TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] For the case where the files involved in the database service are placed on the cloud disk, remote direct memory access (RDMA) technology is needed to read the data in the cloud disk, and the data read and write efficiency is poor.

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
  • Data storage method and device for database
  • Data storage method and device for database
  • Data storage method and device for database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] Such as figure 1 As shown, it is a schematic structural diagram of a system provided by an embodiment of the present application, and the system includes a data processing device 100 , a first memory 200 and a second memory 300 .

[0034] The first memory 200 may include a volatile memory (volatile memory), such as a random access memory (random access memory, RAM). The first memory may also include a non-volatile memory (non-volatile memory, NVM), such as a read-only memory (read-only memory, ROM), a flash memory, a hard disk (hard diskdrive, HDD) or a solid-state disk (solid-state drive, SSD). The first memory may also include a combination of the above categories. The first storage 200 is similar to the second storage 300 , for details, refer to the foregoing content, and details are not repeated here. Wherein, the first storage 200 and the second storage 300 are deployed in different data centers and located in different devices, for example, the first storage 20...

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 data storage method and device for a database, which are used for providing a data storage mode of the database with high efficiency and lower maintenance cost. In the application, the data processing device can record the first log when detecting the data change of the database, the first log is preferentially stored in the first memory, and when the data processing device determines that the storage space in the first memory is insufficient, for example, less than the first threshold value, the data processing device can be switched to the second memory to continue to record the first log, the first memory and the second memory are deployed in different devices. The log of the database is not limited in the local memory any more, and when the storage space in the first memory is insufficient, the first memory can be switched to other memories to continue to store the log, so that the data storage mode of the database is more efficient, the multiple memories can be deployed in different devices, a larger local disk is not needed any more, the disk maintenance cost of the database can be effectively reduced.

Description

technical field [0001] The present application relates to the technical field of communications, and in particular to a data storage method and device for a database. Background technique [0002] At present, the files involved in the database, such as the log for recording data changes in the database, the sorting files generated by performing efflux, etc., are usually placed on the same disk, such as a local disk or a cloud disk. [0003] For the case where the files involved in the database service are placed on the local disk, more local disk space is required, which increases the maintenance cost. [0004] For the case where the files involved in the database service are placed on the cloud disk, remote direct memory access (RDMA) technology is required to read the data in the cloud disk, and the data reading and writing efficiency is poor. [0005] To sum up, there is an urgent need for an efficient and low-maintenance database data storage method. Contents of the i...

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/21G06F16/215
CPCG06F16/219G06F16/215G06F16/21
Inventor 熊刚许友松
Owner HUAWEI CLOUD COMPUTING TECH 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