Small performance improvements, new view for future use

This commit is contained in:
Michael 2021-03-06 05:47:49 +00:00
parent f24deebc7f
commit 470a47647a
5 changed files with 385 additions and 17 deletions

View file

@ -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