Many to many relationships with MongoDB at large scale

前端 未结 2 1147
臣服心动
臣服心动 2021-02-03 12:11

I\'ve seen many posts on how to do many-to-many relationships with MongoDB, but none of them mention scale. For example these posts:

MongoDB Many-to-Many Association

2条回答
  •  囚心锁ツ
    2021-02-03 13:04

    If you're just storing the ID's of the relationships inside the arrays of reach collection you shouldn't have much of a problem within a single document. GridFS can be used but that's usually more for media like files, music, videos, etc. using GridFS would make doing updates a pain

提交回复
热议问题