2
I’m thinking of creating referenced documents instead of embedded because I have a database where a plane has flights and flights have airports. Someone experienced enough to tell me the best option?
Let’s imagine that I choose the referenced ones, the reference would be the foreign key in a relational database or simply export the mysql JSON document with the secondary keys and just click to the collections right? references are not necessarily connected in the system, it’s just an id that is there if a query is needed as I understood right? As my goal is a comparative study with mysql I have to make similar queries and take times but I’ve seen that with referenced documents had to do more than one query, that’s just it?
Regarding the embedded already researched and I can not understand how I will load different JSON and point out that that is contained inside another.
This for mongodb. Regarding couchdb, does anyone have any idea how this reference is made between collections? by what I read is not as trivial as in mongodb.
Solved your doubt?
– durtto