From 1dcff8d4631f6dcaf07db2340a2f83b3377f5d7d Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 6 Oct 2017 18:15:01 -0700 Subject: [PATCH] Remove eager loading on pie This was causing memory issues for large asset sets --- app/Http/Controllers/Api/StatuslabelsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/StatuslabelsController.php b/app/Http/Controllers/Api/StatuslabelsController.php index aac2d37d81..a5f9e23073 100644 --- a/app/Http/Controllers/Api/StatuslabelsController.php +++ b/app/Http/Controllers/Api/StatuslabelsController.php @@ -155,7 +155,7 @@ class StatuslabelsController extends Controller public function getAssetCountByStatuslabel() { - $statusLabels = Statuslabel::with('assets')->get(); + $statusLabels = Statuslabel::get(); $labels=[]; $points=[]; $colors=[];