Coldairarrow / EFCore.Sharding

Database Sharding For EFCore
Apache License 2.0
694 stars 144 forks source link

EFCore预热(数据库第一次访问慢) #74

Open xiaohanlaila opened 3 years ago

xiaohanlaila commented 3 years ago

第一次和数据的交互很慢,网上查了一些关于DbContext的优化方法,但是针对Sharding框架,不知道加到哪里合适,请大佬帮忙看看,感谢 https://blog.csdn.net/ma15732625261/article/details/72541184/

Coldairarrow commented 3 years ago

需要底层初始化处理 _ = scop.ServiceProvider.GetService().Model;