Open lahma opened 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.
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.