JackAdams / meteor-transactions

App level transactions for Meteor + Mongo
http://transactions.taonova.com/
MIT License
113 stars 16 forks source link

Managing the size of the tx.Transactions collection #15

Open JackAdams opened 9 years ago

JackAdams commented 9 years ago

The transactions collection in the database of my production app is 10x larger than the next largest collection (in terms of disk space). For this reason, I'm thinking of making the package automatically clean out old transactions -- like 6 months old (by default) -- and configurable to never remove old transactions with tx.purgeAfter = 0;.

Ideas on this issue:

ericoe commented 9 years ago

+1, but I agree, we can do it ourselves.

JackAdams commented 9 years ago

I'll probably do this at some stage, but it's low priority right now. More important to get a proper test suite written and a proper 2-phase commit as outlined in the mongo docs.