In an ad-hoc experiment, changing sql.defaults.distsql to off resulted in a 7.5 improvement in qps, from around 40k to around 43k.^1
DistSQL is likely used for the sysbench "range" queries, which scan 100 consecutive keys. It likely makes no sense to use DistSQL here, as the overhead does not get amortized. There are no unbounded scans here either.
In an ad-hoc experiment, changing
sql.defaults.distsql
tooff
resulted in a 7.5 improvement in qps, from around 40k to around 43k.^1DistSQL is likely used for the sysbench "range" queries, which scan 100 consecutive keys. It likely makes no sense to use DistSQL here, as the overhead does not get amortized. There are no unbounded scans here either.
Epic: CRDB-42584
Jira issue: CRDB-44780