Have a personal or library account? Click to login
Research of LOB Data Compression and Read-Write Efficiency in Oracle Database Cover

Research of LOB Data Compression and Read-Write Efficiency in Oracle Database

Open Access
|Feb 2019

Figures & Tables

Table 1

Minute and second data table structure of specific database.

Field namePrimary keyField typeExample of valueDescription of value
startDatedate2006-02-23One record per day
stationIDChar(5)44010National unified 5-digit station ID
pointIDChar(1)4Positioned to each set of instrument
itemIDChar(4)3125D, H, Z, F, I, X, Y
sampleRateChar(2)0101: Minute data, 02: Second data
obsValueClob86.73 86.23 … 89.12The data is separated by a space character, 1440 minute data and 86400 second data are observed per day.
Table 2

Average compression rate of every record.

DataCompression algorithmPre-compression capacity (KB)Compressed clob capacity (KB)Compressed blob capacity (KB)Compression time (s)Decompression time (s)Clob compression rate (%)Blob compression rate (%)
Second dataBzip2588.5137.46228.0960.189090.020166.244.68
Gzip588.5163.37647.5310.033700.0069210.457.84
GzipIO588.5186.90665.1790.013280.0063314.3610.77
Minute dataBzip28.8420.9610.7200.004580.0011310.898.15
Gzip8.8421.3991.0480.001000.0003415.7611.81
GzipIO8.8422.0081.5050.000350.0002722.6216.95

[i] Note: The black bold characters refer to smallest compressed capacity, shortest compression and decompression time, and highest compression rate.

Table 3

Average data exchange speed test of every record.

Field typeCompression algorithmSecond dataMinute data
Capacity of every record (KB)Estimated exchange rateActual exchange time (s)Actual exchange rateCapacity of every ecord (KB)Estimated exchange rateActual exchange time (s)Actual exchange rate
Blob
(Binary)
Bzip228.0920.90.0518.970.7212.30.0431.13
Gzip47.5312.40.0587.891.058.40.0441.11
GzipIO65.189.00.0647.141.505.90.0441.09
Uncompressed588.511.00.2481.848.841.00.0451.06
Clob
(Ascii)
Bzip237.4615.70.0686.750.969.20.0451.06
Gzip63.389.30.0835.491.406.30.0451.08
GzipIO86.916.80.1064.302.014.40.0461.05
Uncompressed588.510.4568.840.048
Table 4

Read-write speed test result of four storage structures.

An instrument (6 elements) Read and Write times(second)Second dataMinute data
1 day31 day31 day
LocalRemoteLocalRemoteLocalRemote
Field typeCompression algorithmRead(s)Write(s)Read(s)Write(s)Read(s)Write(s)Read(s)Write(s)Read(s)Write(s)Read(s)Write(s)
Blob
(Binary)
Bzip20.201.211.732.925.3644.4339.9896.321.742.3226.7651.93
Gzip0.110.231.642.062.916.8839.5263.911.481.3726.7149.96
GzipIO0.120.141.872.043.104.1145.8263.021.561.2326.7549.95
Uncompressed0.360.374.636.4311.0212.28194.44200.600.971.4025.8350.39
Clob
(Ascii)
Bzip21.031.2317.153.0128.5444.72556105.633.072.1443.4251.53
Gzip1.470.2428.242.1342.527.4894476.762.831.4146.6750.38
GzipIO1.950.1638.212.2257.294.97127876.712.691.3355.2150.14
Uncompressed11.940.39243.706.58372.5212.587568205.566.251.58139.1550.88

[i] Note: Read time = Database read time + Decompression time, Write time = Compression time + Database write time. The black bold characters refer to the highest read-write speed in the four storage structures.

dsj-18-892-t1.png
Table 5

Read speed test result of three LOB read methods.

Language: English
Submitted on: Sep 12, 2018
|
Accepted on: Jan 28, 2019
|
Published on: Feb 8, 2019
Published by: Ubiquity Press
In partnership with: Paradigm Publishing Services
Publication frequency: 1 issue per year

© 2019 Jianjun Wang, Yingang Zhao, Gaochuan Liu, published by Ubiquity Press
This work is licensed under the Creative Commons Attribution 4.0 License.