deconst / content-service

An API for storing, indexing and retrieving documentation
MIT License
4 stars 9 forks source link

Optionally prefix collection names #74

Closed smashwilson closed 8 years ago

smashwilson commented 8 years ago

Rather than require separate MongoDB databases for the production and staging content services, or migrating our ObjectRocket instances to something bigger that allows multiple databases, I think I'm just going to prefix our collection names with a fixed string to allow us to point both at a single database without colliding. We're storing a pretty minuscule amount of data in there and it feels silly to increase the burden on ObjectRocket to store that little data.