Please, can you say me, think i good or bad?
I have two objects, Exhibition and Stand. In my logic Exhibition has_many Stands.
I want to use mongodb. First, i can do Stand embedded in Exhibition. But several exhibitions can include same stand. After this i think, that will be better to create two documents(collections): Exhibition and Stand and imitate relation references.
1.Is it good idea?
If it is good idea, than i create in Exhibition document field stand_ids, which will be array and i will push in this field necessary stand ids.
2.When i push ids in Exhibition and after this i
want to delete reference stand in Stands document.
How will be better to destroy id in Exhibition.stand_ids.
3.Think i by relational or it is good practice?
If you’re working with relations you should use a relational DB. It doesn’t make sense to use a noSQL solution if your data has structure.
My advice to you would be to use the tool most suited for the job. What you’re trying to do seems to be ideal for a relational DB.