-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Labels
Description
What to add
Add a single new option for db.Query(ctx, sql, query.WithConcurrentResultSets(true)) that enables option
| ConcurrentResultSets: false, |
When queries return multiple result sets, some may be computed concurrently. If enabled, parts of different result sets may be interleaved in the response stream.
Out of scope
- All other methods (
Session.Query,table.Client, streaming, etc.). - If the option is omitted, behavior is unchanged.
Benchmark test
Execute 50 independent SELECT statements within a single query and measure wall time:
- Without the new option.
- With the new option enabled.
Refactor
Refactor the current implementation to ensure it does not depend on the ConcurrentResultSet option.