Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 453
Ben Avatar asked Oct 19 '12 07:10

Ben


1 Answers

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

like image 191
Daniel LeCheminant Avatar answered Sep 28 '22 03:09

Daniel LeCheminant