Conversation
ashish-goswami
left a comment
There was a problem hiding this comment.
Most of the changes are refactoring.
Reviewed 6 of 12 files at r1, 6 of 6 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @jarifibrahim and @manishrjain)
table/table.go, line 116 at r2 (raw file):
blockIndex []*pb.BlockOffset ref int32 // For file garbage collection. Atomic. bf *z.Bloom // Nil if BfCache is set.
Undo this.
Co-authored-by: Naman Jain <naman@dgraph.io>
Co-authored-by: Naman Jain <naman@dgraph.io>
ashish-goswami
left a comment
There was a problem hiding this comment.
Reviewed 2 of 2 files at r3.
Reviewable status: 11 of 12 files reviewed, 5 unresolved discussions (waiting on @ashish-goswami, @jarifibrahim, and @manishrjain)
…o/badger into ibrahim/cache-changes-1
There was a problem hiding this comment.
Reviewed 5 of 12 files at r1, 4 of 6 files at r2, 1 of 2 files at r3, 1 of 1 files at r4, 1 of 1 files at r5.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @jarifibrahim, @manishrjain, and @NamanJain8)
manishrjain
left a comment
There was a problem hiding this comment.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @jarifibrahim, @manishrjain, and @NamanJain8)
Review comments addressed
This PR separates the block cache and the index cache. Earlier we had a mix of both the caches. Block Cache -> Stores block. Should be used when running badger with compression/encryption Index Cache -> Used to limit the memory used by table indices and bloom filters. This PR also remove the `KeepBlocksInCache` and `KeepBlockIndicesInCache` options. (cherry picked from commit c3b1582)
This PR separates the block cache and the index cache. Earlier we had a mix of both the caches. Block Cache -> Stores block. Should be used when running badger with compression/encryption Index Cache -> Used to limit the memory used by table indices and bloom filters. This PR also remove the `KeepBlocksInCache` and `KeepBlockIndicesInCache` options. (cherry picked from commit c3b1582)
This PR separates the block cache and the index cache. Earlier we had a mix of both the caches. Block Cache -> Stores blocks. Should be used when running badger with compression/encryption Index Cache -> Used to limit the memory used by table indices and bloom filters. This PR also remove the `KeepBlocksInCache` and `KeepBlockIndicesInCache` options. (cherry picked from commit c3b1582)
This PR separates the block cache and the index cache. Earlier we had a mix of both the caches. Block Cache -> Stores block. Should be used when running badger with compression/encryption Index Cache -> Used to limit the memory used by table indices and bloom filters. This PR also remove the `KeepBlocksInCache` and `KeepBlockIndicesInCache` options.
This PR separates the block cache and the index cache. Earlier we had a mix of both the caches.
Block Cache -> Stores block. Should be used when running badger with compression/encryption
Index Cache -> Used to limit the memory used by table indices and bloom filters.
This PR also remove the
KeepBlocksInCacheandKeepBlockIndicesInCacheoptions.This change is