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

The Archive Base Latest Questions

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

I have a problem insert mongodb using vb.net. Public Sub runMongoDBQuery(ByVal nameDatabase As String,

  • 0

I have a problem insert mongodb using vb.net.

Public Sub runMongoDBQuery(ByVal nameDatabase As String, ByVal nameCollection As String, ByVal queryBson As BsonDocument, ByVal serverString As String)


        Dim mongo1 As MongoServer = MongoServer.Create("mongodb://localhost/?safe=true") 
        mongo1.Connect()
        Dim db = mongo1.GetDatabase(nameDatabase)
        Dim collection1 = db(nameCollection) 
        collection1.Save(queryBson)// this is hang
        mongo1.Disconnect()


 End Sub

When I user this function, it run smoothly and suddenly hang.

It doesn’t throw exception but hang.

The problems run very rarely.

All the function did is saving queryBson

I will:

  • Check content of queryBson
  • Check log of mongodb server
  • Update the question once I got more info
  • 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-12T12:39:50+00:00Added an answer on June 12, 2026 at 12:39 pm

    I managed to solve this problem by restarting mongodb and deleting the log. Thanks to Cirrus’s comment.

    The log is 3GB and I strongly suspected it’s the culprit.

    Such a high log is useless because text editor can’t open it anyway. Deleting the log without restarting mongodb causes a side effect where logs are no longer created.

    I will soon ask another question how to limit log for mongodb, maybe on the database forum.

    This question has a sequel:
    https://dba.stackexchange.com/questions/25658/how-to-keep-mongodb-log-small

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

Sidebar

Related Questions

I am using a thread-safe queue class and have a problem with the insert
we have problem with slow insert statement using 40 bind variables as columns values.
I have started learning django and have a problem with INSERT-query using ORM (DB
I have a problem running an insert query via C# OleDbCommand to an Access
I have a little problem to insert from 2 different table's in C# to
I have a problem reading a txt file to insert in the mysql db
I have some problem whith such mysql_query INSERT INTO table VALUES ('', CURDATE()-1) why
I am creating an insert process in php but I have a problem in
I have a little problem where I would like to insert a svn diff
Gday All, I have a baffling problem whilst trying to insert some chinese characters

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.