TweetSince MongoDB will allow you to store more than just string and int values but also things like arrays … from time to time you might need to know how many items are in an array in your document. For example, say you have a hosting business and to make a good profit you need [...]
Browsing the archives for the Quick Tip category
TweetInspired by this Stackoverflow question I thought it would be worth while to post this quick tip … If you ever need to copy (or “clone”) a MongoDB databse between two MongoDB servers its as easy as running the copyDatabase() command. First, change into your admin db … Then, run copyDatabase() supplying the needed information, the [...]
TweetBy default a MongoDB install does not use a username/password combination to access the database. No Password, But Why? This is down to the design philosophy of MongoDB which is to push much of the “logic” to the application level and keep the database doing what databases do best! Hence, given the way that MongoDB [...]




