VIP 👤
🏠 Accueil
Benchmarks
📊 Tous les Benchmarks 🦖 Dinosaure v1 🦖 Dinosaure v2 ✅ To-Do List Apps 🎨 Pages Libres 🎯 FSACB - Showcase 🌍 Traduction
Modèles
🏆 Top 10 Modèles 🆓 Modèles Gratuits 📋 Tous les Modèles ⚙️ Modes Kilo Code
Ressources
💬 Prompts IA 📖 Glossaire IA 🔗 Liens Utiles 🔌 API & Routeurs
advanced

Horizontal Sharding Strategy

#database-scalability #sharding #postgresql #performance

Develop a strategy for horizontal sharding of a multi-tenant PostgreSQL database.

Assume the role of a Database Engineer. You need to scale a multi-tenant SaaS application with a single monolithic PostgreSQL database that has reached write performance limits. Propose a horizontal sharding strategy. Discuss how you would choose a shard key (e.g., hash vs. range), handle cross-shard queries, manage rebalancing data as the number of tenants grows, and ensure referential integrity across shards.