diff options
author | friendica <info@friendica.com> | 2015-02-12 17:45:25 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-02-12 17:45:25 -0800 |
commit | da2349bb6a85d13f0aa29046bef3021cf0c884ba (patch) | |
tree | c6746dacc91a9f073bca67869074cc81825964df /mod/home.php | |
parent | 94a9aa9610647935a10ba6d4d8f70c955a9d7243 (diff) | |
download | volse-hubzilla-da2349bb6a85d13f0aa29046bef3021cf0c884ba.tar.gz volse-hubzilla-da2349bb6a85d13f0aa29046bef3021cf0c884ba.tar.bz2 volse-hubzilla-da2349bb6a85d13f0aa29046bef3021cf0c884ba.zip |
provide relief to sites that are severely impacted by the slow ITEM_UNSEEN searches. This does not incorporate any other flag optimisations as that will require a major DB update and possibly involve significant downtime. This is just to bite off a little chunk now and provide some much needed relief.
Diffstat (limited to 'mod/home.php')
-rw-r--r-- | mod/home.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/home.php b/mod/home.php index 854e2df26..db4ae9c42 100644 --- a/mod/home.php +++ b/mod/home.php @@ -170,7 +170,7 @@ function home_content(&$a, $update = 0, $load = false) { $page_mode = 'list'; - $simple_update = (($update) ? " and ( item.item_flags & " . intval(ITEM_UNSEEN) . " ) > 0 " : ''); + $simple_update = (($update) ? " and item.item_unseen = 1 " : ''); if($update && $_SESSION['loadtime']) $simple_update .= " and item.changed > '" . datetime_convert('UTC','UTC',$_SESSION['loadtime']) . "' "; |