Is there a bandwidth/speed limitation with MongoDB?

AkhirAbhiRa 1 Reputation point
2022-08-23T06:51:52.597+00:00

Is there a bandwidth/Speed limitation with MongoDB? Ideally the insert speed should come near the file transfer speeds, but it's 1/3 at best.

Details below.

Server: MongoDB v4.4 community edition, running on Windows 10 Virtual Machine
Client: .NET app using v2.11 .NET Mongo Driver

The application has to save 1.22MB of data every 100 milliseconds, more than that causes latencies in my system, which is very serious. Without using compression it takes ~140ms, with compression it takes ~80ms but the system runs many services so there could be delays, so even the ~80ms is not enough. With compression the transfer speed is ~15MBps at best, but the maximal transfer speed I achieved (using a file transfer to the mongo server computer) gave 50MBps.

The problem is not the mongod data save - while trying to save ~60MB of data the log showed it took ~400ms while the entire transfer took ~5 seconds.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,400 questions
{count} votes