Embedded or relational database

i had been using relation database with mongo most of the time with the help of collection helper and publish composite but it is good to use mongo that way? because i saw many mongo out side meteor was using embedded way

I guess it depends on your project. If your related collections are not changing you can use embedded data models .

On the other side if your related collections are changing (like comments under a post, they can be edited , or users at comments , user can change its image) you must use relations with helpers.

Because if you use embedded model ,when you need to change one related collection you must change all collections that is related with that collection.

1 Like

but from what i heard the data in mongo is not as persistent as mysql right so doing that can affect transaction ? i am still a newbie so im not sure

start with the docs

https://docs.mongodb.com/manual/data-modeling/

then search around for more: