1 Introduction
In the current era of AI that transforms the way we live and work, data management and processing techniques are continuously challenged as AI methods effectiveness depends on the availability of vast amounts of data1. Despite the annual doubling of electronically stored data volume, the cost of storage capacity decreases at a rate of less than one-fifth per year2. For this reason, both lossless3 and lossy4 compression techniques have been developed and optimized to reduce the data storage for specific applications as well as for general use.
The current approach to database compression, which we refer to as monolithic, utilizes a single, typically lossless method to reduce the disk space of a database. These systems can result in significant savings on storage costs, but cannot adapt to data distribution changes. Thus, they cannot select the best encoding/compression scheme for a given dataset5,6.
This paper proposes a multiple compression approach, dubbed COMPASS, that uses different compression techniques for different data subsets in a database. It is anchored on the hypothesis of SIBACO that multi-scheme data compression is more effective for complex big data7. Specifically, COMPASS breaks down relational data into rows or columns and applies the most suitable compression scheme to individual columns or groups of columns.
The paper presents and evaluates two versions of COMPASS: COMPASS-D, which exploits K-Means clustering on data, and COMPASS-E, which exploits K-Means of column entropy to group similar columns. Finally, the best compression scheme is selected for each column group. The experimental results using the Envmon database, a real dataset from the Environmental Monitoring Platform1, show that COMPASS significantly reduces disk space usage compared to monolithic methods, where COMPASS-E outperforms COMPASS-D in terms of compression time as well as proximity to the optimal compression ratio.
The remainder of the paper is structured as follows: Section 2 reviews the current state-of-the-art in compression techniques. Section 3 presents methodology of COMPASS and Section 4 presents our experimental results. Section 5 concludes our paper by discussing the next steps of our work.
2 Related work
The realm of big data storage has seen various advancements in compression techniques aimed at reducing storage expenses while preserving efficient data retrieval. We focus on lossless compression techniques in this work as the majority of data-intensive applications need to be able to support exact queries over stored data.
Lossless data compression can be categorized into four main types. Dictionary-based compression uses a dictionary to capture frequently appearing values within the data, replacing them with a shorter index code (examples include LZ77 and LZ78). Statistical compression relies on statistical models to estimate the frequency of data values (such as Huffman coding and LZMA). Transform-based compression applies mathematical transformations to condense the data into a more compressed format (like Burrows-Wheeler Transform and BZIP2). Finally, Hybrid compression merges techniques from the aforementioned categories to enhance compression efficiency (for instance, DEFLATE, which combines LZ77 and Huffman coding).
Big companies have developed specialized lossless compression techniques tailored to their specific application needs. Google’s Snappy2 for example, performs compression through byte-level operations and bit-stream encoding, whereas Facebook’s Zstandard3 employs dictionary-based methods designed for real-time data compression. Additionally, LZ44 is recognized for its speed, employing a byte-oriented variant of LZ77. In our experiments, we utilized several well-known compression algorithms from the zipfile library, including LZMA, BZIP2, and DEFLATE representing the three compression types mentioned previously.
The research topic of database compression has been under exploration for more than three decades. To meet the substantial demands of OLAP systems processing big data, columnar storage formats have been developed that incorporate compression techniques to reduce storage costs8–10. Recent advancements in hardware, such as CPUs, RAM, and storage devices, have led to new optimizations that minimize memory accesses by utilizing compression technologies11,12. Building a compression-aware database management systems can reduce the storage cost and improve the query response time by improving compression ratios13. Additionally, cutting-edge approaches are employing machine learning to manage and store vast amounts of data more efficiently14–17.
Moreover, leveraging data organization and data types has proven effective in enhancing query speeds and reducing storage requirements through compression5,6,18. While applying a uniform compression method across different data partitions can increase compression effectiveness19, we suggest employing a variety of compression strategies to achieve superior results. Although our approach is closer to a black-box technique, it aligns with principles of white-box compression by making the compression mechanisms visible to applications via database metadata20.
The evolving landscape of AI models necessitates continuous storage of large-scale data to iteratively enhance the model accuracy and precision. Storing data indefinitely is a problem that traditional methods (e.g. compression) are addressing by exploiting the computational resources. For instance, while lossless and lossy compression techniques exist, they fall short in supporting big data analytics21. data reduction methods such as sampling22, aggregation for OLAP23, dimensionality reduction techniques like LDA and PCA24, and synopsis/sketches25 provide critical insights by simplifying the complexity of large datasets. Another way to deal with ever-increasing huge amounts of data is to utilize the concept of data rotting or data amnesia26,27 to progressively remove detail in stored information as the data ages, thus decreasing the storage cost.
Recent advancements in data compression and querying focuses cloud and big data system, such as BtrBlocks21, optimize decompression and compression ratios for data lakes, enhancing cloud interoperability. Gorilla28, effectively manages vast measurements through float data compression techniques, reducing storage demands significantly. Additionally, Decomposed Bounded Floats29, handles low-precision float data using a decomposed columnar storage format. Moreover, Chimp30 enhances floating point time series data compression, significantly improving compression ratios and access times. These developments underscore the evolving landscape in data compression and querying, providing a crucial context for our COMPASS project.
3 Methods
The hypothesis of COMPASS is that multiple data compression scheme can be more effective for complex big data because it allows for incremental compression and partial decompression. This approach utilizes several compression schemes, each tailored to optimize the compression of different data subsets according to their unique characteristics.
COMPASS breaks down relational data into columns and applies the most suitable compression scheme to individual columns or groups of columns. COMPASS uses K-Means clustering to group similar columns together, based on their data values or entropy, and then applies the best compression technique to each individual cluster. COMPASS determinesthe compression scheme for a single column or a group of columns by exhaustively testing all possible combinations.
Next, we elaborate on COMPASS’ two phases, illustrated in Figure 1: (i) partitioning and grouping compatible columns; and (ii) selection of best performing compression.

Figure 1. COMPASS operates in two phases: (i) partitioning and grouping; and (ii) choosing the most effective compression method.
3.1 Segmentation and clustering of columns
In the first stage, COMPASS partitions each table in the database into a set of columns and utilizes K-Means as the basic method to create groups of similar columns. We apply K-Means in two ways that lead to two different versions of COMPASS: COMPASS-D, which utilizes K-Means clustering on data values, and COMPASS-E, which exploits K-Means clustering on column entropy to group similar columns. The latter is very fast as it reduces dimensionality through entropy. Specifically, COMPASS-E uses Shannon’s entropy31 to identify the compressibility of the columns.
To verify and evaluate our proposed approach, we use the silhouette coefficient32 to select the number of clusters for the K-Means algorithm. Particularly, the silhouette coefficient measures the quality of the clusters based on the distance within the cluster and the average distance to the nearest cluster for each data point. The silhouette coefficient for a data point is calculated using the following formula:
where:
3.2 Selection of best performing compression
In the second stage, COMPASS exhaustively searches for the most suitable compression scheme for the combinations of clusters with low silhouette scores and all compression schemes (e.g., DEFLATED, BZIP2, LZMA).
4 Results & discussion
This section discusses the results and provides details about the experimental setup, including datasets and techniques used for the experimental evaluation.
4.1 Experimental methodology
In our experimentation, we chose the same readily available compression algorithms (i.e., LZMA, BZIP2, and DEFLATE) from the zipfile library, used in SIBACO.
We utilized K-Means to group the columns, after scaling the input data using the StandardScaler, and encoding all string columns using the OrdinalEncoder from the sklearn 1.4.2 library.
Compared Techniques: Our goal in the first experimental series is the comparison of the following four techniques:
BASELINE: This baseline technique compresses the data without considering the data characteristics, using the best compression scheme from the zipfile library for a given table.
SIBACO: This is our previous technique that employs multiple compression schemes7. SIBACO splits the columns into only two groups based on their entropy and applies the best compression scheme to each column group.
COMPASS-D: This is our first proposed technique, which uses KMeans clustering to group of columns based on data values to achieve the best possible compression ratio using multiple schemes if needed.
COMPASS-E: This is our second proposed technique that applies K-Means clustering based on the entropy of the columns, which has significantly lower computation complexity than COMPASS-D.
4.2 Experimental testbed
To validate our proposed ideas and evaluate COMPASS, we conduct the following experiments over two Ubuntu 22.04 server, each featuring 24GB of RAM with Intel(R) Xeon(R) E5-2630 CPU.
Envmon Dataset: This is a real dataset collected from the Environmental Monitoring Platform, developed through the STEAM project (Sea Traffic Management in the Eastern Mediterranean)5. The database contains primarily environmental, meteorological and oceanographic data. The dataset was collected over the course of three years and has a total size of ∼1GB.
4.3 Experimental results
Across all tables, COMPASS-D and COMPASS-E consistently demonstrate the most efficient disk space reduction, resulting to 2–18.2% of the original RAW size. In contrast, BASELINE and SIBACO methods reduce the disk space requirements, 4.6–23.4% and 4–23.6% of the original RAW size, respectively. COMPASS-D and COMPASS-E outperform BASELINE and SIBACO by more than 22% in the worst case and 56% (i.e., ∼2×) in the best case, as shown in Figure 2.

Figure 2. Disk Space for the eight largest tables in the Envmon Database.
4.4 Selecting the number of clusters
In this experimental series, we examine the silhouette coefficient while varying the number of clusters in order to verify that the selection of the number of clusters with low silhouette score can yield good compression performance.
Particularly, Figure 3 shows the silhouette coefficient score for the eight largest table in the Envmon Database for all possible numbers of clusters. The asterisk on top of a bar indicates the number of clusters that yields the best compression ratio after the second stage of COMPASS (i.e., Selection of Compression). The clustering with the lowest silhouette coefficient often coincides or is very close to the one with the star, showing that the proposed approach is a very good proxy for finding the (near) optimal compression clustering. It is important to note that the silhouette coefficient is only defined if the number of clusters is between two and N-1, where N is the total number of columns (i.e., the maximum number of clusters).

Figure 3. Average Silhouette Score for the eight largest tables in the Envmon Database.
The asterisk on top of a bar shows which number of clusters was selected with the best disk space efficiency (X-axis: Number of clusters, Y-axis: Average Silhouette Score).
To better understand the results, we calculate the relative difference between the disk storage of the compressed data for the number of clusters based on the lowest silhouette score and the COMPASS Compression Testing (i.e., the best performing one), using the following formula:
where:
The maximum relative difference for COMPASS-D is ∼8%, with an average of ∼1%. COMPASS-E exhibits less than ∼1% maximum relative difference and ∼0.1% on average, revealing that COMPASS-E’s results are closer to the optimal compression ratios compared to COMPASS-D.
5 Conclusion
This paper presents a novel multiple compression approach, named COMPASS, that uses different compression techniques for different data subsets in a database. We introduce and evaluate two versions of COMPASS, namely COMPASS-D and COMPASS-E, designed to enhance the compression of relational data. COMPASS-D is leveraging K-Means clustering on the data values while COMAPASS-E on the column entropy, to achieve more efficient compression ratios in relational databases. In our experimental evaluation, we observe that COMPASS offers substantial reductions in disk space utilization compared to traditional monolithic methods and our previous work, SIBACO. Specifically, COMPASS-D and COMPASS-E outperform the BASELINE and SIBACO techniques in terms of disk storage savings by more than 22% in the worst case and 56% (i.e., ∼2×) in the best case.
In the future, in addition to entropy and the silhouette coefficient, we plan to explore other data characteristics and indicators to enhance the speed and efficiency of COMPASS. Additionally, we aim to use these metrics to construct a comprehensive knowledge base, providing deeper insights into attribute-based compression signatures.
Ethics and consent
Ethical approval and consent were not required.
Data availability
The data supporting the findings of this study have been deposited in Zenodo and are publicly available at https://doi.org/10.5281/zenodo.1475177733. Data are available under the terms of the Creative Commons Attribution 4.0 International license (CC-BY 4.0).
Acknowledgments
This work is implemented under the programme of social cohesion “THALIA 2021-2027” co-funded by the European Union, through Research and Innovation Foundation, under project COMPASS - CONCEPT/0823/0002, and is also partially supported by the European Union’s Horizon Europe program for Research and Innovation through the HYPER-AI project under Grant No. 101135982. The views, findings, conclusions, or recommendations expressed in this material are solely those of the author(s) and do not necessarily represent those of the sponsors. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Faculty Opinions recommendedReferences
- 1.
Raman V, Swart G:
How to wring a table dry: entropy compression of relations and querying of compressed relations. In: Proceedings of the 32nd International Conference on Very Large Data Bases. 2006; 858–869. Reference Source
- 2.
Data Center Journal: The cost of data storage and management: where is it headed in 2016? 2016. Reference Source
- 3.
Gopinath A, Ravisankar M:
Comparison of lossless data compression techniques. In: Proceedings of the 2020 International Conference on Inventive Computation Technologies (ICICT '20). 2020; 628–633. Publisher Full Text
- 4.
Zhang J, Liu G, Ding D, et al.:
Transformer and upsampling-based point cloud compression. In: Proceedings of the 1st International Workshop on Advances in Point Cloud Compression, Processing, and Analysis (APCCPA '22). New York, NY USA, 2022; 33–39. Publisher Full Text
- 5.
Foufoulas Y, Sidirourgos L, Stamatogiannakisn E, et al.:
Adaptive compression for fast scans on string columns. In: Proceedings of the ACM SIGMOD international conference on management of data (SIGMOD '21). 2021; 554–562. Publisher Full Text
- 6.
Jiang H, Liu C, Paparrizos J, et al.:
Good to the last bit: data-driven encoding with CodecDB. In: Proceedings of the ACM SIGMOD international conference on management of data (SIGMOD '21). 2021; 843–856. Publisher Full Text
- 7.
Costa C, Chrysanthis PK, Costa M, et al.:
Towards a signature based compression technique for big data storage. In: Proceedings of the 39th IEEE International Conference on Data Engineering Workshops (ICDEW '23). 2023; 100–104. Publisher Full Text
- 8.
Abadi DJ, Madden S, Ferreira M:
Integrating compression and execution in column-oriented database systems. In: Proceedings of the ACM SIGMOD international conference on management of data. 2006; 671–682. Publisher Full Text
- 9.
Idreos S, Kersten ML, Manegold S:
Self-organizing tuple reconstruction in column-stores. In: Proceedings of the ACM SIGMOD international conference on management of data (SIGMOD '09). 2009; 297–308. Publisher Full Text
- 10.
Yan Y, Chen LJ, Zhang Z:
Error-bounded sampling for analytics on big sparse data.
Proceedings of the VLDB Endowment.
2014; 7(13): 1508–1519. Publisher Full Text
- 11.
Choukse E, Erez M, Alameldeen AR:
Compresso: pragmatic main memory compression. In: Proceedings of the 51st annual IEEE/ACM international symposium on microarchitecture (MICRO '18). 2018; 546–558. Publisher Full Text
- 12.
Habich D, Damme P, Ungethüm A, et al.:
MorphStore - in-memory query processing based on morphing compressed intermediates LIVE. In: Proceedings of the ACM SIGMOD international conference on management of data (SIGMOD '19). 2019; 1917–1920. Publisher Full Text
- 13.
Podolski P, Ludziejewski T, Nguyen HS:
Data management in training AI chatbot with personality based on granular computing. In: Proceedings of the 2022 IEEE International Conference on Big Data (Big Data '22). 2022; 6247–6252. Publisher Full Text
- 14.
Berezkin A, Slepnev A, Kirichek R, et al.:
Data compression methods based on neural networks. In: Proceedings of the 5th International Conference on Future Networks & Distributed Systems (ICFNDS 2021). 2021; 511–515. Publisher Full Text
- 15.
Costa C, Charalampous A, Konstantinidis A, et al.:
Decaying telco big data with data postdiction. In: Proceedings of the 19th IEEE international conference on Mobile Data Management (MDM '18). 2018; 106–115. Publisher Full Text
- 16.
Costa C, Konstantinidis A, Charalampous A, et al.:
Continuous decaying of telco big data with data postdiction.
GeoInformatica.
2019; 23(4): 533–557. Publisher Full Text
- 17.
Zhang R:
Data reduction. In: Encyclopedia of Database Systems, Ling Liu and M. Tamer Özsu (Eds.), Springer, 2016; 1–6. Publisher Full Text
- 18.
Abebe M, Lazu H, Daudjee K:
Proteus: autonomous adaptive storage for mixed workloads. In: Proceedings of the ACM SIGMOD international conference on management of data (SIGMOD '22). 2022; 700–714. Publisher Full Text
- 19.
Reddy GT, Reddy MPK, Lakshmanna K, et al.:
Analysis of dimensionality reduction techniques on big data.
IEEE Access.
2020; 8: 54776–54788. Publisher Full Text
- 20.
Ghita B, Tomé DG, Boncz PA:
White-box compression: learning and exploiting compact table representations. In: Proceedings of the 10th Conference on Innovative Data Systems Research (CIDR '20). 2020. Reference Source
- 21.
Kuschewski M, Sauerwein D, Alhomssi A, et al.:
BtrBlocks: efficient columnar compression for data lakes.
Proceedings of the ACM on Management of Data.
2023; 1(2): 118. Publisher Full Text
- 22.
Yuan Z, Hendrix W, Son SW, et al.:
Parallel implementation of lossy data compression for temporal data sets. In: Proceedings of the 2016 IEEE 23rd International Conference on High Performance Computing (HiPC '16). 2016; 62–71. Publisher Full Text
- 23.
Stonebraker M, Abadi DJ, Batkin A, et al.:
C-Store: a column-oriented DBMS. In: Proceedings of the 31st International Conference on Very Large Data Bases. 2005; 553–564. Reference Source
- 24.
Rousseeuw PJ:
Silhouettes: a graphical aid to the interpretation and validation of cluster analysis.
J Comput Appl Math.
1987; 20(1987): 53–65. Publisher Full Text
- 25.
Cormode G, Garofalakis M, Haas PJ, et al.:
Synopses for massive data: samples, histograms, wavelets, sketches.
Foundations and Trends in Databases.
2011; 4(1–3): 1–294. Publisher Full Text
- 26.
Kersten ML:
Big data space fungus. In: Proceedings of the 7th Biennial Conference on Innovative Data Systems Research (CIDR '15). 2015. Reference Source
- 27.
Kersten ML, Sidirourgos L:
A database system with Amnesia. In: Proceedings of the 7th Biennial Conference on Innovative Data Systems Research (CIDR '17). 2017. Reference Source
- 28.
Pelkonen T, Franklin S, Teller J, et al.:
Gorilla: a fast, scalable, in-memory time series database.
Proceedings of the VLDB Endowment.
2015; 8(12): 1816–1827. Publisher Full Text
- 29.
Liu C, Jiang H, Paparrizos J, et al.:
Decomposed bounded floats for fast compression and queries.
Proceedings of the VLDB Endowment.
2021; 14(11): 2586–2598. Publisher Full Text
- 30.
Liakos P, Papakonstantinopoulou K, Kotidis Y:
Chimp: efficient lossless floating point compression for time series databases.
Proceedings of the VLDB Endowment.
2022; 15(11): 3058–3070. Publisher Full Text
- 31.
Song J, Guo C, Wang Z, et al.:
HaoLap: a hadoop based OLAP system for big data.
J Syst Softw.
2015; 102: 167–181. Publisher Full Text
- 32.
Shannon CE:
A mathematical theory of communication.
Bell System Technical Journal.
1948; 27(3): 379–423. Publisher Full Text
- 33.
Costa C, Chrysanthis P, Herodotou H, et al.:
Envmon datase.
Zenodo.
2025. http://www.doi.org/10.5281/zenodo.14751777
- 34.
Costa C, Chrysanthis P, Herodotou H, et al.:
COMPASS: big data compression tool using attribute-based signatures.
Zenodo.
2025. http://www.doi.org/10.5281/zenodo.14759015