mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-06 00:06:06 -04:00
Replace the two-table design (metadata_index + metadata_blobs) with a single metadata table storing etag, modified, cached_at, is_full flag, and the raw JSON blob. The separate index table added complexity without meaningful benefit — we parse the full blob anyway to extract the resolved version's manifest after picking. The single table keeps writes simple (1 INSERT with the raw registry response) and reads simple (1 SELECT + JSON.parse). The is_full flag ensures that abbreviated-only cache entries are not served when full metadata is requested (e.g., for optional dependencies).