From c99b37737a43a5b101158cff82136a56f9f47af3 Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka Date: Fri, 3 Nov 2017 09:23:10 +0100 Subject: [PATCH] Add the sub operation for fqdn index config This should improve performance of the host-find command. https://pagure.io/freeipa/issue/6371 Reviewed-By: Rob Crittenden --- install/share/indices.ldif | 1 + install/updates/20-indices.update | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/install/share/indices.ldif b/install/share/indices.ldif index bc5f485db..65477e3c7 100644 --- a/install/share/indices.ldif +++ b/install/share/indices.ldif @@ -108,6 +108,7 @@ cn: fqdn nsSystemIndex: false nsIndexType: eq nsIndexType: pres +nsIndexType: sub dn: cn=macAddress,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config changetype: add diff --git a/install/updates/20-indices.update b/install/updates/20-indices.update index cb1fc6506..c155c741a 100644 --- a/install/updates/20-indices.update +++ b/install/updates/20-indices.update @@ -70,8 +70,9 @@ default:cn: fqdn default:ObjectClass: top default:ObjectClass: nsIndex default:nsSystemIndex: false -default:nsIndexType: eq -default:nsIndexType: pres +only:nsIndexType: eq +only:nsIndexType: pres +only:nsIndexType: sub dn: cn=macAddress,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config default:cn: macAddress