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

Data storage method and device, server and storage medium

A data storage and server technology, applied in database indexing, structured data retrieval, etc., can solve problems such as inability to store data effectively, a record is not allowed to be stored across pages, etc., to achieve the effect of reducing length and storage space

Inactive Publication Date: 2019-06-21
SHANGHAI DAMENG DATABASE
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The current database usually uses the data page as the smallest unit for storage. Multiple records can be stored in one data page, but a record cannot be stored across pages. Therefore, when the storage space required by a record is greater than the storage space of the data page, it usually cannot effectively store the data

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, server and storage medium
  • Data storage method and device, server and storage medium
  • Data storage method and device, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] figure 1 It is a flow chart of the steps of a data storage method provided by Embodiment 1 of the present invention. This embodiment is applicable to the storage of super-long data records. This method can be executed by a data storage device. See figure 1 , the data storage method provided by the embodiment of the present invention specifically includes the following steps:

[0026] Step 101. Obtain an original data record to be stored, and extract at least one field to be changed in the original data record.

[0027] Among them, the original data record can be the data record that needs to be stored in the database, the original data record can be composed of multiple fields, the field to be changed can be a field whose length changes with the length of the stored information, and can include variable-length character type fields And variable-length binary type fields, etc., can also be fields whose storage length exceeds a certain threshold.

[0028] Specifically, ...

Embodiment 2

[0040] figure 2 It is a flow chart of steps of a data storage method provided in Embodiment 2 of the present invention. This embodiment is a solution provided on the basis of the foregoing embodiments. see figure 2 , the data storage method provided in this embodiment includes:

[0041] Step 201. Obtain the storage length of each field in the original data record.

[0042] Wherein, the storage length can be the length occupied by the data information storage space of each field in the data record, which can be determined according to the storage type of the data information of each field. For example, if the data information storage type of a field is an integer type, then the storage length of this field Can be 4 bytes.

[0043] Specifically, the storage length of each field can be obtained according to the storage type of each field in the data record, and the data information stored in each field in the data record can also be obtained, and the storage length of each ...

Embodiment 3

[0088] image 3 It is a schematic structural diagram of a data storage device provided in Embodiment 3 of the present invention. The data storage device provided in the embodiments of the present invention can execute the data storage method provided in any embodiment, and has corresponding functional modules and beneficial effects for executing the method. see image 3 , the data storage device provided by the embodiment of the present invention includes: a record acquisition module 301 , a replacement field generation module 302 and a target record generation module 303 .

[0089] Wherein, the record obtaining module 301 is configured to obtain the original data record to be stored, and extract at least one field to be changed in the original data record.

[0090] The replacement field generation module 302 is configured to perform storage conversion based on each of the fields to be changed, and generate a replacement field corresponding to the field to be changed.

[00...

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, a server and a storage medium. The method comprises the steps of obtaining a to-be-stored original data record, and extracting at least one to-be-changed field in the original data record; Performing storage transformation based on each to-be-changed field, and generating a replacement field corresponding to the to-be-changed field; And replacing the corresponding to-be-changed field in the original data record by adopting each replacement field to form a target data record and storing the target data record. According to the data storage method provided by the embodiment of the invention, the data recording length can be reduced, and conventional data page storage of ultra-long data records can be realized.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of data storage, and in particular, to a data storage method, device, server, and storage medium. Background technique [0002] With the advent of the digital age, people's basic necessities of life are generating data all the time, and the data that needs to be stored is growing explosively. Therefore, how to accurately store data is an important issue in the current era. [0003] The current database usually uses the data page as the smallest unit for storage. Multiple records can be stored in one data page, but a record cannot be stored across pages. Therefore, when the storage space required by a record is greater than the storage space of the data page, it usually cannot effectively store the data. Contents of the invention [0004] The invention provides a data storage method, device, server and storage medium to realize effective storage of ultra-long data records. [000...

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 Applications(China)
IPC IPC(8): G06F16/22
Inventor 王家贤望声宜
Owner SHANGHAI DAMENG DATABASE