2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-10-13 14:06:26 +00:00

[3968] Added ASC sorting for indexes by expiration.

This commit is contained in:
Marcin Siodelski
2015-10-15 21:48:01 +02:00
parent e7fd02a54c
commit 640d3538c0
4 changed files with 8 additions and 8 deletions

View File

@@ -265,8 +265,8 @@ ALTER TABLE lease6
# by the expiration time. One of the applications is to retrieve all
# expired leases. However, these indexes can be also used to retrieve
# leases in a given state regardless of the expiration time.
CREATE INDEX lease4_by_state_expire ON lease4 (state, expire);
CREATE INDEX lease6_by_state_expire ON lease6 (state, expire);
CREATE INDEX lease4_by_state_expire ON lease4 (state ASC, expire ASC);
CREATE INDEX lease6_by_state_expire ON lease6 (state ASC, expire ASC);
# Create table holding mapping of the lease states to their names.
# This is not used in queries from the DHCP server but rather in