certified.one has about 14,000 accounts. Many share the same invite codes.
For each account, the PDS includes the invite code used to create it. That invite code contains a uses list of every account created with the same code. If one code was reused thousands of times, the same large list is repeated in the response for each of those accounts. Across 14,000 accounts, these repeated lists can exhaust the process memory.
PDS Operator only needs four fields from these responses:
- DID
- handle
- creation date
This change keeps those fields and immediately drops the rest.
It reduces memory use without changing what gets stored or how syncing works. It also adds a test using an invite code with 1,000 uses.
Checked with:
- pnpm typecheck
- pnpm test — all 8 tests passed