tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

Maybe use compressors for mongodb

Open hkupty opened this issue 1 year ago • 1 comments

It might not be significant since the payload is only a single, small object, but for much larger payload sizes it might make a significant difference to use zlib or zstd network compressors so the payload on the wire between mongo and the server app is smaller. This could be applied to both golang and bun in your previous benchmark.

hkupty avatar Oct 05 '24 17:10 hkupty

Thanks, @hkupty. I was thinking about using compression, but since it would be applied to both applications, I decided to leave it out. However, for production use, this would be beneficial. I'll enable compression next time I use MongoDB in the benchmark.

antonputra avatar Oct 05 '24 18:10 antonputra