End-of-day compaction rewrites a day’s intraday files into the historical layout: partitioned, sorted, encoded and compressed for reading. The sort key of a file is the list of columns its rows are ordered by; the zone maps of chapter 3 prune well on its leading columns.
fig_tickstore.py.