Add deletionTime/inetAddresses indexes to Host table to support WHOIS (#1548)

* Add deletionTime/inetAddresses indexes to Host table to support WHOIS

Weimin identified these as missing, and being the cause of slowdowns in
NameserverLookupByIpCommand that we're seeing in sandbox.

This is the first of two PRs, adding just the Flyway/schema changes. The
second PR adding the Java object model changes is #1547.
This commit is contained in:
Ben McIlwain
2022-03-07 16:07:11 -05:00
committed by GitHub
parent 71d13bab71
commit 9b7bb12cd1
5 changed files with 695 additions and 613 deletions
@@ -0,0 +1,17 @@
-- Copyright 2022 The Nomulus Authors. All Rights Reserved.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
CREATE INDEX IDXovmntef6l45tw2bsfl56tcugx ON "Host" (deletion_time);
CREATE INDEX IDXrc77s1ndiemi2vwwudchye214 ON "Host" (inet_addresses);