cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
30.21k stars 3.82k forks source link

opt: explicit planning of sort algorithms #38032

Open justinj opened 5 years ago

justinj commented 5 years ago

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

RaduBerinde commented 5 years ago

32577 is related.

RaduBerinde commented 5 years ago

CC @ridwanmsharif (segmented sort is part of this larger issue)

github-actions[bot] commented 3 years ago

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!

github-actions[bot] commented 1 year ago

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!