mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-09 13:04:27 +02:00
Small performance improvements, new view for future use
This commit is contained in:
parent
f24deebc7f
commit
470a47647a
5 changed files with 385 additions and 17 deletions
|
@ -160,7 +160,7 @@ class Group
|
|||
public static function countUnseen()
|
||||
{
|
||||
$stmt = DBA::p("SELECT `group`.`id`, `group`.`name`,
|
||||
(SELECT COUNT(*) FROM `post-user-view`
|
||||
(SELECT COUNT(*) FROM `post-user`
|
||||
WHERE `uid` = ?
|
||||
AND `unseen`
|
||||
AND `contact-id` IN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue