I'm using laravel framework and now I'm thinking that if laravel resource reduce the performance? Because it at first select all columns (select * from TABLE) then put the result in loop of resource. So does this loop slow down the speed? Actually I'm think to choose between select query and resource.
User::select(['id','title'])->get() ; //or
UserResource::collection (User::all())
Which one is faster and which one is better to use and best practice? I a word I'm looking for performance and best practice Thank