PersistKeysToDbContext Causing Extended Startup Time? #50466
Unanswered
TheWrightDev
asked this question in
Q&A
Replies: 2 comments
-
Here is an example of one of the long delays in the log.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I believe this is due DB context initialisation and requests during startup for the data protection key. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Title basically says it all. The table exists, it has the key it's going to use ready any waiting, but when I launch it I can't actually get any kind of response (just
ERR_CONNECTION_REFUSED
) for ~30 seconds.This works great, controllers become available within a second or two.
This take ~30 seconds, which when developing is a real pain to wait to check a change:
Watching the memory I can see the moment the app becomes available:

Anyone have any insight what's causing such a long delay? I even tried making it its own DbContext that was completely empty except for the DataProtectionKeys, but no dice.
Beta Was this translation helpful? Give feedback.
All reactions