mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 14:35:29 +00:00
[#2452] Addressed review comments
share/database/scripts/pgsql/dhcpdb_create.pgsql share/database/scripts/pgsql/upgrade_012_to_013.sh.in Removed extraneous index
This commit is contained in:
@@ -5605,10 +5605,8 @@ END;
|
|||||||
$$ LANGUAGE plpgsql;
|
$$ LANGUAGE plpgsql;
|
||||||
|
|
||||||
-- Improve hosts indexes for better performance of global reservations
|
-- Improve hosts indexes for better performance of global reservations
|
||||||
-- Create new index that uses only dhcp4_identifier.
|
-- Create new index that uses only dhcp_identifier.
|
||||||
CREATE INDEX key_dhcp4_identifier on hosts (dhcp_identifier, dhcp_identifier_type);
|
CREATE INDEX key_dhcp_identifier on hosts (dhcp_identifier, dhcp_identifier_type);
|
||||||
-- Create new index that uses only dhcp4_identifier.
|
|
||||||
CREATE INDEX key_dhcp6_identifier on hosts (dhcp_identifier, dhcp_identifier_type);
|
|
||||||
|
|
||||||
-- Modify existing indexes to include subnet_id values of 0, so index is also used
|
-- Modify existing indexes to include subnet_id values of 0, so index is also used
|
||||||
-- for global reservations.
|
-- for global reservations.
|
||||||
|
@@ -654,10 +654,8 @@ END;
|
|||||||
\$\$ LANGUAGE plpgsql;
|
\$\$ LANGUAGE plpgsql;
|
||||||
|
|
||||||
-- Improve hosts indexes for better performance of global reservations
|
-- Improve hosts indexes for better performance of global reservations
|
||||||
-- Create new index that uses only dhcp4_identifier.
|
-- Create new index that uses only dhcp_identifier.
|
||||||
CREATE INDEX key_dhcp4_identifier on hosts (dhcp_identifier, dhcp_identifier_type);
|
CREATE INDEX key_dhcp_identifier on hosts (dhcp_identifier, dhcp_identifier_type);
|
||||||
-- Create new index that uses only dhcp4_identifier.
|
|
||||||
CREATE INDEX key_dhcp6_identifier on hosts (dhcp_identifier, dhcp_identifier_type);
|
|
||||||
|
|
||||||
-- Modify existing indexes to include subnet_id values of 0, so index is also used
|
-- Modify existing indexes to include subnet_id values of 0, so index is also used
|
||||||
-- for global reservations.
|
-- for global reservations.
|
||||||
|
Reference in New Issue
Block a user