From b828fc21886143902aad774200fe98bdb8e29ca6 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sun, 19 Nov 2023 17:23:22 +0800 Subject: [PATCH] Update maccms.conf --- plugins/sphinx/tpl/maccms.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/sphinx/tpl/maccms.conf b/plugins/sphinx/tpl/maccms.conf index ec2222dfe..0942367fd 100644 --- a/plugins/sphinx/tpl/maccms.conf +++ b/plugins/sphinx/tpl/maccms.conf @@ -47,6 +47,8 @@ source mac_vod sql_attr_timestamp = vod_time sql_attr_timestamp = vod_time_add + + sql_query_post = UPDATE sph_counter SET max_doc_id=(SELECT MAX(vod_id) FROM mac_vod) where counter_id=1 } index mac_vod @@ -71,9 +73,7 @@ source mac_vod_delta : mac_vod sql_query_range = SELECT (SELECT max_doc_id FROM `sph_counter` where counter_id=1) as min, (SELECT max(vod_id) FROM mac_vod) as max - sql_query = SELECT vod_id as id, vod_name, vod_time,vod_time_add FROM mac_vod WHERE vod_id>=$start AND vod_id<=$end - - sql_query_post = UPDATE sph_counter SET max_doc_id=(SELECT MAX(vod_id as id) FROM mac_vod) where counter_id=1 + sql_query = SELECT vod_id as id, vod_name, vod_time,vod_time_add FROM mac_vod WHERE vod_id>=$start AND vod_id<=$end } index mac_vod_delta