Revert "Performance breakthrough"

This reverts commit c291685654.
This commit is contained in:
Andrew Dolgov 2015-07-15 08:32:57 +03:00
parent 8aaf7f4b7b
commit a950fbecb5
1 changed files with 2 additions and 1 deletions

View File

@ -320,7 +320,8 @@
// purge orphaned posts in main content table // purge orphaned posts in main content table
$result = db_query("DELETE FROM ttrss_entries WHERE $result = db_query("DELETE FROM ttrss_entries WHERE
id NOT IN (SELECT ref_id FROM ttrss_user_entries WHERE ref_id IS NOT NULL)"); (SELECT COUNT(int_id) FROM ttrss_user_entries WHERE ref_id = id) = 0");
if ($do_output) { if ($do_output) {
$rows = db_affected_rows($result); $rows = db_affected_rows($result);
_debug("Purged $rows orphaned posts."); _debug("Purged $rows orphaned posts.");