我在我的 winforms 项目中使用 ravendb 作为嵌入式数据库。一切正常,但我确实需要检查 winform 主窗口的启动时间。当我添加 IDocumentStore 初始化启动时间增加了 5,6 秒。
在 MainForm.cs 我有
private IDocumentStore store = new EmbeddableDocumentStore {
RunInMemory = false };
public MainForm()
{
InitializeComponent();
store.Initialize();
}
我在这里对 IDocumentStore 实例做错了吗?