fix:增量更新向量问题修改
All checks were successful
git commit AiDA python develop 分支构建部署 / scheduled_deploy (push) Has been skipped
All checks were successful
git commit AiDA python develop 分支构建部署 / scheduled_deploy (push) Has been skipped
This commit is contained in:
@@ -48,7 +48,7 @@ class IncrementalListener:
|
|||||||
if self.last_process_time is None:
|
if self.last_process_time is None:
|
||||||
# 第一次运行,查询最近30分钟的数据
|
# 第一次运行,查询最近30分钟的数据
|
||||||
cursor.execute(f"""
|
cursor.execute(f"""
|
||||||
SELECT id, account_id, path, category, style, data_time, is_system_sketch, sys_file_id
|
SELECT id, account_id, path, category, style, data_time
|
||||||
FROM {TABLE_USER_PREFERENCE_LOG}
|
FROM {TABLE_USER_PREFERENCE_LOG}
|
||||||
WHERE data_time > DATE_SUB(NOW(), INTERVAL 30 MINUTE)
|
WHERE data_time > DATE_SUB(NOW(), INTERVAL 30 MINUTE)
|
||||||
ORDER BY data_time
|
ORDER BY data_time
|
||||||
@@ -56,7 +56,7 @@ class IncrementalListener:
|
|||||||
else:
|
else:
|
||||||
# 基于上次处理时间查询
|
# 基于上次处理时间查询
|
||||||
cursor.execute(f"""
|
cursor.execute(f"""
|
||||||
SELECT id, account_id, path, category, style, data_time, is_system_sketch, sys_file_id
|
SELECT id, account_id, path, category, style, data_time
|
||||||
FROM {TABLE_USER_PREFERENCE_LOG}
|
FROM {TABLE_USER_PREFERENCE_LOG}
|
||||||
WHERE data_time > %s
|
WHERE data_time > %s
|
||||||
ORDER BY data_time
|
ORDER BY data_time
|
||||||
|
|||||||
Reference in New Issue
Block a user