Repository navigation
Description
Parent Issue
Parent issue: #29433
Detail of Subtask
Phase S6. Depends on: #29438, #29439
Measure the cache-free/statement-memoized design against the budgets approved in S1. Cross-request caching is an optional optimization, not an architectural prerequisite.
Deliverables:
- Reproducible benchmarks for repeated single-view introspection, selective versus full-schema column enumeration, many shallow views, deep/shared-dependency graphs, large column counts, concurrent requests, and first reads after DDL.
- Measure latency distribution, CPU, allocations/peak memory, catalog lookups, binder invocations, and source-DDL overhead. Distinguish cold/warm runs and stable schemas from frequent DDL.
- Record exact head, workload shape, cardinality/depth, concurrency, environment, and numeric budgets established before interpreting results.
- Compare against the available existing read path with freshness differences explicitly stated. Do not portray a disabled/not-yet-implemented refresh worker as a measured fully operational alternative.
- Optimize unnecessary full scans, repeated per-column binding, avoidable optimizer work, and within-statement duplication before proposing another long-lived component.
- Publish a go/no-go decision for S7: no cache needed; optional later optimization; or cache required to meet a named rollout budget.
Acceptance criteria:
- Correctness tests remain identical with benchmark instrumentation/optimizations enabled or disabled.
- Resource use is bounded under large metadata requests and cancellation; cache pressure is not substituted for unbounded binding work.
- Any cache requirement includes measured benefit, expected invalidation cost, memory bound, and a separately reviewable design.
- If no cross-request cache is justified, record that result and allow S8 to proceed without S7. S7 may be closed as not planned after the decision is approved.
- Baseline/harness preparation can start after S1, but the final gate uses implemented S3/S4 consumers.
Describe implementation you've considered
Model work per unique selected dependency under statement-local reuse and compare it with the eager affected-view fan-out cost. Use representative synthetic and available real workloads; do not promise O(1) version validation or universal speedups.
Additional information
This task creates the missing performance evidence. No runtime benchmark was executed as part of the initial #29433 code-reading assessment.
Planning baseline: b9013dc6bb058ec74935a62ac3a35f57d13c2f98. This issue records future work, not completed implementation or fresh test evidence. All production work is subject to the approved versioned design from S1. Ordinary views only; materialized-view refresh and unrelated SQL compatibility work are out of scope.
Activity
perf: add S6 view benchmarks and defer regexp map allocation (#31035)