From 5936e8d7e80821e39beb332fc1cb7fc80b2154c1 Mon Sep 17 00:00:00 2001 From: caprice Date: Mon, 24 Jun 2013 01:17:30 +0900 Subject: [PATCH] =?utf8?q?[core]=20:=20=E5=AE=9A=E6=95=B0=E3=81=AE?= =?utf8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- core/src/GikoMona.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/GikoMona.cpp b/core/src/GikoMona.cpp index d224c41..e329baf 100644 --- a/core/src/GikoMona.cpp +++ b/core/src/GikoMona.cpp @@ -38,7 +38,7 @@ void optimize_database(const boost::filesystem::path& db_path) { database db("./history.db"); auto q = query().define() .select("count-of-deleting-values", "file-infomation"); - if(db.do_query(q) >= 5000) { + if(db.do_query(q) >= 1000) { db.optimize(); } } -- 2.11.0