Open justinj opened 5 years ago
CC @ridwanmsharif (segmented sort is part of this larger issue)
We have marked this issue as stale because it has been inactive for 18 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 5 days to keep the issue queue tidy. Thank you for your contribution to CockroachDB!
We have marked this issue as stale because it has been inactive for 18 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to CockroachDB!
Today, the optimizer just has a single
sort
, which doesn't distinguish between a global sort, top-k, or segmented sort. We just set up the situations where they can be used and rely on distsql to plan the correct sort algorithm. It would be better if all this decision making was explicitly centralized in the optimizer.Jira issue: CRDB-5655