also sort by id to not make mysql change the queryplan if offset is > 0 after recent index changes

This commit is contained in:
Mario Vavti 2018-02-22 12:01:53 +01:00
parent a1f9d40d08
commit 80ce2def46

View File

@ -255,7 +255,7 @@ class Channel extends \Zotlabs\Web\Controller {
AND (abook.abook_blocked = 0 or abook.abook_flags is null)
AND item.item_wall = 1
$sql_extra $sql_extra2
ORDER BY created DESC $pager_sql ",
ORDER BY created DESC, id $pager_sql ",
intval(\App::$profile['profile_uid'])
);
}