mirror of
https://github.com/google/nomulus.git
synced 2025-08-16 06:24:07 +02:00
Add indexes to DomainHistory sub tables (#1319)
* Add indexes to DomainHistory sub tables Add indexes to DomainTransactionRecord and DomainDsDataHistory to speed up query for DomainHistory. Without these indexes, DomainHistory loading is extremely slow: 2 QPS with current production data.
This commit is contained in:
parent
88be34808d
commit
a8ddb5c053
5 changed files with 74 additions and 22 deletions
|
@ -1489,6 +1489,20 @@ CREATE UNIQUE INDEX database_migration_state_schedule_singleton ON public."Datab
|
|||
CREATE INDEX domain_dns_refresh_request_time_idx ON public."Domain" USING btree (dns_refresh_request_time);
|
||||
|
||||
|
||||
--
|
||||
-- Name: domain_history_to_ds_data_history_idx; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX domain_history_to_ds_data_history_idx ON public."DomainDsDataHistory" USING btree (domain_repo_id, domain_history_revision_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: domain_history_to_transaction_record_idx; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX domain_history_to_transaction_record_idx ON public."DomainTransactionRecord" USING btree (domain_repo_id, history_revision_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: idx1iy7njgb7wjmj9piml4l2g0qi; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue