Browsing the archives for the Administration category

Compacting MongoDB Collections

in Administration

TweetA while back we wrote a post explaining how to compact MongoDB data files, that example shows how to use some server side javascript and a cron job to automatically compact the data files on a schedule … however this isn’t always ideal as it will compact all the collections in a database at one [...]

0 Comments

Quick Tip: Copy DBs Between Servers

in Administration, Quick Tip

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 [...]

1 Comment

Compacting MongoDB Data Files

in Administration, Stackoverflow

Tweet StackOverflow Anwser Series This is a new “concept” post based on StackOverflow Questions/Answers. Feel free to comment below if this format is helpful & informative! Overview This Answer covers the following MongoDB topics: Data Files Compacting Data Files The db.repairDatabase(); command Capped Collections Server-side Javascript Question StackOverflow Link Is there a way to auto compact MongoDB [...]

5 Comments

Quick Tip: Using Users in MongoDB

in Administration, Quick Tip

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 [...]

2 Comments

MongoDB 32bit is Limited to ~2.5GB, Why?

in Administration

TweetIf you have a 32bit server and are running MongoDB you may have noticed that MongoDB 32bit is limited to ~2.5GB databases, why? Simple anwser … MongoDB embrarses the future, and the future is 64bit! The nerdy (and more complicated) answer is down to how MongoDB’s storage engine works. Storage Engine The MongoDB storage engine (that stores and [...]

0 Comments