remove distinct from network query again until performance issue is resolved or another fix for the underlying problem is found

This commit is contained in:
Mario Vavti 2018-08-27 10:19:10 +02:00
parent 4c1944a08d
commit 6a2bbed73d

View File

@ -510,7 +510,7 @@ class Network extends \Zotlabs\Web\Controller {
if($load) { if($load) {
// Fetch a page full of parent items for this page // Fetch a page full of parent items for this page
$r = q("SELECT DISTINCT(item.parent) AS item_id FROM item $r = q("SELECT item.parent AS item_id FROM item
left join abook on ( item.owner_xchan = abook.abook_xchan $abook_uids ) left join abook on ( item.owner_xchan = abook.abook_xchan $abook_uids )
$net_query $net_query
WHERE true $uids $item_thread_top $item_normal WHERE true $uids $item_thread_top $item_normal
@ -524,7 +524,7 @@ class Network extends \Zotlabs\Web\Controller {
else { else {
// this is an update // this is an update
$r = q("SELECT DISTINCT(item.parent) AS item_id FROM item $r = q("SELECT item.parent AS item_id FROM item
left join abook on ( item.owner_xchan = abook.abook_xchan $abook_uids ) left join abook on ( item.owner_xchan = abook.abook_xchan $abook_uids )
$net_query $net_query
WHERE true $uids $item_normal_update $simple_update WHERE true $uids $item_normal_update $simple_update