Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Download package versions lazily #5

Open
justinfagnani opened this issue Jul 30, 2022 · 0 comments
Open

Download package versions lazily #5

justinfagnani opened this issue Jul 30, 2022 · 0 comments

Comments

@justinfagnani
Copy link
Contributor

Right now the package import code downloads all package versions eagerly. This can be a lot of processing when the latest version is going to be requested and queried the vast majority of the time.

We should structure the import code so that the lastest version at import time is downloaded and indexed, as well as the list of versions and dist-tags. The other versions can be downloaded and indexed on demand.

This will mean that queries across packages will be limited to latest versions. This was likely the be the case in practice already as querying across packages at specific version numbers doesn't make a lot of sense since version numbers are mostly uncorrelated. We may want to download and index all versions referenced by dist-tags.

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

No branches or pull requests

1 participant