The stored timeout applying across matching shapes is useful, but changing filter values can change the amount of work dramatically. A narrow reporting period and a year-long one may share a shape while needing very different execution budgets.
I would extend the timeout demonstration with several parameter values and record examined documents and completion rates, rather than calibrating from one representative request. That would expose whether a shared budget protects the service or rejects legitimate expensive variants. Keeping the stored setting and command-level value in the diagnostic output also makes the precedence rule easier to explain when a caller's longer timeout appears to have no effect.
Good point, especially about a daily report and a year-long one sharing the same shape. I used 1 ms to demonstrate enforcement, but that doesn’t tell us what a sensible shared budget would be. I’ll add a note about testing realistic parameter ranges and checking both timeout values when diagnosing failures. Thanks for the suggestion!
Separating the 1 ms enforcement demonstration from budget calibration would make the example easier to interpret. I would also keep timed-out requests in the evaluation table instead of reporting latency only for completed queries.
Otherwise, tightening the timeout can make the surviving requests look faster while hiding the wider reporting ranges that stopped completing. A small table with parameter range, successful completion rate, timeout count, and effective timeout would connect the configuration example to the workload tradeoff you described.
Ahmet Özel
The stored timeout applying across matching shapes is useful, but changing filter values can change the amount of work dramatically. A narrow reporting period and a year-long one may share a shape while needing very different execution budgets.
I would extend the timeout demonstration with several parameter values and record examined documents and completion rates, rather than calibrating from one representative request. That would expose whether a shared budget protects the service or rejects legitimate expensive variants. Keeping the stored setting and command-level value in the diagnostic output also makes the precedence rule easier to explain when a caller's longer timeout appears to have no effect.