From 6b41ed6ac0deb978b96f28567d43188e2174e359 Mon Sep 17 00:00:00 2001 From: longfin Date: Wed, 23 Oct 2019 11:59:39 +0900 Subject: [PATCH] Use OS Cache through flush on LiteDBStore's ctor --- Libplanet.Explorer.Executable/Program.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Libplanet.Explorer.Executable/Program.cs b/Libplanet.Explorer.Executable/Program.cs index 1d5e2e8c480..94420e6211e 100644 --- a/Libplanet.Explorer.Executable/Program.cs +++ b/Libplanet.Explorer.Executable/Program.cs @@ -38,7 +38,11 @@ public static async Task Main(string[] args) .WriteTo.Console(); Log.Logger = loggerConfig.CreateLogger(); - IStore store = new LiteDBStore(options.StorePath, readOnly: options.Seed is null); + IStore store = new LiteDBStore( + path: options.StorePath, + flush: false, + readOnly: options.Seed is null + ); IBlockPolicy policy = new BlockPolicy( null, blockIntervalMilliseconds: options.BlockIntervalMilliseconds,