mirror of
https://github.com/google/nomulus.git
synced 2025-07-09 04:33:28 +02:00
Safely lazy load claims and reserved lists (#1177)
* Safely lazy load claims and reserved lists This moves the entries of all of these lists into "insignificant" fields and manages them explicitly. * Additional fixes Fix a few problems that came up in the merge or weren't caught in earlier local test runs. * Changes for review - removed debug code - added comments - improved some methods that were loading the entire claims list unnecessarily. * Fixed javadoc links * Reformatted * Minor fix for review
This commit is contained in:
parent
36b5f1b757
commit
5e8726b92b
13 changed files with 276 additions and 76 deletions
|
@ -83,8 +83,8 @@
|
|||
|
||||
create table "ClaimsEntry" (
|
||||
revision_id int8 not null,
|
||||
claim_key text not null,
|
||||
domain_label text not null,
|
||||
claim_key text not null,
|
||||
primary key (revision_id, domain_label)
|
||||
);
|
||||
|
||||
|
@ -650,9 +650,9 @@
|
|||
|
||||
create table "ReservedEntry" (
|
||||
revision_id int8 not null,
|
||||
reservation_type int4 not null,
|
||||
comment text,
|
||||
domain_label text not null,
|
||||
comment text,
|
||||
reservation_type int4 not null,
|
||||
primary key (revision_id, domain_label)
|
||||
);
|
||||
|
||||
|
@ -822,11 +822,6 @@ create index spec11threatmatch_registrar_id_idx on "Spec11ThreatMatch" (registra
|
|||
create index spec11threatmatch_tld_idx on "Spec11ThreatMatch" (tld);
|
||||
create index spec11threatmatch_check_date_idx on "Spec11ThreatMatch" (check_date);
|
||||
|
||||
alter table if exists "ClaimsEntry"
|
||||
add constraint FK6sc6at5hedffc0nhdcab6ivuq
|
||||
foreign key (revision_id)
|
||||
references "ClaimsList";
|
||||
|
||||
alter table if exists "DelegationSignerData"
|
||||
add constraint FKtr24j9v14ph2mfuw2gsmt12kq
|
||||
foreign key (domain_repo_id)
|
||||
|
@ -867,11 +862,6 @@ create index spec11threatmatch_check_date_idx on "Spec11ThreatMatch" (check_date
|
|||
foreign key (relock_revision_id)
|
||||
references "RegistryLock";
|
||||
|
||||
alter table if exists "ReservedEntry"
|
||||
add constraint FKgq03rk0bt1hb915dnyvd3vnfc
|
||||
foreign key (revision_id)
|
||||
references "ReservedList";
|
||||
|
||||
alter table if exists "SignedMarkRevocationEntry"
|
||||
add constraint FK5ivlhvs3121yx2li5tqh54u4
|
||||
foreign key (revision_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue