Skip to content
Back to skills

Minimal

ASecurity

```sql CREATE TABLE orders ( order_id INT, customer_id INT, amount DECIMAL ) PARTITION BY RANGE (YEAR(created_at)) ( PARTITION p2024 VALUES LESS THAN (2025), PARTITION p2025 VALUES LESS THAN (2026), PARTITION p2026 VALUES LESS THAN (2027) ); ```

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 10, 2026
databasessqlperformance

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add snoodleboot-io/prompticorn --skill minimal --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Minimal?

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

Security grade badge for Minimal
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/snoodleboot-io-minimal-82766f6d/badge)](https://www.skillsdirectory.com/skills/snoodleboot-io-minimal-82766f6d)

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
# Data Partitioning (Minimal)

## Key Strategies

### Time-Based Partition
```sql
CREATE TABLE orders (
  order_id INT,
  customer_id INT,
  amount DECIMAL
) PARTITION BY RANGE (YEAR(created_at)) (
  PARTITION p2024 VALUES LESS THAN (2025),
  PARTITION p2025 VALUES LESS THAN (2026),
  PARTITION p2026 VALUES LESS THAN (2027)
);
```

Benefits: Quick date-range queries, easy archival

### Range Partition
```sql
CREATE TABLE events (
  event_id INT,
  user_id INT
) PARTITION BY RANGE (user_id) (
  PARTITION p1 VALUES LESS THAN (1000000),
  PARTITION p2 VALUES LESS THAN (2000000),
  PARTITION p3 VALUES LESS THAN (MAXVALUE)
);
```

### List Partition
```sql
PARTITION BY LIST (region) (
  PARTITION p_us VALUES IN ('US-EAST', 'US-WEST'),
  PARTITION p_eu VALUES IN ('EU-WEST', 'EU-CENTRAL'),
  PARTITION p_apac VALUES IN ('APAC-EAST', 'APAC-SOUTH')
);
```

## Query Performance
- Partition pruning: Only scan relevant partition
- 10B rows split into 10 partitions = 1B rows per partition
- Queries 10x faster

## Maintenance
- Archive old partitions (2020 data to cold storage)
- Add new partitions automatically
- Monitor partition sizes

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…