Commit e9904bc
committed
Harden SQL insert hot path
Restore strict SQL insert scale coverage and reduce repeated INSERT overhead without relaxing row counts or timing budgets.
Cache parameterized INSERT plans with DDL invalidation, route PK and UNIQUE checks through one indexed constraint path, and avoid repeated hot-path schema and row clones.1 parent 11227f4 commit e9904bc
6 files changed
Lines changed: 416 additions & 287 deletions
File tree
- crates
- contextdb-core/tests
- contextdb-engine
- src
- tests
- tests/integration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
0 commit comments