MCPcopy
hub / github.com/dgraph-io/dgraph / GetFromDelta

Method GetFromDelta

posting/lists.go:400–402  ·  view source on GitHub ↗

GetFromDelta gets the cached version of the list without reading from disk and only applies the existing deltas. This is used in situations where the posting list will only be modified and not read (e.g adding index mutations).

(key []byte)

Source from the content-addressed store, hash-verified

398// and only applies the existing deltas. This is used in situations where the
399// posting list will only be modified and not read (e.g adding index mutations).
400func (lc *LocalCache) GetFromDelta(key []byte) (*List, error) {
401 return lc.getInternal(key, false, false)
402}
403
404// UpdateDeltasAndDiscardLists updates the delta cache before removing the stored posting lists.
405func (lc *LocalCache) UpdateDeltasAndDiscardLists() {

Callers

nothing calls this directly

Calls 1

getInternalMethod · 0.95

Tested by

no test coverage detected