Live data from Hacker News

Everyone knows that you can have relations in MongoDB, right?

news.ycombinator.com

1–4 of 4 posts

Everyone knows that you can have relations in MongoDB, right?

#1
Relations are just `_id` of other objects from the same or another collection. It's just objects instead of tables. It's like a table with different columns on each row and nested tables. In production, most records/objects are just like tables. Unique "denormalization" in MongoDB is used only where it can serve the purpose of implementing unique task

Re: Everyone knows that you can have relations in MongoDB, right?

#3

Are they actual relations , or is it just storing a value that happens to be the same alphanumeric string as another object's ID?

@pavel_lishin yes! It's just storing a value that is alphanumeric string of another object's _id

Re: Everyone knows that you can have relations in MongoDB, right?

#4

Are they actual relations , or is it just storing a value that happens to be the same alphanumeric string as another object's ID?

@pavel_lishin yes! It's just storing a value that is alphanumeric string of another object's _id

or `Object` class instance with built-in additional details like timestamp