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

Cold and hot data storage method and device and electronic device

A technology of hot and cold data and hot data, applied in the field of cold and hot data storage method and device, and electronic equipment, can solve the problem of high data storage cost

Pending Publication Date: 2019-06-07
PING AN TECH (SHENZHEN) CO LTD
View PDF7 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to solve the problem of high data storage cost in related technologies, the present invention provides a cold and hot data storage method and device, and electronic equipment

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
  • Cold and hot data storage method and device and electronic device
  • Cold and hot data storage method and device and electronic device
  • Cold and hot data storage method and device and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0055] The implementation environment of the present invention may be an electronic device, such as a smart phone, a tablet computer, or a desktop computer.

[0056] figure 1 It is a structural schematic diagram of a device disclosed in an embodiment of the present invention. The apparatus 100 may be the above-mentioned electronic equipment. Such as figure 1As shown, apparatus 100 may include one or more of the following components: processing component 102 , memory 104 , power component 106 , multimedia component 108 , audio component 110 , sensor component 114 , and communication component 116 .

[0057] The processing component 102 generally controls the overall operations of the device 100, such as operations associated with display, phone calls, data communications, camera operations, and recording operations, among others. The processing component 102 may include one or more processors 118 to execute instructions to complete all or part of the steps of the methods des...

Embodiment 2

[0066] see figure 2 , figure 2 It is a schematic flowchart of a cold and hot data storage method disclosed in the embodiment of the present invention. Such as figure 2 The cold and hot data storage method shown may include the following steps:

[0067] 201. Back up the hot data in the hot database to the cold database; wherein, the hot database is used to store hot data, and the cold database is used to store cold data; the hot data is data whose data access frequency within the target duration is greater than or equal to the preset access frequency , cold data refers to the data whose data access frequency within the target time period is less than the preset access frequency.

[0068] In the embodiment of the present invention, the hot database can be used to store hot data with high access frequency (such as online data), which needs to deal with complex query, insert, update and delete operations, and, in order to give priority to ensuring the high efficiency of read...

Embodiment 3

[0089] see image 3 , image 3 It is a schematic flowchart of another cold and hot data storage method disclosed in the embodiment of the present invention. Such as image 3 As shown, the hot and cold data storage method may include the following steps:

[0090] 301 . Determine whether there is duplicate cold data in the cold database that is the same as any hot data in the hot database. If there is duplicate cold data, perform step 302 ; if there is no duplicate cold data, perform step 303 .

[0091] 302 . Delete the duplicated hot data identical to the duplicated cold data from the hot database, and back up the remaining hot data in the hot database after deleting the duplicated hot data to the cold database, and directly execute step 304 .

[0092] In the embodiment of the present invention, if it is determined that there is cold data identical to any hot data in the hot database in the cold database, then it is determined that the cold data is repeated cold data, and 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 the technical field of data updating, and discloses a cold and hot data storage method and device and an electronic device. The method comprises the following steps: backing up hot data in a hot database to a cold database; wherein the hot database is used for storing hot data, and the cold database is used for storing cold data; wherein the hot data is data with the dataaccess frequency greater than or equal to the preset access frequency within the target time length, and the cold data is data with the data access frequency less than the preset access frequency within the target time length; judging whether target hot data converted into cold data exist in the hot database or not; and if the target hot data exists, deleting the target hot data from the hot database. According to the embodiment of the invention, the hot database with high real-time performance and high cost can store the hot data frequently accessed by the nodes, and the cold database with low real-time performance and low cost can store the cold data which are not frequently accessed, so that the storage cost is greatly saved, and the access utilization rate of the data is ensured to themaximum extent.

Description

technical field [0001] The invention relates to the technical field of data update, in particular to a cold and hot data storage method and device, and electronic equipment. Background technique [0002] With the development and continuous operation of the business, the business system of the enterprise often generates a large amount of data, which is stored in the database for users to access according to different business needs. At present, in order to cope with high-frequency data access, most enterprises use large-scale storage clusters with high real-time performance (such as MySQL, Cassandra, and MongoDB) to store data. However, due to the large amount of data, the access performance of the database is degraded. If more databases are built to match the increasing data size, the storage cost will be greatly increased. Contents of the invention [0003] In order to solve the problem of high data storage cost in the related art, the present invention provides a cold a...

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/22G06F11/14
Inventor 李红伟
Owner PING AN TECH (SHENZHEN) 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