I am doing web development in Java with MongoDB on the backend. I have two database objects that need to have lists of each other. ex-
The Customer object contains - List<MediaServer>
The MediaService object contains - List<Customer>
1) Should I remove one of the lists so the same information is not stored in two places? e.g. Remove the customer list of media servers. When I pull a customer, iterate through all media servers to figure out what media servers the customer is assigned to.
2) Is there a better place to store this style of information in MongoDB?
Thanks!