Rollback attempt to make unread tag queries faster for newsreader

This commit is contained in:
2024-07-22 08:17:46 -07:00
parent 3aa0b94db4
commit c499672dde

View File

@@ -7,12 +7,13 @@ SELECT
) unread
FROM
post AS p
JOIN feed AS f ON p.site = f.slug
WHERE
(
NOT $1
OR NOT is_read
)
JOIN feed AS f ON p.site = f.slug --
-- TODO: figure this out to make the query faster when only looking for unread
--WHERE
-- (
-- NOT $1
-- OR NOT is_read
-- )
GROUP BY
1,
2