Skip to content

Draft: Fully shard the identities table

What does this MR do and why?

Follow up to !202814 (merged)

Addresses #578135

The table is sharded by identities#user_id.

SQL

DELETE FROM "identities" WHERE "identities"."id" >= 2 AND (NOT EXISTS (SELECT "users".* FROM "users" WHERE (users.id = identities.user_id)))

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Tomasz Skorupa

Merge request reports

Loading