English

Reordering Columns for Smaller Indexes

Databases 2015-03-13 v8

Abstract

Column-oriented indexes-such as projection or bitmap indexes-are compressed by run-length encoding to reduce storage and increase speed. Sorting the tables improves compression. On realistic data sets, permuting the columns in the right order before sorting can reduce the number of runs by a factor of two or more. Unfortunately, determining the best column order is NP-hard. For many cases, we prove that the number of runs in table columns is minimized if we sort columns by increasing cardinality. Experimentally, sorting based on Hilbert space-filling curves is poor at minimizing the number of runs.

Keywords

Cite

@article{arxiv.0909.1346,
  title  = {Reordering Columns for Smaller Indexes},
  author = {Daniel Lemire and Owen Kaser},
  journal= {arXiv preprint arXiv:0909.1346},
  year   = {2015}
}

Comments

to appear in Information Sciences

R2 v1 2026-06-21T13:43:39.369Z