Social data

Why raw record counts can exceed unique account counts

The checker builds username maps, so repeated records for the same exact username count as one account. Compare raw rows and unique identifiers separately when reconciling an export.

Worked example

Node.js example · save as example.mjs and run node example.mjs

const rows = [{username: "river"}, {username: "river"}, {username: "quinn"}];
const unique = new Map();
for (const row of rows) if (!unique.has(row.username)) unique.set(row.username, row);
console.log(rows.length, unique.size);

How it works

The first row for a username wins in this map-building pattern, which matches the checker’s deduplication behavior. This prevents overlapping export parts from automatically inflating unique-account counts, while retaining one row’s timestamp and profile URL.

Limits and mistakes

Duplicates with conflicting timestamps are not reconciled into a full history. A missing ID and a repeated ID are also different problems. Raw platform counts may use a different snapshot or definition, so exact agreement is not guaranteed merely by deduplicating.

Check the result

Expect 3 2. Add two records for the same username with different dates and confirm the first record is retained under this stated policy.

Sources

Reference documentation for the behavior used in this guide: