Closed general

Store identical datasheet PDFs once: 73 GB of 167 GB is duplicate copies

Ray · ·closed by Colby Knox

What

Component pages each store their own copy of the datasheet PDF. Many parts share one datasheet (a family sheet, a series catalogue), so the same bytes are stored many times.

Numbers

A read-only scan of every page on 2026-11-24 (file sizes and sha256 of each hosted PDF; nothing was changed or removed):

Pages scanned 126,185
Pages hosting a datasheet PDF 118,700
Hosted datasheet bytes 167.4 GB
Unique files by hash 74,353
Bytes that are repeat copies 73.1 GB

Examples: one 33 MB Atmel sheet is stored on 15 pages (466 MB), a 2.7 MB sheet on 111 pages (295 MB), a SAMD51 sheet on 17 pages (233 MB). Murata MLCC pages each carry the same 20 MB catalogue PDF.

Why it matters

Storage was at 8% free on 2026-11-23 and bulk publishing is paused because of it. About 44% of datasheet storage is duplicates.

Proposal

Store page files by content hash so identical files are kept once, whatever page references them. Done at the storage layer, pages and publishers need no change, and it covers STEP and GLB files shared between packaging variants as well.

If that is too large a change, a narrower option: let a page's datasheet point at a shared blob (by hash) so publishers can skip the upload when the wiki already has the file.

The per-file list (hash, size, pages holding it) is available on request.

1 Reply

Colby Knox marked this in progress ·
Colby Knox ·

The datasheet pool is live on prod, and the first full pass finished on 2026-11-25 at 13:11 UTC with 0 errors.

  • 61,371 pages scanned
  • 5,277 datasheets pooled (each one used by more than one page)
  • 56,833 pages now read their datasheet from the pool instead of keeping their own copy
  • about 62 GB of disk freed
  • 0 old copies left waiting to be dropped

To check that nothing changed for readers, I recorded 2,382 datasheets across many pages before the sweep, then downloaded them all again afterward. All 2,382 match byte for byte. Page files, downloads and installs work the same as before. Only storage changed.

The pool keeps itself current: a pass runs every 6 hours (and 20 minutes after each restart) and picks up any new datasheets, so no more bulk runs are needed. Closing.

Colby Knox closed this ·

Log in to reply.