Toolverse
All skills

analyzing-query-performance

by jeremylongshore

Execute use when you need to work with query optimization.\nThis skill provides query performance analysis with comprehensive guidance and automation.\nTrigger with phrases like \

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Security
Views
7

About this skill

Execute use when you need to work with query optimization.\nThis skill provides query performance analysis with comprehensive guidance and automation.\nTrigger with phrases like \

How to use

  1. Upewnij się, że masz zainstalowane narzędzia CLI dla swojej bazy danych (psql dla PostgreSQL, mysql dla MySQL, mongosh dla MongoDB) oraz dostęp do poświadczeń z uprawnieniami do uruchamiania EXPLAIN ANALYZE. Dla PostgreSQL włącz rozszerzenie pg_stat_statements, dla MySQL włącz slow query log lub performance_schema.

  2. Zidentyfikuj najwolniejsze zapytania. W PostgreSQL uruchom zapytanie SELECT query, calls, mean_exec_time, total_exec_time FROM pg_stat_statements ORDER BY mean_exec_time DESC LIMIT 20. W MySQL sprawdź slow query log lub tabele performance_schema.events_statements_summary_by_digest.

  3. Wyzwól skill frazami takimi jak "optimize queries", "analyze performance" lub "improve query speed", podając jedno z wolnych zapytań jako dane wejściowe.

  4. Skill uruchomi EXPLAIN ANALYZE (PostgreSQL), EXPLAIN ANALYZE FORMAT=JSON (MySQL) lub explain() (MongoDB) na podanym zapytaniu i przeanalizuje pełny plan wykonania, liczby wierszy, iteracje pętli i użycie buforów.

  5. Przejrzyj raport zawierający zidentyfikowane problemy: sekwencyjne skanowania dużych tabel, brakujące indeksy, niskie wskaźniki trafień cache'u. Skill uszereguje rekomendacje optymalizacyjne według spodziewanego wpływu na wydajność.

  6. Zastosuj sugerowane zmiany (dodaj indeksy, przepisz zapytanie, zmień konfigurację) i porównaj czasy wykonania przed i po optymalizacji.

Related skills

better-auth-best-practices

by novuhq

Skill for integrating Better Auth - the comprehensive TypeScript authentication framework.

Security
1148

python-expert

by Shubhamsaboo

Senior Python developer expertise for writing clean, efficient, and well-documented code.\nUse when: writing Python code, optimizing Python scripts, reviewing Python code for best practices,\ndebugging Python issues, implementing type hints, or when user mentions Python, PEP 8,

Security
2777

reverse-engineering-tools

by gmh5225

Guide for reverse engineering tools and techniques used in game security research. Use this skill when working with debuggers, disassemblers, memory analysis tools, binary analysis, or decompilers for game security research.

Security
3168

security-compliance

by davila7

Guides security professionals in implementing defense-in-depth security architectures, achieving compliance with industry frameworks (SOC2, ISO27001, GDPR, HIPAA), conducting threat modeling and risk assessments, managing security operations and incident response, and embedding

Security
1172

academic-researcher

by Shubhamsaboo

Academic research assistant for literature reviews, paper analysis, and scholarly writing.\nUse when: reviewing academic papers, conducting literature reviews, writing research summaries,\nanalyzing methodologies, formatting citations, or when user mentions academic research,

Security
1260

openapi-spec-generation

by wshobson

Generate and maintain OpenAPI 3.1 specifications from code, design-first specs, and validation patterns. Use when creating API documentation, generating SDKs, or ensuring API contract compliance.

Security
18109