mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
trick sql to use a better suited index
This commit is contained in:
@@ -5604,7 +5604,7 @@ function items_by_thr_parent(string $mid, int $parent, int|null $offset = null):
|
||||
|
||||
$order_sql = "ORDER BY item.created";
|
||||
if (isset($offset)) {
|
||||
$order_sql = "ORDER BY item.created DESC LIMIT 3 OFFSET $offset";
|
||||
$order_sql = "ORDER BY item.created DESC, item.received DESC LIMIT 3 OFFSET $offset";
|
||||
}
|
||||
|
||||
$owner_uid = intval($parent_item[0]['uid']);
|
||||
|
||||
Reference in New Issue
Block a user