Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

136
Views
MongoDb docker hangs after some requests

I have MongoDB running in Docker for Windows on my local machine. The configuration from my compose file is:

mongo:
  image: mongo:latest
  ports:
    - "27017:27017"

At the moment i am building an import process with ASP.NET Core where I have to import about 1.1 Mio documents. I realized that the import process just stops after about 400k items. When I break the process I a task from the network layer (NetworkStream.WriteAsync) but no busy or waiting thread at all. MongoDB is still alive, I can connect with MongoChef and also run queries.

I import the document in batches of 5.000 items:

var requests = 
    this.transformedHotels.Select(x => 
        new ReplaceOneModel<MongoTransformedHotel>(Builders<MongoTransformedHotel>.Filter.Eq(y => y.Id, x.Id), x)
        {
            IsUpsert =  true
        });

return this.collection.BulkWriteAsync(requests);

When I run MongoDB without docker it works. What can cause my network connection to hang?

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!