URL: https://github.com/freeipa/freeipa/pull/5955
Author: fcami
 Title: #5955: Add index for dnahostname
Action: opened

PR body:
"""
There are 60+ searches for:
Filter:   (dnahostname=FQDN)
at startup.

Fixes: https://pagure.io/freeipa/issue/8945
Signed-off-by: François Cami <fc...@redhat.com>
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/5955/head:pr5955
git checkout pr5955
From 0de8f05d3c395b0afff1084b3506f7d9806ef08f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Cami?= <fc...@redhat.com>
Date: Thu, 5 Aug 2021 15:46:53 +0200
Subject: [PATCH] Add index for dnahostname
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

There are 60+ searches for:
Filter:   (dnahostname=FQDN)
at startup.

Fixes: https://pagure.io/freeipa/issue/8945
Signed-off-by: François Cami <fc...@redhat.com>
---
 install/updates/20-indices.update | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/install/updates/20-indices.update b/install/updates/20-indices.update
index 42c16bc3a0d..4cd387e31f9 100644
--- a/install/updates/20-indices.update
+++ b/install/updates/20-indices.update
@@ -107,6 +107,13 @@ default:nsSystemIndex: false
 add:nsIndexType: eq
 add:nsIndexType: sub
 
+dn: cn=dnahostname,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
+only:cn: dnahostname
+default:objectClass: nsIndex
+default:objectClass: top
+default:nsSystemIndex: false
+add:nsIndexType: eq
+
 dn: cn=fqdn,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
 only:cn: fqdn
 default:objectClass: nsIndex
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/freeipa-devel@lists.fedorahosted.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to