Skip to content

Commit 701f9cf

Browse files
Update storage/store/chunk_data_packs.go
Co-authored-by: Alexander Hentschel <[email protected]>
1 parent b4ee3b0 commit 701f9cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

storage/store/chunk_data_packs.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ type ChunkDataPacks struct {
4545
// the actual chunk data pack is stored here, which is a separate storage from protocol DB
4646
stored storage.StoredChunkDataPacks
4747

48-
// the collection is stored separately by the caller, it is only used here for retrieving collection
49-
// when returning chunk data pack by chunk ID
48+
// We assume that for every chunk data pack not for a system chunk, the executed collection has
49+
// previously been persisted in `storage.Collections`. We use this storage abstraction here only for
50+
// retrieving collections. We assume that `storage.Collections` has its own caching already built in.
5051
collections storage.Collections
5152

5253
// cache chunkID -> chunkDataPackID

0 commit comments

Comments
 (0)