I am fetching data from database which is returning almost 5000 records form database . when I see resource size over network it is 10 mb of size.
10 mb
This table has almost fifty columns. Is there any way I can reduce the size which displaying in network tab of browser?
here is the query
$consignments = Consignment::query(); $consignments->where('delivery_run_id', null); $consignments = $consignments->orderBy('id', 'desc')->limit(5000)->get(); return Response::json(['status' => 'success', 'consignment' => $consignments]);
i try to use select() but no effect
select()
try this
$consignments = $consignments->orderBy('id', 'desc')->limit(5000)->select(['column one','column two','column three']);
1.4m articles
1.4m replys
5 comments
57.0k users