Lune

ICDE2026Top-tier venue

Sorting Compressed Time Series

Zhiheng Liu, Xingyu Liu, Shaoxu Song, Jianmin Wang

2026Year

Abstract

Compression is commonly used to reduce storage costs in large-scale time series databases. While time series data should be ordered by timestamps, they often arrive out of order due to network delay and thus need to be sorted. However, most existing compression schemes do not support direct swap operations on compressed data, and thus need to decompress for sorting. The challenges of sorting directly the compressed data are the potential space amplification and high time costs when performing swap operations. In this paper, (1) we design the Order-Sensitive Encoding (OSE) method, which not only reduces space usage as the orderliness of the time series improves, but also delivers high encoding and decoding speeds. Based on the space-bound of OSE, (2) we propose the Compressed Bubble Sort (CBS) algorithm, which enables sorting compressed data without space amplification. Notably, it achieves a time complexity of O(n)O(n), since the delay of time series data typically follows an exponential distribution. Furthermore, (3) we propose the Compressed Merge Sort (CMS) algorithm for merging two compressed and ordered time series in database compaction. It needs only O(1)O(1) time cost by leveraging the ordered nature of data segments, given the exponential delay distribution. The proposed OSE has been implemented as encoding method in Apache TsFile, while CBS and CMS as compressed sorting operators in Apache IoTDB. The experimental results demonstrate that our approach significantly improves both space and time efficiency.

Ask about this paper

Ask your agent about it.

Lune has read the top-tier papers around this one, so every answer names the papers it rests on.

Questions to start from

Your agent calls

Lunesearch_papers

Ask in Lune

Free to start. No credit card required.

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines