how can we compress data while storing in mongo db with spring boot

Viewed 10

I have one big size json object so before storing in mongo we need to compress the data and on retrieving we need to decompress the data to match with exact format. I also tried to change compression method from weird tiger to zlib or snappy but that is not help much. can some please help me on this. data format

"key1":"value",
"key2":[{},{},{},{},{}],
"key3":[{},{},]
.......
}```


Thanks in Advance..
 
0 Answers
Related