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

  • Home
  • SEARCH
  • 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 8611967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:30:39+00:00 2026-06-12T04:30:39+00:00

I made a Java algorithm. It access the MongoDB database. It looks like they

  • 0

I made a Java algorithm. It access the MongoDB database. It looks like they don’t provide a method like .close() or .dispose(). SO I never use this kind of methods in the codes. Every time I run/debug the program, it becomes slower and slower. Is that any reasons or possibilities, generally or specifically?

  • 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-12T04:30:40+00:00Added an answer on June 12, 2026 at 4:30 am

    The specific problem is that you are probably not cleaning test data out of the database after each run.

    But this is also telling you something important about your application’s scalability; i.e. that it is likely to slow down noticeably in production as you add more and more data … in some particular dimension. You should probably track down what is causing this problem now, rather than waiting until you run into operational problems.

    The slow down that you are observing could potentially be a number of things, but I’d start by looking at whether your query performance could be improved by adding appropriate indexes.


    I only retrieve. I don’t insert new data.

    That’s what you say. In practice, something must be inserting data … or something like that. It is hard to see what else could be causing the slowdown.

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

Sidebar

Related Questions

I made a java method to add a row to a database. I am
Beginner in Android development. My code crashes. I have made a simple Java method
I have an algorithm written in Java that I would like to make more
I have made a Java application that uses the PBKDF2WithHmacSHA1 encryption algorithm and I
I made a java app for android 2.3.4 and would like to find out
I have made a java project and want to deliver it to a client
I have made a java swing GUI. Now I want to display a static
I have made a java application and have packed it into an executable jar
I have made a java application that stores data from a .csv file to
I have made a Java class where I have defined a constructor and some

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.