No, this an Embedded instance and it takes RavenDB a few seconds to initialize the store, that is expected.
RavenDb increased startup time of winform app
Question
I use ravendb as embedded database in my winforms project. Everything works as it should but I do need to check with someone startup time of winform main window. When I'm added IDocumentStore initialization startup time is increased by 5,6 seconds.
inside MainForm.cs I have
private IDocumentStore store = new EmbeddableDocumentStore {
RunInMemory = false };
public MainForm()
{
InitializeComponent();
store.Initialize();
}
am I doing something wrong here with IDocumentStore instance ?
Solution 2
OTHER TIPS
If you don't need to access the database right away, you might consider launching the application first, and then initializing it in a separate thread. You'd have to have some kind of "loading..." indicator in your UI, and a flag to check if the initialization is complete so you don't attempt to access the database before it is fully initialized.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow