From 02e4c1424e35dae603c46a2841ffddb708c5bde3 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Mon, 8 Jan 2018 22:23:12 -0600 Subject: [PATCH] Select less data from servers --- app/Repositories/Eloquent/NodeRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/Eloquent/NodeRepository.php b/app/Repositories/Eloquent/NodeRepository.php index 4a640fb9a..ed0dce003 100644 --- a/app/Repositories/Eloquent/NodeRepository.php +++ b/app/Repositories/Eloquent/NodeRepository.php @@ -106,7 +106,7 @@ class NodeRepository extends EloquentRepository implements NodeRepositoryInterfa public function loadNodeAllocations(Node $node, bool $refresh = false): Node { $node->setRelation('allocations', - $node->allocations()->orderByRaw('server_id IS NOT NULL DESC, server_id IS NULL')->orderByRaw('INET_ATON(ip) ASC')->orderBy('port', 'asc')->with('server')->paginate(50) + $node->allocations()->orderByRaw('server_id IS NOT NULL DESC, server_id IS NULL')->orderByRaw('INET_ATON(ip) ASC')->orderBy('port', 'asc')->with('server:id,name')->paginate(50) ); return $node;