IdentityServer4.Contrib.MongoDB
IdentityServer4.Contrib.MongoDB copied to clipboard
CreateIndexes call in DbContext constructor
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?
Thanks.