Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7013903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:27:04+00:00 2026-05-27T22:27:04+00:00

My document looks like this- { _id : ObjectId(4f0565b8440b4b19d407ea29), type : web, when :

  • 0

My document looks like this-

{   "_id" : ObjectId("4f0565b8440b4b19d407ea29"),   "type" : "web",  
    "when" : ISODate("2012-01-05T08:56:24.134Z"),   "user" : "IIUEBSTJ",  
    "res" : false
}

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-

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);
}

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:27:05+00:00Added an answer on May 27, 2026 at 10:27 pm

    As an attempt to answer this constructively, I’d suggest considering first (as the commenters have suggested) what is the right number of inserts/sec for you. That is entirely dependent on your use case, and one would hope that you can answer it better than anyone here.

    If you think that you ought to be getting more performance than you are (and a quick Google search suggests that the answer is yes), try to figure out where your current bottlenecks are and focus your attention there. For instance:

    1. Are all the CPUs pinned at 100% on either your client machine or your server? For the client, use Windows Task Manager or the excellent Process Explorer from sysinternals. For the server, use the top command. This may mean that you simply need more CPU muscle on that machine.

    2. Is one CPU on the client or server pinned at 100%, while others are idle? If that is the case, you are probably looking at a single-threaded process that could benefit from multithreading. If it’s on the server, then spreading your write workload out among several clients may help.

    3. Are either of your machines using all of their memory? The same tools may help to diagnose this.

    4. Are either of your machines saturating their network bandwidth? Same tools to diagnose for windows, or something like vnStat for Linux. If so, you may need to switch to faster network hardware (network cards, switches, routers, better cable, etc).

    This isn’t intended to be a snarky answer- just trying to point you in the right direction for diagnosing this kind of thing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an xml document that looks like this. <foo> <bar type=artist/> Bob Marley
The the post document looks like this: { ... comments: [{ _id:... body:... createDate:...
I have a document that looks like this: { _id: 3, Slug: slug, Title:
Say I have a xml document that looks like this <foo> <bar id=9 />
I have an XML document which looks something like this: <meadinkent> <record> <comp_div>MENSWEAR</comp_div> <sty_ret_type>ACCESSORIES</sty_ret_type>
I have got an XML document which looks something like this. <Root> <Info>....</Info> <Info>....</Info>
So I have a DOM document that looks essentially like this <categories> <category id=1/>
I'm using nokogiri with an xml document that looks something like this: <songs> <song>
Jquery has a great language construct that looks like this: $(document).ready(function() { $(a).click(function() {
I want to transform an XML document. The source XML looks like this: <svc:ElementList>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.