Skip to content
Back to skills

Performance Select Columns

ASecurity

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

  • 147 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 6, 2026
toolsphpperformance

Security analysis

A100/100

Scanned June 6, 2026

npx -y skills add jpcaparas/superpowers-laravel --skill performance-select-columns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Performance Select Columns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Performance Select Columns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jpcaparas-performance-select-columns/badge)](https://www.skillsdirectory.com/skills/jpcaparas-performance-select-columns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: laravel:performance-select-columns
description: Select only required columns to reduce memory and transfer costs; apply to base queries and relations
---

# Select Only Needed Columns

Reduce payloads by selecting exact fields:

```php
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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.