From the course: MongoDB Essential Training

Unlock the full course today

Join today to access over 24,000 courses taught by industry experts.

Relational vs. document

Relational vs. document - MongoDB Tutorial

From the course: MongoDB Essential Training

Relational vs. document

- [Instructor] When you hear MongoDB, you also often hear relational and document model or NoSQL, which isn't a great way to define the document model. We covered already what the document model is. Let me briefly explain what relational is. In relational databases, data is structured in tables. Think of Excel files. So you may have an author's table, which contains the information about each author. And then you may have a books table and links between the two. When you query data, for example, if you want to know the books each author wrote, you join the tables. That's roughly how it works. When comparing relational and document databases, there are at least three different ways to think about it. The first one is when you store JSON documents as they are in both database types. Both relational and document databases nowadays, generally support JSON objects, but the way you work with JSON documents differs in both…

Contents