Browse Source

WAL 模式

visuddhinanda 5 years ago
parent
commit
1a1a3a0862
4 changed files with 24 additions and 5 deletions
  1. 19 0
      app/bugs.md
  2. 0 4
      app/studio/dict_find_auto.php
  3. 1 1
      app/studio/dict_find_one.php
  4. 4 0
      app/studio/dict_updata_wbw.php

+ 19 - 0
app/bugs.md

@@ -0,0 +1,19 @@
+# bug记录
+- 拆粘音词问题
+	- 关系失效
+	- 拆分之后集成拆分前的信息
+
+- 书签在reader中的显示,以帮助下次定位
+- 拆分意思
+	- 再次点击才生效!!!
+	- 自动合成意思可以用“-”链接
+- **黑体**ti
+	- 语法信息为空
+- 自动匹配
+	- 总排名评分0-255
+	- 长度评分=含义长度/拼写长度
+	- 投诉评分削减
+
+- title搜索字体放大
+- studio译文历史记录
+

+ 0 - 4
app/studio/dict_find_auto.php

@@ -27,9 +27,6 @@ else{
 	$debug=false;
 }
 
-
-
-
 function microtime_float()
 {
     list($usec, $sec) = explode(" ", microtime());
@@ -42,7 +39,6 @@ $time_start = microtime_float();
 
 global $PDO;
 
-
 	//查询单词表
 	$db_file = _DIR_PALICANON_TEMPLET_."/p".$in_book."_tpl.db3";
 	

+ 1 - 1
app/studio/dict_find_one.php

@@ -139,7 +139,7 @@ for($i=0;$i<$lookup_loop;$i++)
 				else{
 					$Fetch = array();
 					if($debug){
-						echo "无效的查询句柄";
+						echo "无效的Statement句柄";
 					}
 				}
 			}catch (PDOException $e) {

+ 4 - 0
app/studio/dict_updata_wbw.php

@@ -12,6 +12,10 @@ $xml = simplexml_load_string($input);
 
 $db_file = _FILE_DB_WBW_;
 PDO_Connect("sqlite:$db_file");
+PDO_Execute("PRAGMA synchronous = OFF");
+PDO_Execute("PRAGMA journal_mode = WAL");
+PDO_Execute("PRAGMA foreign_keys = ON");
+PDO_Execute("PRAGMA busy_timeout = 5000");
 
 $wordsList = $xml->xpath('//word');
 //$serverMsg+= "word count:".count($wordsList)."<br>";