Skip to content

Commit ab1d366

Browse files
committed
sharding added
1 parent a12435e commit ab1d366

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

intermediate/intro-to-zarr.ipynb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,14 @@
637637
"\n"
638638
]
639639
},
640+
{
641+
"cell_type": "markdown",
642+
"id": "139134af",
643+
"metadata": {},
644+
"source": [
645+
"This example shows how to create a sharded Zarr array with a chunk size of `(100, 100, 100)` and a shard size of `(1000, 1000, 1000)`. This means that each shard will contain 10 chunks, and each chunk will be of size `(100, 100, 100)`.\n"
646+
]
647+
},
640648
{
641649
"cell_type": "code",
642650
"execution_count": null,
@@ -657,6 +665,17 @@
657665
"z6.info"
658666
]
659667
},
668+
{
669+
"cell_type": "markdown",
670+
"id": "28877070",
671+
"metadata": {},
672+
"source": [
673+
"\n",
674+
"```{tip}\n",
675+
"Choose shard and chunk sizes that balance I/O performance and manageability for your filesystem or cloud backend.\n",
676+
"```"
677+
]
678+
},
660679
{
661680
"cell_type": "markdown",
662681
"id": "1e0d1a8e",

0 commit comments

Comments
 (0)