From 3759fcb4453e6cfb80f767f18ae31eb96ccf3dd8 Mon Sep 17 00:00:00 2001 From: Harshil Goel Date: Mon, 27 Jan 2025 12:14:02 +0530 Subject: [PATCH] updated index --- worker/mutation.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/worker/mutation.go b/worker/mutation.go index 47679e58a19..bf433815acc 100644 --- a/worker/mutation.go +++ b/worker/mutation.go @@ -94,12 +94,11 @@ func runMutation(ctx context.Context, edge *pb.DirectedEdge, txn *posting.Txn) e // just create a posting list facade in memory and use it to store the delta in Badger. Later, // the rollup operation would consolidate all these deltas into a posting list. isList := su.GetList() - hasIndex := (len(su.GetTokenizer()) > 0 || su.GetCount()) var getFn func(key []byte) (*posting.List, error) switch { case len(edge.Lang) == 0 && !isList: getFn = txn.GetScalarList - case len(edge.Lang) > 0 || hasIndex && su.GetValueType() == pb.Posting_UID: + case len(edge.Lang) > 0 || su.GetCount(): // Any index or count index. getFn = txn.Get case edge.Op == pb.DirectedEdge_DEL: