Skip to content

Differences of the read and write mode? #1011

Answered by joshmoore
Karol-G asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Karol-G, I migrated the issue to discussions to match your intent. Hope that's ok.

What are the different effects of such modes?

This works quite similarly to the modes to open(). If a Zarr is opened for a read, then it shouldn't overwrite chunks.

if I create a larger-than-RAM array in write-only mode, does it mean that no memory will be occupied by the array?

If it's a Zarr array, then yes, the whole array should never be in memory. If you materialize the array, for example by trying to fill a numpy array, then you could (or will!) run out of memory.

If yes, is this also true if I write into different chunks in this write-only array?

Yes. When you write into the array, each chu…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Karol-G
Comment options

Answer selected by Karol-G
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1010 on April 21, 2022 09:20.