From 45621124672102552100edb1b2a9d2ef37abcd8a Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 22 Jan 2019 16:50:03 +0800 Subject: [PATCH] update --- plugins/sphinx/tpl/simdht_delta.conf | 10 +++++++--- route/static/app/public.js | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/plugins/sphinx/tpl/simdht_delta.conf b/plugins/sphinx/tpl/simdht_delta.conf index c6d6c20af..48616e334 100755 --- a/plugins/sphinx/tpl/simdht_delta.conf +++ b/plugins/sphinx/tpl/simdht_delta.conf @@ -33,10 +33,12 @@ source search_hash sql_db = ssbc sql_port = 33061 # optional, default is 3306 - sql_query_range = SELECT min(id), max(id) FROM search_hash - sql_range_step = 1000 + sql_query_pre = UPDATE sph_counter SET max_doc_id=(SELECT MAX(id) FROM search_hash) where counter_id=1 - sql_query_pre = SET NAMES utf8 + sql_query_range = SELECT min(id), max(id) FROM search_hash + sql_range_step = 1000 + + sql_query_pre = SET NAMES utf8 sql_query = \ SELECT id, name, CRC32(category) AS category, length, UNIX_TIMESTAMP(create_time) AS create_time, UNIX_TIMESTAMP(last_seen) AS last_seen\ FROM search_hash where id >= $start AND id <= $end @@ -49,12 +51,14 @@ source search_hash source search_hash_delta : search_hash { + sql_query_range = SELECT (SELECT max_doc_id FROM `sph_counter` where counter_id=1) as min, (SELECT max(id) FROM search_hash) as max sql_query_pre = SET NAMES utf8 sql_query = SELECT id, name, CRC32(category) AS category, length, UNIX_TIMESTAMP(create_time) AS create_time, UNIX_TIMESTAMP(last_seen) AS last_seen FROM search_hash where id >= $start AND id <= $end sql_attr_bigint = length sql_attr_timestamp = create_time sql_attr_timestamp = last_seen sql_attr_uint = category + sql_query_post = UPDATE sph_counter SET max_doc_id=(SELECT MAX(id) FROM search_hash) where counter_id=1 } diff --git a/route/static/app/public.js b/route/static/app/public.js index 44e478b89..512f08b34 100755 --- a/route/static/app/public.js +++ b/route/static/app/public.js @@ -1377,7 +1377,7 @@ function pluginConfigTpl(_name, version, func, config_tpl_func, read_config_tpl_ var con = '

提示:Ctrl+F 搜索关键字,Ctrl+G 查找下一个,Ctrl+S 保存,Ctrl+Shift+R 查找替换!

\ - \ + \ \ \