Commit 4e071d5
committed
perf(database): normalize logged SQL without extracting tables
Call the existing normalization helper directly for base query-log records. Statement type and table extraction remain in the optional analysis path, where their results are used. Verify the normalized SQL actually persisted by the logger.
Complete in-memory SQLite read-and-log workload on a shared M3 Pro laptop, Bun 1.3.14: 23.581 to 22.3115 us per operation (5.38% less time), three alternating pairs, all 3000 records verified each round. No disk HTTP throughput claim. Passed 1377 router/database tests, 366 unit tests, lint, typecheck, and both review axes.1 parent e888d06 commit 4e071d5
3 files changed
Lines changed: 10 additions & 3 deletions
File tree
- storage/framework/core/database
- src
- tests/fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
107 | 114 | | |
108 | 115 | | |
109 | 116 | | |
| |||
0 commit comments