You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql: use soft limit if available to decide on scan distribution
Release note (bug fix): In 25.1 we changed the physical planning
heuristics so that large constrained table scans, estimated to scan
at least 10k rows (controlled via `distribute_scan_row_count_threshold`),
would force plan distribution with `distsql=auto` mode. However, if
the scan has a "soft limit" we would still use the full estimate (e.g.
in "estimated row count: 100 - 10,000" we would use 10k as the estimate)
which can lead to distributing queries that shouldn't be, increasing the
query latency. New session variable `use_soft_limit_for_distribute_scan`
(default `false`) determines whether we use the soft limit when deciding
that a scan is "large" or not.
0 commit comments