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