IdentityServer4.Contrib.MongoDB icon indicating copy to clipboard operation
IdentityServer4.Contrib.MongoDB copied to clipboard

CreateIndexes call in DbContext constructor

Open iam-black opened this issue 3 years ago • 0 comments

Hello. After some load testing I've noticed that both PersistedGrantDbContext and ConfigurationDbContext call CreateIndexes/ CreateClientsIndexes in constructor which results in noticeable load. As I can see there is no way to skip this behavior. Maybe it will be more reasonable to create indexes on app start? image image

Thanks.

iam-black avatar Apr 17 '21 19:04 iam-black