Skip to content

Commit

Permalink
removed fluff code
Browse files Browse the repository at this point in the history
  • Loading branch information
harshil-goel committed Jan 30, 2025
1 parent c4cb724 commit b3aaac8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions posting/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
7 changes: 0 additions & 7 deletions posting/mvcc.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ import (
"bytes"
"context"
"encoding/hex"
"fmt"
"math"
"runtime/debug"
"strconv"
"sync"
"sync/atomic"
Expand Down Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions worker/server_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3aaac8

Please sign in to comment.