MongoDB vs MySQL
1 min readJul 3, 2019
- MySQL since 1995 an MongoDB since 2009.
- MySQL stores data in tables and use SQL to access the data. MongoDB stores data in JSON-like documents and is accessed using MongoDB query language. In MongoDB it’s not required to define the structure of the document first.
- Both MySQL and MongoDB uses indexes to allow them to find data quickly.
- MySQL is used in applications that require multi-row transactions. MongoDB is used on real-time analytics, content management, internet of things and mobile apps.
- MySQL is used if data is structured and a traditional relational database is required. MongoDB is required if data is unstructured and there is a potential for rapid growth.