Owner: @gaojunbin — this is DDL on the shared locuscompare2 DB, so route it through schema-change-coordination (ADR-0008), not a unilateral change.
What
The regional-plot backend (#25) colors variants by LD r² to a lead, via:
SELECT SNP_B, R2 FROM tkg_p3v5a_ld_chr{N}_{POP} WHERE SNP_A = 'rs...'
UNION ALL
SELECT SNP_A, R2 FROM tkg_p3v5a_ld_chr{N}_{POP} WHERE SNP_B = 'rs...'
Two covering indexes make each call two short range scans:
(SNP_A, SNP_B, R2)
(SNP_B, SNP_A, R2)
(115 tables: chr1–22,X × AFR/AMR/EAS/EUR/SAS.)
Priority: LOW / nice-to-have
Measured live: an LD lookup on tkg_p3v5a_ld_chr17_EUR already runs in ~0.2s without any added index — so this is a hardening/perf item, not a blocker. Worth doing before we serve heavy traffic; not urgent for the MVP.
Coordination checklist (per the process doc)
Owner: @gaojunbin — this is DDL on the shared locuscompare2 DB, so route it through schema-change-coordination (ADR-0008), not a unilateral change.
What
The regional-plot backend (#25) colors variants by LD r² to a lead, via:
Two covering indexes make each call two short range scans:
(SNP_A, SNP_B, R2)(SNP_B, SNP_A, R2)(115 tables: chr1–22,X × AFR/AMR/EAS/EUR/SAS.)
Priority: LOW / nice-to-have
Measured live: an LD lookup on
tkg_p3v5a_ld_chr17_EURalready runs in ~0.2s without any added index — so this is a hardening/perf item, not a blocker. Worth doing before we serve heavy traffic; not urgent for the MVP.Coordination checklist (per the process doc)
SHOW INDEX FROM tkg_p3v5a_ld_chr17_EUR).