CaoMeiYouRen / rss-impact-server

一个支持 Hook 的 RSS 订阅工具。本项目为后端部分。文档:https://rss-docs.cmyr.dev/
https://rss-demo.cmyr.ltd/
GNU Affero General Public License v3.0
137 stars 6 forks source link

[bug] 优化 移除过时的文章 的性能 #468

Open CaoMeiYouRen opened 1 day ago

CaoMeiYouRen commented 1 day ago

Bug Description

目前,在订阅数量较多的情况下,移除过时的文章 时会导致服务器 CPU 卡死、

Reproduction Steps

https://github.com/CaoMeiYouRen/rss-impact-server/blob/380f72bdf1d9e0157c6c8bb773bbc0456074778a/src/services/tasks/tasks.service.ts#L1287-L1341

Expected Behavior

优化性能

Screenshots

No response

Operating System

-

Browser

-

NodeJS Version

-

RSS Impact Version

-

RSS Impact Commit Hash

-

Additional Context

No response