performance-optimization

Optimize API performance, database queries, and caching mechanisms.

Updated Dec 12, 2025
One-click install
npx skills add https://github.com/IbIFACE-Tech/paracle --skill performance-optimization-ibiface-tech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-optimization
Source: https://github.com/IbIFACE-Tech/paracle/tree/main/.claude/skills/performance-optimization
Command: npx skills add https://github.com/IbIFACE-Tech/paracle --skill performance-optimization-ibiface-tech

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires fastapi, sqlalchemy, redis, cProfile, asyncio, httpx, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses slow API response times, inefficient database queries, and high resource utilization, ensuring your application meets performance targets.

Core Features & Use Cases

  • API Performance Tuning: Optimizes response times to meet Service Level Objectives (SLOs).
  • Database Query Optimization: Identifies and resolves slow SQL queries using indexing and eager loading.
  • Caching Strategies: Implements in-memory and distributed caching to reduce latency.
  • Profiling & Monitoring: Provides tools to diagnose performance bottlenecks and track key metrics.
  • Use Case: An e-commerce API is experiencing slow load times during peak hours. This Skill can be used to profile endpoints, optimize database queries for product listings, and implement caching for frequently accessed product data, bringing p95 response times below the 500ms target.

Quick Start

Use the performance-optimization skill to profile the '/agents' API endpoint and identify any performance bottlenecks.

Frequently Asked Questions about performance-optimization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize FastAPI response times to meet sub-500ms p95 SLOs?

Optimizing API response times involves profiling endpoints to identify bottlenecks, applying advanced database indexing with eager loading, and implementing Redis distributed caching to achieve sub-500ms p95 latency.

How do I resolve slow SQLAlchemy database queries during peak traffic?

Resolve slow SQLAlchemy queries by profiling to isolate bottlenecks, then applying advanced database indexing and eager loading strategies to minimize query overhead and accelerate data retrieval.

What is the best way to implement distributed caching with Redis for an API?

Implement distributed caching with Redis to store frequently accessed data, effectively reducing database load and API latency by serving repeated requests directly from in-memory caches.

Can I use cProfile to find performance bottlenecks in asynchronous asyncio endpoints?

Yes, you can use profiling tools to diagnose performance bottlenecks in asynchronous operations. Profiling tracks key metrics and pinpoints slow functions within asyncio endpoints for targeted optimization.

Does API performance optimization work with HTTP compression and streaming?

API performance optimization handles efficient API response management through compression and streaming. This approach reduces payload sizes and enables continuous data delivery, lowering response times.

Why does my API experience high resource utilization and slow load times under heavy load?

High resource utilization and slow API load times often stem from inefficient database queries and unoptimized asynchronous operations. Profiling identifies these bottlenecks for targeted caching and indexing improvements.