koa-mongodb-session
koa-mongodb-session copied to clipboard
ttl for documents
At some point we need to remove expired docs, did I miss this feature out?
nope didn't miss it. still need to add the TTL index and an extra date field. just haven't gotten to it yet.
do you think its better to use mongos ttl than just remove periodically manually? there are lots of considerations haha http://docs.mongodb.org/manual/tutorial/expire-data/
yes. manually we'll run into a lot of the same considerations but also have to write the code ourselves. we'd also need to somehow account for more than one app server running and tracking reapers across them all (yuck).