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