A method and device for processing large-field data

A processing method and large-field technology, applied in database-related fields, can solve the problems of large-field data page space waste, increase the cost of input and output of large-field data pages, and store other data, etc.

Active Publication Date: 2019-07-09
SHANGHAI DAMENG DATABASE
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] For this simple large-field independent storage method, the limitation is: for storing large-field data, at least one large-field data page is required, however, for a large-field data page, it can only be used to store one large field data
However, in practical applications, the length of many large field data will not exceed half of the data page. In this case, after a large field data page stores a large field data, there will be a large amount of free space left, and these free spaces are also Can no longer be used to store other data
This results in a waste of space for large-field data pages; at the same time, when batch queries are performed on large-field data, the input and output costs of large-field data pages will also be increased, thereby reducing the execution efficiency of the database

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
  • A method and device for processing large-field data
  • A method and device for processing large-field data
  • A method and device for processing large-field data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0019] figure 1 It is a schematic flowchart of a method for processing large-field data provided in Embodiment 1 of the present invention. The method is suitable for processing large-field data, and can be executed by a large-field data processing device, wherein the device can be implemented by software and / or hardware, and is generally integrated into a database management system.

[0020] Such as figure 1 As shown, a method for processing large-field data provided by Embodiment 1 of the present invention specifically includes the following operations:

[0021] S101. Receive a processing instruction for processing large-field data in a specified database table.

[0022] In this embodiment, the specified database table can be specifically understood as any basic table created in the database and including columns whose data type is a large field. In this embodiment, the large-field data can specifically be understood as data corresponding to a column whose data type is a l...

Embodiment 2

[0031] figure 2 It is a schematic flowchart of a method for processing large-field data provided by Embodiment 2 of the present invention. Embodiment 2 of the present invention is optimized on the basis of the above-mentioned embodiments. In this embodiment, the processing method further includes: when creating the specified database table, if it is detected that there is a data type in the specified database table of For the columns of large fields, an exclusive large field data segment is created for the column, and the large field data segment is the data environment required for processing large field data; at least one control group is created in the large field data segment, and A data page is correspondingly allocated to the control group, and the data page is recorded as a large-field control page.

[0032] Such as figure 2 As shown, a method for processing large-field data provided by Embodiment 2 of the present invention specifically includes the following operat...

Embodiment 3

[0049] image 3 It is a schematic flowchart of a method for processing large-field data provided by Embodiment 3 of the present invention. Embodiment 3 of the present invention is optimized on the basis of the above embodiments. In this embodiment, "determine the data page to which the large-field data belongs according to the processing instruction, and perform corresponding processing on the large-field data" The specific optimization is: when the processing instruction is a storage instruction, determine the large-field record page required to store the large-field data, and perform a storage operation on the large-field data; when the processing instruction is a modification instruction, Determine the large-field record page to which the large-field data belongs, and modify the large-field data; when the processing instruction is a delete instruction, determine the large-field record page to which the large-field data belongs, and modify the large-field data Delete the ab...

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 processing method and device of big-field data. The processing method comprises the following steps: receiving a processing instruction for processing the big-field data of an appointed database table; and if the data length of the big-field data is smaller than or equal to a pre-set threshold value, determining a data page to which the big-field data belongs according to the processing instruction and carrying out corresponding processing on the big-field data, wherein the data page is recorded as a big-field recording page, and the big-field recording page is used for storing data information of at least two big-field data. With the adoption of the processing method, the data page to which the big-field data belongs stores data information of the two big-field data at least, so that a storage space of a database can be saved and resource wastes of the storage space are reduced; and furthermore, a data page loading amount can also be reduced when the big-field data is processed and input / output cost is reduced when the big-field data is processed, so that the executing efficiency of the database is improved.

Description

technical field [0001] The embodiments of the present invention relate to the field of database-related technologies, and in particular, to a method and device for processing large-field data. Background technique [0002] A large field is a data type in the database, and the data stored in the large field type is called large field data. Generally, the data stored in the large field type can be divided into two categories: one is long text, the common text type can only store up to 4000 Chinese characters, and the long text stored based on the large field type can be far greater than 4000 characters; the other One type is binary information, such as pictures or files. Compared to other data types, large fields require special storage. [0003] Because the size of large field data is generally large, even larger than the maximum row size specified by the database. This means that many large field data cannot be stored directly in the row unit of the database table. In th...

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 Patents(China)
IPC IPC(8): G06F16/21G06F16/22
CPCG06F16/217G06F16/2219G06F16/2282
Inventor 王攀郭琰望声宜
Owner SHANGHAI DAMENG DATABASE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products