database-performance-debugging
データベースの処理速度に関する問題を、クエリ分析やインデックス最適化、実行計画の見直しによって特定し、遅いクエリを改善してデータベースのパフォーマンスを向上させるSkill。
📜 元の英語説明(参考)
Debug database performance issues through query analysis, index optimization, and execution plan review. Identify and fix slow queries.
🇯🇵 日本人クリエイター向け解説
データベースの処理速度に関する問題を、クエリ分析やインデックス最適化、実行計画の見直しによって特定し、遅いクエリを改善してデータベースのパフォーマンスを向上させるSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o database-performance-debugging.zip https://jpskill.com/download/21395.zip && unzip -o database-performance-debugging.zip && rm database-performance-debugging.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/21395.zip -OutFile "$d\database-performance-debugging.zip"; Expand-Archive "$d\database-performance-debugging.zip" -DestinationPath $d -Force; ri "$d\database-performance-debugging.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
database-performance-debugging.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
database-performance-debuggingフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 6
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
データベースパフォーマンスのデバッグ
目次
概要
データベースのパフォーマンス問題は、アプリケーションの応答性に直接影響します。デバッグは、遅いクエリを特定し、実行計画を最適化することに焦点を当てます。
使用する状況
- アプリケーションの応答時間が遅い場合
- データベースのCPU使用率が高い場合
- 遅いクエリが特定された場合
- パフォーマンスの回帰が発生した場合
- 負荷ストレス下にある場合
クイックスタート
最小限の動作例:
-- Enable slow query log (MySQL)
SET GLOBAL slow_query_log = 'ON';
SET GLOBAL long_query_time = 0.5;
-- View slow queries
SHOW GLOBAL STATUS LIKE 'Slow_queries';
SELECT * FROM mysql.slow_log;
-- PostgreSQL slow queries
CREATE EXTENSION pg_stat_statements;
SELECT mean_exec_time, calls, query
FROM pg_stat_statements
ORDER BY mean_exec_time DESC LIMIT 10;
-- SQL Server slow queries
SELECT TOP 10
execution_count,
total_elapsed_time,
statement_text
FROM sys.dm_exec_query_stats
ORDER BY total_elapsed_time DESC;
-- Query profiling
EXPLAIN ANALYZE
SELECT * FROM orders WHERE user_id = 123;
// ... (see reference guides for full implementation)
リファレンスガイド
references/ ディレクトリにある詳細な実装:
| ガイド | 内容 |
|---|---|
| 遅いクエリの特定 | 遅いクエリの特定 |
| 一般的な問題と解決策 | 一般的な問題と解決策 |
| 実行計画の分析 | 実行計画の分析 |
| デバッグプロセス | デバッグプロセス |
ベストプラクティス
✅ 実施すべきこと
- 確立されたパターンと慣例に従う
- クリーンで保守しやすいコードを書く
- 適切なドキュメントを追加する
- デプロイ前に徹底的にテストする
❌ 実施すべきでないこと
- テストや検証をスキップする
- エラー処理を無視する
- 設定値をハードコードする
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Database Performance Debugging
Table of Contents
Overview
Database performance issues directly impact application responsiveness. Debugging focuses on identifying slow queries and optimizing execution plans.
When to Use
- Slow application response times
- High database CPU
- Slow queries identified
- Performance regression
- Under load stress
Quick Start
Minimal working example:
-- Enable slow query log (MySQL)
SET GLOBAL slow_query_log = 'ON';
SET GLOBAL long_query_time = 0.5;
-- View slow queries
SHOW GLOBAL STATUS LIKE 'Slow_queries';
SELECT * FROM mysql.slow_log;
-- PostgreSQL slow queries
CREATE EXTENSION pg_stat_statements;
SELECT mean_exec_time, calls, query
FROM pg_stat_statements
ORDER BY mean_exec_time DESC LIMIT 10;
-- SQL Server slow queries
SELECT TOP 10
execution_count,
total_elapsed_time,
statement_text
FROM sys.dm_exec_query_stats
ORDER BY total_elapsed_time DESC;
-- Query profiling
EXPLAIN ANALYZE
SELECT * FROM orders WHERE user_id = 123;
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Identify Slow Queries | Identify Slow Queries |
| Common Issues & Solutions | Common Issues & Solutions |
| Execution Plan Analysis | Execution Plan Analysis |
| Debugging Process | Debugging Process |
Best Practices
✅ DO
- Follow established patterns and conventions
- Write clean, maintainable code
- Add appropriate documentation
- Test thoroughly before deploying
❌ DON'T
- Skip testing or validation
- Ignore error handling
- Hard-code configuration values
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (2,180 bytes)
- 📎 references/common-issues-solutions.md (1,364 bytes)
- 📎 references/debugging-process.md (1,101 bytes)
- 📎 references/execution-plan-analysis.md (988 bytes)
- 📎 references/identify-slow-queries.md (716 bytes)
- 📎 scripts/validate-schema.sh (426 bytes)