-
Notifications
You must be signed in to change notification settings - Fork 34
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
feat: add blockReadConcurrency option to exporter #361
feat: add blockReadConcurrency option to exporter #361
Conversation
By default we attempt to load all sibilings in a given layer of a DAG at once to allow slow/async loading routines extra time to fetch data before it is needed. Some blockstores (e.g. CAR files) require the exporter to only request the next sequential CID in a DAG. Add a `blockReadConcurrency` option (named similarly to the importer's `blockWriteConcurrency` option) to control this behaviour. Fixes #359
cc @guanzo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, but I think we can provide more guidance around the final result of setting the values of the new config option. suggested edit provided.
Does the concurrency option also need to be set in these 2 places? js-ipfs-unixfs/packages/ipfs-unixfs-exporter/src/resolvers/unixfs-v1/content/directory.ts Line 28 in 88d73a6
Line 65 in 88d73a6
|
…-concurrency-exporter-option
Co-authored-by: Rod Vagg <rod@vagg.org>
@guanzo yes, good spot - this has been updated and tests for this added. |
🎉 This PR is included in version 13.4.0 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 11.1.4 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
By default we attempt to load all sibilings in a given layer of a DAG at once to allow slow/async loading routines extra time to fetch data before it is needed.
Some blockstores (e.g. CAR files) require the exporter to only request the next sequential CID in a DAG.
Add a
blockReadConcurrency
option (named similarly to the importer'sblockWriteConcurrency
option) to control this behaviour.Fixes #359