Repository navigation
Commit a6e1a5e
filter_v2: evaluate on a single-threaded DuckDB
The embedded evaluator opens one DuckDB database per (server thread,
evaluation context) and ran it at the default of one scheduler thread per
core. An evaluation is one small query over one batch, which DuckDB cannot
parallelize, so the pool bought nothing and cost two ways: every evaluation
paid to dispatch onto it (~3.3 -> ~2.4 ms per evaluation on a 48-core host),
and a waitress worker there carried ~290 threads.
Also documents the two PushdownFilters helpers the HTTP replay uses.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 50953cf commit a6e1a5e
2 files changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1165 | 1165 | | |
1166 | 1166 | | |
1167 | 1167 | | |
1168 | | - | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
1169 | 1174 | | |
1170 | 1175 | | |
1171 | 1176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1132 | 1132 | | |
1133 | 1133 | | |
1134 | 1134 | | |
1135 | | - | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
1136 | 1141 | | |
1137 | 1142 | | |
1138 | 1143 | | |
| |||
1143 | 1148 | | |
1144 | 1149 | | |
1145 | 1150 | | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
1146 | 1157 | | |
1147 | 1158 | | |
1148 | 1159 | | |
| |||
0 commit comments