IMServer:MongoDB
From KitwarePublic
Revision as of 15:21, 19 January 2011 by Dhanannjay.deo (talk | contribs) (Created page with "== MongoDB == * 64 bit recommended due to 2gb data size barrier in 32bit * 1.7.4 has some enhancements like 16mb limit per binary record * Binary can be downloaded from * On de...")
MongoDB
- 64 bit recommended due to 2gb data size barrier in 32bit
- 1.7.4 has some enhancements like 16mb limit per binary record
- Binary can be downloaded from
- On deployment server, needs a script to be installed in init.d to stop / restart / start mongodb
Cookbook
How to find if a collection exists
Also it helps if mongo can be queried for existing collections first. That can be done by querying system.namespaces collection in that database, which lists all the collections
<source lang="javascript" show dbs use clay1 db.system.namespaces.find({ "name" :"clay1.n5"}) >
"clay1" is the name of the database, and "n5" is the name of the collection to find