NestJS · Middle · Question 33 of 75
Why is synchronize: true in TypeORM dangerous in production?
- 1It disables transactions
- ✓Correct answer: It changes the database schema automatically on startup to match entities, which can drop columns and data
- 3It slows down every query
Explanation
Use migrations in production. synchronize is only convenient for local prototypes.