Title
Create new category
Edit page index title
Edit category
Edit link
Upgrade Guide to PostgreSQL (MDSSC v3.0.0)
MDSSC v3.0.0 Upgrade Guide: MongoDB to PostgreSQL Migration
Overview
Starting with MDSSC version 3.0.0, PostgreSQL replaces MongoDB as the primary database backend. This guide covers the upgrade process, migration scenarios, and the best practices for a seamless transition.
Key Changes in v3.0.0
Database Backend: PostgreSQL replaces MongoDB
External Database Support: Improved support for external PostgreSQL instances
Pre-Upgrade Considerations
When migrating from MongoDB to PostgreSQL, certain data types (including scans, workflows, packages, and related historical records) are not transferred and will not be available after the migration. Before proceeding, ensure that any critical information stored in the previous environment is backed up or exported according to your data-retention requirements. This behavior is expected and designed to provide a clean, optimized PostgreSQL-based system moving forward.
Skipping Data Migration
Add the following line to your customer.env file before upgrading:
External PostgreSQL Configuration
Recommended Providers
For production deployments, consider these managed PostgreSQL services for better performance, reliability and high availability options:
AWS RDS PostgreSQL
Google Cloud SQL for PostgreSQL
Azure Database for PostgreSQL
Connection Configuration
To use an external PostgreSQL database, add the following to your customer.env file:
Example configurations:
Database Configuration Recommendations
Connection Limits
Ensure your PostgreSQL instance has adequate connection limits:
Performance Tuning
Consider these PostgreSQL settings for optimal MDSSC performance:
More details on configuring allocated resources on a PostgreSQL database can be found in the official documentation here.