Decompression uses too much memory #1239
Labels
area/performance
Performance related issues.
kind/enhancement
Something could be better.
priority/P0
Critical issue that requires immediate attention.
status/accepted
We accept to investigate or work on it.
Badger uses compression to reduce disk space. When the block are decompressed, it takes up too much memory.
badger/table/table.go
Lines 625 to 629 in 5b4c0a6
The crux of the problem is that the decompression call allocates new block every time we want to decompress an existing block. An ideal fix here would be to find a way to reuses the blocks of memory.
Taken from chat: https://dgraph.slack.com/archives/C13LH03RR/p1583223673220200?thread_ts=1583216894.212400&cid=C13LH03RR
The text was updated successfully, but these errors were encountered: