How does Trello store data in MongoDB? (Collection per board?)

风流意气都作罢 提交于 2019-12-18 11:27:28

问题


How does Trello store their data (cards) in MongoDB?

I read ( How does Trello show history so quickly? ) that their Actions collection is the largest one. Thus I assume that they do not store all cards in one gigantic collection.

The only other logical solution seems a collection per board or per user. But they have a lot of users and I read ( http://www.mongodb.org/display/DOCS/Using+a+Large+Number+of+Collections ) that there is a limit on the number of collections and some people advise against using a lot of collections.

I hope someone from Trello team will answear this AND I hope to get some ideas on solving this kind of a problem also from the general community.


回答1:


Trello stores all of the cards in one collection. The collection is sharded on the card's board id.



来源:https://stackoverflow.com/questions/12969344/how-does-trello-store-data-in-mongodb-collection-per-board

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!