ravendb / IdentityServer4.Contrib.RavenDB

MIT License
9 stars 3 forks source link

Support existing document store and index creation behind toggle #10

Open lahma opened 2 years ago

lahma commented 2 years ago

This PR adds support to reuse an existing document store from service proivder (we configure it globally and share it with other services too) instead of creating a new document store.

Also adding a toggle whether indexes should be deployed automatically - we have custom migrations (RavenMigrations) and the process also includes refreshing the indexes. We don't want indexes to refresh outside of deployment process.

lukaszdobrzynski commented 2 years ago

@lahma Thank you for drawing out attention to the IDocumentStore issue. Generally speaking, I belive you're right and we should add support for reusing an existing document store. Please read my comment and let's find an optimal solution.