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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:17:51+00:00 2026-06-17T23:17:51+00:00

We are using Mongo DB in our Java EE based application. As per the

  • 0

We are using Mongo DB in our Java EE based application.
As per the architecture of our application, the Mongo DB gets continuously updated through different threads (keeping Mongo DB always busy).

So as result Mongo DB is continuously busy with reads, writes and updates.

We have a concern. What we observed is that when Mongo DB is at its peek utilization (known through top command in linux ) , the reads from Mongo DB fetches wrong values.

Sometimes this is reproducible and sometimes not, it depends on the load.

Please let us know how to address this issue.

  • 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-17T23:17:53+00:00Added an answer on June 17, 2026 at 11:17 pm

    Due to the replication in asynchronous in mongoDB when you using SlaveOk:true you also read from the secondaries but the data is not certainly present there. Specially when you have big load, the replication over network can slow down, it called replication lag, and you can check it with: http://docs.mongodb.org/manual/reference/method/db.printSlaveReplicationInfo/#db.printSlaveReplicationInfo

    If you turn off reading from secondaries with slaveOk : false, your app will read from primaries, to decrease the load use sharding in this case, and have no worries about the primary going down if you have appropriate replication structure one secondary will take over.

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

Sidebar

Related Questions

We are using Mongo DB for our Java Java EE based application. We are
We are using Mongo DB for our Application . Currently when i issue the
Iam using mongo as an db for my web app. Java code queries the
Our application is using Symfony 2.0 and MongoDB with FOSUserBundle for user management. Client
my Windows Phone mango based application will update its location to our main application
I am using mongo db for a model in my rails application, and when
I am using mongo and node.js in an application. The mongo database consists of
I'm using the Mongo LINQ Driver for C#, works great. Sorting a lot of
I am using PHP/Mongo to query a data set like the following: { description:
I am using the Mongo Ruby driver and have this block of Ruby code

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.