Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly listing groups/arrays inside group metadata? #284

Open
shoyer opened this issue Jan 5, 2024 · 2 comments
Open

Explicitly listing groups/arrays inside group metadata? #284

shoyer opened this issue Jan 5, 2024 · 2 comments

Comments

@shoyer
Copy link

shoyer commented Jan 5, 2024

I'm curious if explicitly listing groups/arrays inside group metadata has been discussed before.

The downside is that this is redundant and potentially duplicate information (but in some sense so is all group metadata, see "implicit groups").

One advantage would be that this would eliminates the need to list the contents of a store and check for the existence of metadata objects, which can sometimes be rather expensive. It's kind of a half-way step to the consolidated metadata of Zarr v2.

It's also potentially useful for making group creation/modification atomic without race conditions like zarr-developers/zarr-python#1435, because the canonical list of a group's contents is a single metadata file rather than a collection of sub-directories, which usually cannot be modied in an atomic fashion.

@jhamman
Copy link
Member

jhamman commented Jan 5, 2024

We have been discussing an extension that would provided links to parents and children so that from any point within the hierarchy, you could navigate up or down the tree without having to list the store. This is conceptually similar to how STAC works.

This approach would be more scalable than the current consolidated metadata approach with the obvious tradeoff that walking the tree one node at a time will often be more expensive than loading a single mapping of all the metadata.

cc @rabernat and @jedsundwall

@jedsundwall
Copy link

Adding @kbgg who's working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants