Rollback attempt to make unread tag queries faster for newsreader
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user