title: is insert speed of 5000 per second good enough for MongoDB?
body: <p>My document looks like this- </p>
  
  <pre><code>{   "_id" : ObjectId("4f0565b8440b4b19d407ea29"),   "type" : "web",  
      "when" : ISODate("2012-01-05T08:56:24.134Z"),   "user" : "IIUEBSTJ",  
      "res" : false
  }
  </code></pre>
  
  <p>As you can see, it is fairly simple and small document. _id is automatically being indexed by MongoDB. I am generating these documents via C# MongoDB driver. MongoDB instance version 2 is running on Ubuntu box with 512 MB RAM and 2 core CPU. Since I am using SDD, I don't see any noticeable change in insert speed when faults occur. Here is the code for generating these documents- </p>
  
  <pre><code>MongoDatabase db = server.GetDatabase("logs");
  MongoCollection coll = db.GetCollection("logs");
  long ctr = 0;
  for (; ; )
  {
      Console.WriteLine("Doc# {0}", ctr++); 
      BsonDocument log = new BsonDocument();
      log["type"] = "auth";
      BsonDateTime time = new BsonDateTime(DateTime.Now);
      log["when"] = time;
      log["user"] = RandomString(8); 
      BsonBoolean bol = BsonBoolean.False;
      log["res"] = bol;
      coll.Insert(log);
  }
  </code></pre>
  
  <p>Currently I am getting about 5k inserts per second. Is this good enough? By "good", I want to know if this is the kind of speed you insert speed you've seen?</p>