Reputation: 89
I am trying to use network compression feature of mongoDb using golang, I am trying to use Zstd compression, and I am using the following method at the time of db connection,
opts := options.Client().ApplyURI("mongodb://" + ipPort).SetConnectTimeout(5 * time.Second).SetCompressors([]string{"zstd"})
While checking the db logs, I found an message with the db connection logs,
Compression negotiation not requested by client
Can you please help me, why this message is shown? Is there any problem with the db connection? Will it make any impact on MongoDb queries?
Upvotes: 2
Views: 193