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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


