ryan-endacott / twitter-interest-map

2 stars 0 forks source link

Database size limit #3

Open dan-silver opened 11 years ago

dan-silver commented 11 years ago

We are currently using 0.8% of our free space and we haven't started collecting large amounts of data yet. So, this thread will be about ways to reduce our database size. Some initial ideas:

Source: http://docs.mongodb.org/manual/faq/developers/#how-do-i-optimize-storage-use-for-small-documents

ryan-endacott commented 11 years ago

One way to cleanly handle the smaller names would be to use Mongoose aliases. I'll look more into implementing them.

dan-silver commented 11 years ago

Also, unless we're ever going to use the version key, we can disable them for every collection. Right now, I think they are all 0.

http://mongoosejs.com/docs/guide.html#versionKey

dan-silver commented 11 years ago

One option for the aliases could be https://github.com/ramiel/Alias-Field-Mongoose-plugin, but it looks rather hackish.