Skip to content
Discussion options

You must be logged in to vote

it seems to be totally for metadata rather than actual data.

Chunks are also cached (i.e. num_bytes_chunks parameter).

Here's an example of caching in action:

(Edited to fix typo)

import icechunk as ic
import zar

storage = ic.s3_storage(
    bucket="earthmover-sample-data",
    prefix="icechunk/gfs/solar/2024-05-13T00:00:00-pcodec",
    anonymous=True,
    region="us-east-1"
)
config = ic.RepositoryConfig.default()
# set to zero to turn off caching
config.caching = ic.CachingConfig(num_bytes_chunks=int(1e9))
repo = ic.Repository.open(storage, config)
session = repo.readonly_session("main")
array = zarr.open_array(session.store, path="t2m")

%time  array[0, 0, 0];
# -> 114 ms

%time array[

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rabernat
Comment options

@mtvector
Comment options

@paraseba
Comment options

Answer selected by mtvector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants