Introduction to MongoDB
MongoDB is a popular NoSQL database that is attracting a lot of developers worldwide. It is different from traditional relational databases such as MySQL, PostgreSQL, and SQLite3. The main big difference with MongoDB compared to other databases is it is schemaless and stores collections and documents. Think of MongoDB collections as tables, and documents as rows in SQL databases. However, in MongoDB, there is no relationship between collections. This schemaless design allows MongoDB to scale horizontally using a mechanism called Sharding. MongoDB stores data as BSON files on disk. BSON is an efficient binary format for operation and data transfer. Almost all MongoDB clients convert JSON into BSON and vice versa while ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access