Skip to content

Progress tracker for index creation #351

@aschmahmann

Description

@aschmahmann

Index creation can be very expensive for large CARs and it'd be nice to be able to track (and in the CLI emit) progress as it's being generated.

If

func LoadIndex(idx index.Index, r io.Reader, opts ...Option) error {
took a context I'd probably recommend attaching the tracker there (and probably also allowing the caller to bail via context cancellation). We could potentially put it into the Options struct, but I don't know if that fits the model of what that struct is aiming for.

Any suggestions on acceptable API modifications (or new function introductions) here?

Metadata

Metadata

Assignees

Labels

P3Low: Not priority right now

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions