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 8994603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:28:10+00:00 2026-06-15T23:28:10+00:00

I am using command as mongoimport -h m3 -d staging -c coll –upsert –upsertFields

  • 0

I am using command as

mongoimport -h m3 -d staging -c coll --upsert --upsertFields name < part1

I have mongoDB 64-bit installed on one machines, this is what I see in terms of upserts

        1300    433/second
        1900    316/second
        2400    266/second
        2800    233/second
        3100    206/second
        3400    188/second
        3700    168/second
        4000    160/second
        4200    150/second
        4400    141/second
        4600    135/second
        4800    129/second
        5100    124/second
        5300    120/second
        5500    117/second
        5700    114/second
        5900    109/second
        6100    107/second
        6300    105/second
        6500    101/second
        6700    100/second
        6900    97/second
        7100    94/second
        7300    92/second
        7500    90/second
        7700    88/second
        7900    86/second
        8000    85/second
        8200    83/second
        8400    81/second
        8600    80/second
        8700    79/second
        8900    77/second
        9100    75/second
        9300    74/second
        9500    73/second

and it goes much bad to almost 32/sec. My collection is initially empty

How can I increase the insert/upsert per second?

  • 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-06-15T23:28:12+00:00Added an answer on June 15, 2026 at 11:28 pm

    You could add an index on the field you’re querying for, in the upsert.

    This would improve the updates.

    But it won’t do it for the inserts. Anyway inserts are cheep and for an overall improvement in performance you could increase the RAM. (MongoDB is known to use a lot of RAM, and if the task exceeds the available RAM the performance will drop by a lot)

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

Sidebar

Related Questions

I'm running node.js on OSX and have just installed mongodb using command npm install
I have read that using command pattern is one of the most popular ways
I'm trying to connect from one server to another using FTP. By using command
I'm developing application using Command Pattern. I have two kind of operations in my
Some time ago I installed my PFX key into Container using command like this:
I have jar files which I constructed using command jar -cf Generic.jar /java/mypackage/*.class There
I have page with spring form fields. They're bind using command. Couple of fields
I want to export collection in mongodb using shell command: I try the following
I have checked out code using command-line SVN. I have an Ant build script
I have a .dot file and I am using command line to plot a

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.