remove unneeded total counter subquery from feedlist query
This commit is contained in:
parent
5430c959d4
commit
8736c2d227
|
@ -213,10 +213,6 @@
|
||||||
|
|
||||||
$result = db_query($link, "SELECT ttrss_feeds.*,
|
$result = db_query($link, "SELECT ttrss_feeds.*,
|
||||||
SUBSTRING(last_updated,1,19) AS last_updated_noms,
|
SUBSTRING(last_updated,1,19) AS last_updated_noms,
|
||||||
(SELECT COUNT(id) FROM ttrss_entries,ttrss_user_entries
|
|
||||||
WHERE feed_id = ttrss_feeds.id AND
|
|
||||||
ttrss_user_entries.ref_id = ttrss_entries.id AND
|
|
||||||
owner_uid = '$owner_uid') AS total,
|
|
||||||
(SELECT COUNT(id) FROM ttrss_entries,ttrss_user_entries
|
(SELECT COUNT(id) FROM ttrss_entries,ttrss_user_entries
|
||||||
WHERE feed_id = ttrss_feeds.id AND unread = true
|
WHERE feed_id = ttrss_feeds.id AND unread = true
|
||||||
AND ttrss_user_entries.ref_id = ttrss_entries.id
|
AND ttrss_user_entries.ref_id = ttrss_entries.id
|
||||||
|
@ -250,7 +246,6 @@
|
||||||
|
|
||||||
$subop = $_GET["subop"];
|
$subop = $_GET["subop"];
|
||||||
|
|
||||||
$total = $line["total"];
|
|
||||||
$unread = $line["unread"];
|
$unread = $line["unread"];
|
||||||
|
|
||||||
if (get_pref($link, 'HEADLINES_SMART_DATE')) {
|
if (get_pref($link, 'HEADLINES_SMART_DATE')) {
|
||||||
|
|
Loading…
Reference in New Issue