c# - Entity Framework as a web app speed issues -


i'm trying root cause issue slow speed upon sign in in ef6 web app hosted in azure. research i've done still don't quite understand why app behaving way is.

when first deploy app, , attempt sign in, it's slow, understand why, , it's acceptable. subsequent sign-ins , calls relatively quick. don't understand why if don't interact application maybe 5 minutes (even though azure web app has on set enabled , standard pricing tier web app) next login down taking 20+ seconds.

i don't quite understand "first run" means when says in regards entity being slow. mean, "the first time web app accessed anyone", or mean like, "when dbcontext instantiated 1 specific client first time, specific first run, , instance of app/dbcontext whatever warmed , ready"

the latter doesn't seem make sense, because can sign in on 1 machine, , move machine , relatively quick well.

"first time" means first dbcontext use (query) after application starts. when app iddle time, app pool restarted , next time enter site start again. that's why ef takes time when there no activity time.

have @ this post app pool restart in azure


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -