Skip to main content

Module sort

Module sort 

Source
Expand description

Writing a file again, sorted by a key.

Sorting is the cheapest thing a writer can do for the reader: when the rows are in order, the min and max of every row group say something, so a reader can skip the row groups it does not need. It is also worth bytes: the same values in order compress better.

The sort happens in memory, so this is for files that fit.

Functionsยง

sort_file
Read a file, sort it by a column, and write it again.