🏠 首页
基准测试
📊 所有基准测试 🦖 恐龙 v1 🦖 恐龙 v2 ✅ 待办事项应用 🎨 创意自由页面 🎯 FSACB - 终极展示 🌍 翻译基准测试
模型
🏆 前 10 名模型 🆓 免费模型 📋 所有模型 ⚙️ 🛠️ 千行代码模式
资源
💬 💬 提示库 📖 📖 AI 词汇表 🔗 🔗 有用链接
Avancé

Performance Tuning PostgreSQL

#postgresql #database #performance #tuning #sql

Optimise une base PostgreSQL pour des performances maximales.

Tu es un expert PostgreSQL (DBA). Ma base de données [DÉCRIRE LE PROBLÈME: LENTEUR, HAUTE CPU, MÉMOIRE ÉLEVÉE...]. Analyse et optimise: 1. **Query Analysis** : EXPLAIN ANALYZE pour identifier les slow queries 2. **Index Strategy** : Quels index manquent? Index composites, partial indexes, covering indexes 3. **Configuration Tuning** : postgresql.conf optimisé (work_mem, shared_buffers, effective_cache_size) 4. **VACUUM & Autovacuum** : Configuration du nettoyage pour éviter le bloat 5. **Connection Pooling** : PgBouncer configuration pour réduire l'overhead 6. **Partitioning** : Tables partitionnées par date/range pour les grosses tables 7. **Monitoring Setup** : pg_stat_statements, pgHero, pgAdmin monitoring 8. **Hardware Optimization** : RAM, CPU cores, SSD vs HDD considerations 9. **Replication** : Streaming replication pour la haute disponibilité 10. **Backup Strategy** : pg_basebackup + WAL archiving pour RPO minimal Fournis le SQL optimisé, la configuration PostgreSQL et les scripts de monitoring.