Repository navigation
Commit 2d130e5
table_function: expose transaction_storage in BindParams
Lets cardinality() and statistics() share the same per-transaction
storage that on_init reads/writes, so workers can cache expensive
bind-time lookups (e.g. remote watermarks) once per SQL transaction
instead of once per bind/cardinality/statistics/init phase.
_make_bind_params constructs the TransactionBoundStorage from
bind_call.transaction_id and cls.storage; None when transaction_id
is unset (the framework normally provides one under autocommit).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b02a467 commit 2d130e5
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
297 | 304 | | |
298 | 305 | | |
299 | 306 | | |
| |||
574 | 581 | | |
575 | 582 | | |
576 | 583 | | |
| 584 | + | |
577 | 585 | | |
578 | 586 | | |
579 | 587 | | |
580 | 588 | | |
581 | 589 | | |
| 590 | + | |
582 | 591 | | |
583 | 592 | | |
584 | 593 | | |
| |||
0 commit comments