From b3c4b13b04428a690417646fba88fcc55b551116 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Fri, 29 Jul 2011 11:04:55 +0000
Subject: [PATCH] Fix OPEND-250: Add an option to the JE backend for disabling the subordinate indexes id2children and id2subtree

---
 opends/src/admin/defn/org/opends/server/admin/std/LocalDBBackendConfiguration.xml |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/opends/src/admin/defn/org/opends/server/admin/std/LocalDBBackendConfiguration.xml b/opends/src/admin/defn/org/opends/server/admin/std/LocalDBBackendConfiguration.xml
index d2bd3a1..ff6683f 100644
--- a/opends/src/admin/defn/org/opends/server/admin/std/LocalDBBackendConfiguration.xml
+++ b/opends/src/admin/defn/org/opends/server/admin/std/LocalDBBackendConfiguration.xml
@@ -1010,4 +1010,33 @@
       </ldap:attribute>
     </adm:profile>
   </adm:property>
+  <adm:property name="subordinate-indexes-enabled" advanced="true">
+    <adm:synopsis>
+      Indicates whether id2children and id2subtree indexes should be used for
+      this backend. These indexes are used for constraining filtered searches
+      to the search request's scope as well as for generating values for the
+      hasSubordinates and numSubordinates virtual attributes.
+    </adm:synopsis>
+    <adm:description>
+      Subordinate indexing is enabled by default and should only be disabled
+      for specialized use cases. A typical use case is where the backend is
+      to be subjected to heavy add/delete load beneath the same parent entry
+      such as when used as a session database. Disabling the subordinate
+      indexes means that the numSubordinates and hasSubordinates virtual
+      attributes will not be supported.
+    </adm:description>
+    <adm:default-behavior>
+      <adm:defined>
+        <adm:value>true</adm:value>
+      </adm:defined>
+    </adm:default-behavior>
+    <adm:syntax>
+      <adm:boolean />
+    </adm:syntax>
+    <adm:profile name="ldap">
+      <ldap:attribute>
+        <ldap:name>ds-cfg-subordinate-indexes-enabled</ldap:name>
+      </ldap:attribute>
+    </adm:profile>
+  </adm:property>
 </adm:managed-object>

--
Gitblit v1.10.0