Optimize memory usage of table.TableIndex #1335
Labels
area/performance
Performance related issues.
kind/enhancement
Something could be better.
status/accepted
We accept to investigate or work on it.
Badger keeps the index used by each table in memory
https://github.com/dgraph-io/badger/blob/62b7a10a949e77b33d43cd7438979833c32cc865/table/table.go#L94-L102
As the number of SST grows, the number of in-memory index blocks grows. The memory usage grows linearly with the number of tables. We should be cache the index blocks in ristretto.
This issue was also seen on hypermodeinc/dgraph#5361 (comment)
The text was updated successfully, but these errors were encountered: