<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 31.05.2016 19:43, Tomek Mrugalski
wrote:<br>
</div>
<blockquote cite="mid:574DCD2E.6020906@isc.org" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<span style="font-size:11.0pt"><o:p> <br>
</o:p></span>
<blockquote cite="mid:F1F8DF71-D720-46FF-9DEB-2591A22CB7B8@itu.dk"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Could it
be useful to make a primary key consisting of
dhcp_identifier, dhcp4_subnet_id and dhcp6_subnet_id?</span></p>
</div>
</blockquote>
Almost. The tuple of (identifier-type, identifier,
dhcp4_subnet_id) must be unique. The same is true for v6. Now that
you mentioned it, we should probably have indexes there.<br>
<br>
Actually, having such indexes on host reservations should speed
things up significantly. I know that Marcin is tweaking the MySQL
host reservations code. I'll put an note in ticket #4281.<br>
</blockquote>
Ignore that. Those indexes are already there. They're created with
the hosts table, not with a separate statement. I have missed that,
because I was searching for CREATE INDEX... <br>
<br>
Tomek<br>
</body>
</html>