From: Andrew Dolgov Date: Tue, 5 Dec 2017 19:37:50 +0000 (+0300) Subject: purge_orphans: limit maximum number of deleted articles X-Git-Tag: 18.8~128 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f76f773a16c70f745626e27b9981e6d815681da5;p=tt-rss.git purge_orphans: limit maximum number of deleted articles --- diff --git a/classes/article.php b/classes/article.php index f1271284..7430fac3 100644 --- a/classes/article.php +++ b/classes/article.php @@ -905,7 +905,7 @@ class Article extends Handler_Protected { $pdo = Db::pdo(); $res = $pdo->query("DELETE FROM ttrss_entries WHERE - NOT EXISTS (SELECT ref_id FROM ttrss_user_entries WHERE ref_id = id)"); + NOT EXISTS (SELECT ref_id FROM ttrss_user_entries WHERE ref_id = id) LIMIT 5000"); if ($do_output) { $rows = $res->rowCount();