Conversation

Agreed. Btw, regarding sort templating and specialisations: Why not try radix sort for integers or even for strings. One could even take into account the column statistics to choose between quicksort and radix sort and use a costing model behind that. What‘s your opinion on that?
1
The difficulty often comes from real world data having lots of variability. The worst case matters a lot. Alphasort paper uses a car analogy for this: "street-legal versus formula one". The fastest cars cannot be driven on public roads. That might be relevant to radix sort ideas.
1
I was thinking about non-tuple sort or single datum tuple sort that could benefit. One idea for general tuple sort could be to optimize that by extracting out the sort key from the whole tuple and putting it into a dense array with an offset into the tuplestore appended /1
2
1