Modeling relationships
Data modeling in RethinkDB
There are two ways to model relationships between documents in RethinkDB:
- By using embedded arrays.
- By linking documents stored in multiple tables (similar to traditional relational database systems).
Let’s explore the advantages and disadvantages of each approach. We’ll use a simple blog database that stores information about authors and their posts to demonstrate them.