mirror of
https://github.com/google/nomulus
synced 2026-01-11 00:10:36 +00:00
Drop FKs referencing DomainHistory (#2621)
- We never delete rows from DomainHistory (and even if we do in the future, they'll be old / the references won't matter) - This is likely creating lock contention when lots of requests come through at once for domains with many DomainHistory entries
This commit is contained in:
@@ -941,12 +941,15 @@
|
||||
create index IDXqa3g92jc17e8dtiaviy4fet4x
|
||||
on "BillingCancellation" (billing_time);
|
||||
|
||||
create index IDX4ytbe5f3b39trsd4okx5ijhs4
|
||||
create index IDX4muirjyj3kt8nx63nrjxigktk
|
||||
on "BillingCancellation" (billing_event_id);
|
||||
|
||||
create index IDXku0fopwyvd57ebo8bf0jg9xo2
|
||||
create index IDXmfu2k59a54e0ttoxchwaci7qy
|
||||
on "BillingCancellation" (billing_recurrence_id);
|
||||
|
||||
create index IDX7v75e535c47mxfb2rk9o843bn
|
||||
on "BillingCancellation" (domain_repo_id, domain_history_revision_id);
|
||||
|
||||
create index IDXqspv57gj2led8ly42fq01t7m7
|
||||
on "BillingEvent" (registrar_id);
|
||||
|
||||
@@ -965,9 +968,15 @@
|
||||
create index IDXcesda59ssop44kklytpb292hn
|
||||
on "BillingEvent" (allocation_token);
|
||||
|
||||
create index IDX6ebt3nwk5ocvnremnhnlkl6ff
|
||||
create index IDX80375qd9haxrvwk8ovqmp3695
|
||||
on "BillingEvent" (cancellation_matching_billing_recurrence_id);
|
||||
|
||||
create index IDX77ceolnf7rok8ui957msmo6en
|
||||
on "BillingEvent" (domain_repo_id, domain_history_revision_id);
|
||||
|
||||
create index IDXehp8ejwpbsooar0e8k32847m3
|
||||
on "BillingEvent" (domain_repo_id, recurrence_history_revision_id);
|
||||
|
||||
create index IDXd3gxhkh0jk694pjvh9pyn7wjc
|
||||
on "BillingRecurrence" (registrar_id);
|
||||
|
||||
@@ -983,9 +992,12 @@
|
||||
create index IDXp0pxi708hlu4n40qhbtihge8x
|
||||
on "BillingRecurrence" (recurrence_last_expansion);
|
||||
|
||||
create index IDXjny8wuot75b5e6p38r47wdawu
|
||||
create index IDXbix949l2kfn9r03l6omyhi36f
|
||||
on "BillingRecurrence" (recurrence_time_of_year);
|
||||
|
||||
create index IDXlh9lvmxb2dj3ti83buauwvbil
|
||||
on "BillingRecurrence" (domain_repo_id, domain_history_revision_id);
|
||||
|
||||
create index IDXj874kw19bgdnkxo1rue45jwlw
|
||||
on "BsaDownload" (creation_time);
|
||||
|
||||
@@ -1079,6 +1091,9 @@
|
||||
create index IDXhteajcrxmq4o8rsys8kevyiqr
|
||||
on "Domain" (transfer_billing_cancellation_id);
|
||||
|
||||
create index IDXmk1d2ngdtfkg6odmw7l5ejisw
|
||||
on "DomainDsDataHistory" (domain_repo_id, domain_history_revision_id);
|
||||
|
||||
create index IDXrh4xmrot9bd63o382ow9ltfig
|
||||
on "DomainHistory" (creation_time);
|
||||
|
||||
@@ -1097,6 +1112,9 @@
|
||||
create index IDXjw3rwtfrexyq53x9vu7qghrdt
|
||||
on "DomainHost" (host_repo_id);
|
||||
|
||||
create index IDX1dyqmqb61xbnj7mt7bk27ds25
|
||||
on "DomainTransactionRecord" (domain_repo_id, history_revision_id);
|
||||
|
||||
create index IDXj1mtx98ndgbtb1bkekahms18w
|
||||
on "GracePeriod" (domain_repo_id);
|
||||
|
||||
@@ -1109,6 +1127,9 @@
|
||||
create index IDXd01j17vrpjxaerxdmn8bwxs7s
|
||||
on "GracePeriodHistory" (domain_repo_id);
|
||||
|
||||
create index IDXl67y6wclc2uaupepnvkoo81fl
|
||||
on "GracePeriodHistory" (domain_repo_id, domain_history_revision_id);
|
||||
|
||||
create index IDXkpkh68n6dy5v51047yr6b0e9l
|
||||
on "Host" (host_name);
|
||||
|
||||
@@ -1145,12 +1166,15 @@
|
||||
create index IDXf2q9dqj899h1q8lah5y719nxd
|
||||
on "PollMessage" (domain_repo_id);
|
||||
|
||||
create index IDXe7wu46c7wpvfmfnj4565abibp
|
||||
create index IDXb75725p8js6987ubi8a7nhdqs
|
||||
on "PollMessage" (registrar_id);
|
||||
|
||||
create index IDXaydgox62uno9qx8cjlj5lauye
|
||||
on "PollMessage" (event_time);
|
||||
|
||||
create index IDXnuyqo6hrtuvbcmuecf7vkfmle
|
||||
on "PollMessage" (domain_repo_id, domain_history_revision_id);
|
||||
|
||||
create index premiumlist_name_idx
|
||||
on "PremiumList" (name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user