Skip to content

Overlap ef model build with local db instance startup#984

Merged
SimonCropp merged 4 commits into
mainfrom
Overlap-EF-model-build-with-LocalDB-instance-startup
Jul 5, 2026
Merged

Overlap ef model build with local db instance startup#984
SimonCropp merged 4 commits into
mainfrom
Overlap-EF-model-build-with-LocalDB-instance-startup

Conversation

@SimonCropp

Copy link
Copy Markdown
Owner

No description provided.

SimonCropp and others added 3 commits July 5, 2026 12:20
Run the model build on a background task while Wrapper.Start blocks on
instance spin-up and kicks off the template build, joining after Start
returns. Neither the template build nor the callback reads Model, so the
two can run concurrently.

Also defer temporal schema discovery (the design-time model read) to
first temporal API use instead of startup.

Measured with a 40 entity context (median of 5, fresh process each):
- warm start, instance running:  ctor+first Build 1132ms -> 604ms
- warm start, instance stopped:  ctor+first Build 1479ms -> 707ms
- cold start:                    ctor 1859ms -> 1221ms
@SimonCropp SimonCropp added this to the 24.1.3 milestone Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants