Files
pnpm/installing
Zoltan Kochan d65a383dec perf(package-requester): gate the upgrade-path SQLite probe on cheap checks
The migration block that copies a git-hosted tarball entry from the
legacy gitHostedStoreIndexKey to storeIndexKey(integrity, pkgId) was
calling storeIndex.has() on every fetch, including all npm-registry
packages it has no business probing — a SELECT per package, multiplied
across thousands of dependencies.

Reorder so the URL prefix check (isGitHostedPkgUrl) and the integrity
presence check run first, and the SQLite lookup only runs for
git-hosted resolutions with integrity in the lockfile. Same migration
behaviour, ~zero overhead on the hot path.

---
Written by an agent (Claude Code, claude-opus-4-7).
2026-05-06 09:56:32 +02:00
..
2026-05-05 19:50:32 +02:00
2026-05-05 19:50:32 +02:00
2026-04-30 23:03:46 +02:00
2026-04-30 23:03:46 +02:00
2026-04-30 23:19:31 +02:00
2026-05-05 19:50:32 +02:00
2026-05-05 19:50:32 +02:00
2026-04-30 23:03:46 +02:00
2026-04-30 23:03:46 +02:00