From b3aaac8dc59257247ff557a4de0d3363f6b4e3db Mon Sep 17 00:00:00 2001 From: Harshil Goel Date: Thu, 30 Jan 2025 09:29:35 +0530 Subject: [PATCH] removed fluff code --- posting/list.go | 4 ---- posting/mvcc.go | 7 ------- worker/server_state.go | 3 --- 3 files changed, 14 deletions(-) diff --git a/posting/list.go b/posting/list.go index 00d866469d5..d61b6f20966 100644 --- a/posting/list.go +++ b/posting/list.go @@ -2063,10 +2063,6 @@ func (l *List) findPosting(readTs uint64, uid uint64) (found bool, pos *pb.Posti return false, nil, nil } -func (l *List) Print() { - fmt.Println("PRINTING", l.key, l.plist.Postings, l.mutationMap.print()) -} - // Facets gives facets for the posting representing value. func (l *List) Facets(readTs uint64, param *pb.FacetParams, langs []string, listType bool) ([]*pb.Facets, error) { diff --git a/posting/mvcc.go b/posting/mvcc.go index c1b32196f1c..3cbe66bd726 100644 --- a/posting/mvcc.go +++ b/posting/mvcc.go @@ -20,9 +20,7 @@ import ( "bytes" "context" "encoding/hex" - "fmt" "math" - "runtime/debug" "strconv" "sync" "sync/atomic" @@ -536,11 +534,6 @@ func ReadPostingList(key []byte, it *badger.Iterator) (*List, error) { return nil, errors.Wrapf(err, "while reading posting list with key [%v]", key) } - if pk.Attr == "0-genre" { - fmt.Println(pk) - debug.PrintStack() - } - start := time.Now() defer func() { ms := x.SinceMs(start) diff --git a/worker/server_state.go b/worker/server_state.go index b75fda8cef0..52b1db9cb2a 100644 --- a/worker/server_state.go +++ b/worker/server_state.go @@ -98,9 +98,6 @@ func setBadgerOptions(opt badger.Options) badger.Options { // detection. Using badger's conflict detection uses memory which can be // saved by disabling it. opt.DetectConflicts = false - opt.TableSizeMultiplier = 5 - - opt = opt.WithNumCompactors(8) // Settings for the data directory. return opt