Customer story · Engineering · 10,000+ sites
Finding the right document again, in a 10,000-site tenant
A large engineering company’s documents were tagged a dozen different ways, so nobody could rely on search. The fix, the right content type on every document, sounds simple. At 10,000 sites and 38 million files the standard tools could not do it, so we built tooling that could, and proved the result with a report.
Updated
14.3 million items checked in 36 minutes
Short answer: A large engineering company’s documents were tagged a dozen different ways, so nobody could rely on search. The fix, the right content type on every document, sounds simple. At 10,000 sites and 38 million files the standard tools could not do it, so we built tooling that could, and proved the result with a report.
When nobody can trust search
Years of growth had left metadata set a dozen different ways. Engineers saved project files wherever it worked; libraries grew past 100,000 items, a few past 200,000. Searching was slow and unreliable. And any tool that depends on those tags, Copilot included, can only be as good as the tags are.
The fix sounds simple: give every document the right content type and default values. At this size it was not. The first reporting script ran for hours and never finished. Reading one giant library the standard way used gigabytes of memory and ran out. SharePoint throttled requests the moment they got heavy. And some Office files quietly put their old content type back after being changed.
Building tools that did not fall over
Measured before changing anything
We rebuilt the reporting first: lean REST calls, 5,000-item pages and parallel workers that save each site as soon as it finishes. The whole tenant now reads in under an hour, 14.3 million items in 36 minutes, so every later change could be checked against real numbers.
Went past the limits of the standard tools
We compared the methods on the client's own data. For 5,000 items, the standard PnP read took 81 seconds and about 2 GB of memory; our REST read took 25 seconds and about 1 GB. A library of 202,803 items read in 7.7 minutes. The worker switches to REST automatically for large libraries, and when SharePoint throttles a filtered request it falls back to plain paging instead of failing.
Built it to run unattended, safely
A memory watchdog lets several runs work side by side: each one cleans up at 85 percent of the machine's memory and stops cleanly at 95 percent so a fresh run can pick up. Pairs of runs work through the same list from opposite ends. Each site gets a preflight report before anything changes, and files whose content type SharePoint puts back are tracked and fixed on the next pass.
Tagged by business area, then proved it
Content types and default values were applied in 16 business-area jobs, archived sites skipped automatically. Exports carry a completeness check, so "done" means every matching item was seen. The client's IT team now runs the remaining sites with our configurations.
Proof the tagging was done
- 96.9% of in-scope files on the target content types
- Reads 3× faster with half the memory than the standard method
- The whole tenant reported in under an hour
- Runs that clean up after themselves and can be restarted safely
- Jobs the client's IT team runs on its own
Why we built our own reads
The standard tools were measured against ours on the client's own libraries before anything was changed.
| Method | Time | Memory |
|---|---|---|
| Standard PnP read | 81 seconds | about 2 GB |
| Our lean REST read | 25 seconds | about 1 GB |
From this engagement: a library of 202,803 items read in 7.7 minutes, and the whole tenant reported in under an hour.
Is this close to your situation?
Your tenant is too big for the usual tools, and you need metadata people and search can rely on, with proof it is done.
Questions
Questions about metadata at scale
Why do standard tools fail on very large SharePoint libraries?
At hundreds of thousands of items they run out of memory or get throttled. Here, reading 5,000 items took 81 seconds and about 2 GB with the standard method, and 25 seconds and about 1 GB with lean REST calls.
How do you prove metadata work is finished?
With a report that reads every item. The whole tenant reports in under an hour, and 96.9% of in-scope files were confirmed on the target content types.
The lesson
If you cannot measure it, you cannot prove it is done. Measure first, then change, then measure again.
Not ready for a call?
Metadata and automation guides, by email
Lessons from tenants too big for the usual tools, written up when we publish them.
Your email is used only for what you ask for. See our Privacy Policy.
Free 30-minute call
Metadata at this scale? Talk to the team that built the tooling
- Free, 30 minutes, on Teams
- Experienced SharePoint people, not a salesperson
- A reply within 1 business day, normally within 4 hours
- You leave with next steps, even if you never hire us
