dbscan 最大 七天或 10w 数据
This commit is contained in:
@@ -44,9 +44,9 @@ async def run_dbscan() -> DBScanResult:
|
|||||||
SELECT id, title, content, embedding
|
SELECT id, title, content, embedding
|
||||||
FROM risk_news
|
FROM risk_news
|
||||||
WHERE NOT embedding_updated_at IS NULL
|
WHERE NOT embedding_updated_at IS NULL
|
||||||
AND time > now() - interval '14 day'
|
AND time > now() - interval '7 day'
|
||||||
ORDER BY time desc
|
ORDER BY time desc
|
||||||
LIMIT 10000
|
LIMIT 100000
|
||||||
;"""
|
;"""
|
||||||
)
|
)
|
||||||
rows = await cur.fetchall()
|
rows = await cur.fetchall()
|
||||||
|
|||||||
Reference in New Issue
Block a user