When would you choose SQL over MongoDB for a project?
Model answer
Choose SQL when data is highly relational, you need strong constraints and joins, complex reporting, or strict transactions (finance, inventory). MongoDB fits flexible, document-shaped data and fast-changing schemas. Many systems use both. Decide from your data and query patterns, not from habit.
Learn this topic
MERN Capstone: Production Checklist, Common Mistakes and What to Build Next in the course MERN Stack Full Course: MongoDB, Express, React and Node.js.
Sign in to add your own answer.
More questions
- What is the MERN stack and what does each letter do?
- What are the pros and cons of the MERN stack?
- How would you structure a MERN app that has to grow?
- Why is the MERN stack popular for beginners building full-stack projects?
- What is the difference between a monolith and microservices, and what suits a small MERN team?