Commit 4682a72
perf(db): pool BaseDbContext registrations in Startup
Swap AddDbContext<BaseDbContext> to AddDbContextPool<BaseDbContext> in
all three mutually-exclusive host registration branches (primary
connection, fallback connection, localhost placeholder). Pool size is
left at the default (1024). BaseDbContext has a
DbContextOptions<BaseDbContext> ctor and no OnConfiguring override, so
pooling is semantically equivalent to the current scoped registration
from the caller's perspective.
This commit has no observable effect on its own because three plugins
(Workflow, TimePlanning, BackendConfiguration) still re-register
BaseDbContext via plain AddDbContext, and DI resolves last-wins. Those
re-registrations are removed in the next commit to actually engage
pooling.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 4114330 commit 4682a72
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
0 commit comments