Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MongoDB Performance Based on Document Size

I've been playing around with the samus mongodb driver, particularly the benchmark tests. From the output, it appears the size of the documents can have a drastic effect upon how long operations on those collections take.

alt text

Is there some documentation available that recommends what balance to strive for or some more "real" numbers around what document size will do to query times? Is this poor performance more a result of the driver and any serialization overhead? Has anyone else noticed this?

like image 424
Ty. Avatar asked Mar 03 '26 07:03

Ty.


1 Answers

But is it a good benchmark? Don't think so. Read Mongodb performance on Windows .

I think the exception that happens when the index should have been created is still swallowed. FindOne() medium return 363 with and without the "creation" of the index.

like image 109
TTT Avatar answered Mar 05 '26 19:03

TTT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!