laravel-performance-select-columns

v2026.09.24

Select only required columns to reduce memory and transfer costs; apply to base queries and relations

GitHub
Install command
npx skhub add noartem/laravel-performance-select-columns
Markdown
SKILL.md

Select Only Needed Columns

Reduce payloads by selecting exact fields:

User::select(['id', 'name'])->paginate();

Post::with(['author:id,name'])->select(['id','author_id','title'])->get();
  • Avoid *; keep DTOs/resources aligned with selected fields
  • Combine with eager loading to avoid N+1
Discovery
Tags

No tags published for this skill.

Version
Latest version metadata

Version

v2026.09.24

Published

Sep 24, 2026

Category

Uncategorized

License

Not specified

Source path

skills/laravel-performance-select-columns

Default branch

main

Latest commit

0002f35

Tree SHA

3db1f86