Skip to content

Commit 02e4c14

Browse files
committed
Select less data from servers
1 parent 0acc260 commit 02e4c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Repositories/Eloquent/NodeRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function loadLocationAndServerCount(Node $node, bool $refresh = false): N
106106
public function loadNodeAllocations(Node $node, bool $refresh = false): Node
107107
{
108108
$node->setRelation('allocations',
109-
$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)
109+
$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)
110110
);
111111

112112
return $node;

0 commit comments

Comments
 (0)