fix .env.example var and docs

This commit is contained in:
2025-12-30 15:29:26 +01:00
parent 5f6e3215a5
commit bcedae40fc
5 changed files with 31 additions and 16 deletions

View File

@@ -54,22 +54,24 @@ Modificare `.env` con i tuoi dettagli:
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=root
MYSQL_PASSWORD=your_password
MYSQL_DATABASE=your_database
MYSQL_PASSWORD=your_mysql_password
MYSQL_DATABASE=your_database_name
# PostgreSQL Target Database (container Incus)
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=postgres
POSTGRES_PASSWORD=your_password
POSTGRES_PASSWORD=your_postgres_password
POSTGRES_DATABASE=migrated_db
# Migration Settings
BATCH_SIZE=10000
LOG_LEVEL=INFO
DRY_RUN=false
CONSOLIDATION_GROUP_LIMIT=40000
PROGRESS_LOG_INTERVAL=10000
# Benchmark Settings
# Performance Testing
BENCHMARK_OUTPUT_DIR=benchmark_results
BENCHMARK_ITERATIONS=5
```
@@ -401,7 +403,7 @@ mysql2postgres/
- Verificare credenziali: `psql -h localhost -U postgres`
### Timeout durante migrazione
- Aumentare `BATCH_SIZE` in `.env` (default: 10000)
- Aumentare `CONSOLIDATION_GROUP_LIMIT` in `.env` (default: 40000)
- Verificare performance di rete tra MySQL e PostgreSQL
### "No previous migration found" (incremental)
@@ -427,7 +429,8 @@ mysql2postgres/
## Performance Tips
1. **Migration**
- Aumentare `BATCH_SIZE` per meno transazioni (es. 50000)
- Aumentare `CONSOLIDATION_GROUP_LIMIT` per processare più chiavi per batch (default: 40000)
- Aumentare `PROGRESS_LOG_INTERVAL` per ridurre logging (default: 10000)
- Disabilitare indici durante migrazione se possibile (non implementato)
2. **Queries on JSONB**