Migration vers PostgreSQL
Migration en cours · Cible : cloud souverain OVH · SecNumCloud compliant
Phase 1
Audit compatibilité
✅ Terminé
→
Phase 2
Migration schéma
✅ Terminé
→
Phase 3
Migration données
⏳ En cours
→
Phase 4
Tests de charge
⏳ En attente
→
Phase 5
Bascule prod
⏳ En attente
📊 Progression de la migration des données
Tables migrées84 / 96 (87%)
Enregistrements transférés14.2M / 17.8M (80%)
Requêtes EF Core adaptées312 / 328 (95%)
Détail par table
| Table | Lignes | Compatibilité EF Core | Statut migration | Actions |
|---|---|---|---|---|
| commandes | 142K | ✅ Compatible | ✅ Migrée | |
| clients | 48K | ✅ Compatible | ✅ Migrée | |
| audit_log | 2.1M | ⚠️ Adaptation | ⏳ En cours | |
| sessions | 890K | ❌ Problème | ❌ Bloquée |
Table · audit_log
Analyse de compatibilité EF Core / PostgreSQL + performance
🔍 Problème EF Core détecté
// ❌ Avant (SQL Server — fonction non supportée)
modelBuilder.Entity<AuditLog>()
.Property(x => x.CreatedAt)
.HasDefaultValueSql("GETDATE()");
// ✅ Après (PostgreSQL — Npgsql) modelBuilder.Entity<AuditLog>() .Property(x => x.CreatedAt) .HasDefaultValueSql("NOW()");
// ✅ Après (PostgreSQL — Npgsql) modelBuilder.Entity<AuditLog>() .Property(x => x.CreatedAt) .HasDefaultValueSql("NOW()");
⚡ Performance : avant / après migration
SELECT avec JOIN
INSERT batch 1000
Full-text search
☁️ Cloud souverain cible
🇫🇷 OVH Cloud · Paris
SecNumCloud · HDS · RGPD · PostgreSQL 15.3 managé
RégionEU-West (Paris)
CertificationSecNumCloud ✅
PostgreSQLv15.3
Latence avg4.2ms
📈 Gains estimés post-migration
Licences économisées~45 000 €/an
Performance queries+35% avg
Marchés débloquésSecteur public
CertificationSecNumCloud / HDS