Tips for MongoDB Developers

Here the some tips for mongodb developers.

    Tool Related :

1.Free MongoDB Hosting from MongoLab : Signup and try this so that you can explore and play well with the basics without worrying about the setup. MongoLab

2.RoboMongo – management studio for MongoDB :
RoboMongo

3.JSON to CSV/Table : Online Utility to generate a table/csv out of a JSON. I usually copy the output from robomongo and paste it here to generate the csv file.
JSON to CSV

Please checkout this for more tools : MongoDB Tools

    Query Related :

1.Sort in Descending order with limit
db.[collection_name].find({}).sort({_id:-1}).limit(10)

2.Move a Collection from one DB to another DB in same server
use admin;
db.runCommand({renameCollection:”[db_1].[collection_name]”,to:”[db_2].[collection_name]”})

AuthorNirmal

Technical Geek - Gadget Enthusiast - Loves Programming C#,PHP & IOS - Blogger About