diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-01-28 07:40:58 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-02-03 12:16:13 -0500 |
commit | c210c160f6b82b6e2369f2a2fba6ea559ee54dbe (patch) | |
tree | f954c205d566f5ca4d0f37461058c3cdd2e219c3 /src/db/sysdb_private.h | |
parent | f716f4d39d5165da873ac923c9832a16c9a97f55 (diff) | |
download | sssd-c210c160f6b82b6e2369f2a2fba6ea559ee54dbe.tar.gz sssd-c210c160f6b82b6e2369f2a2fba6ea559ee54dbe.tar.bz2 sssd-c210c160f6b82b6e2369f2a2fba6ea559ee54dbe.zip |
Add additional indexing for sysdb
Adds an index for dataExpireTimestamp
This is used for determining which users need to be removed during
the cleanup task. If enumeration is enabled (or huge numbers of
users have been cached), the cleanup task runs very slowly due to
the non-indexed search.
Also adds an index for ONELEVEL lookups, to speed up situations
where we would need to request all entries under a particular node
in the LDB.
Diffstat (limited to 'src/db/sysdb_private.h')
-rw-r--r-- | src/db/sysdb_private.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/db/sysdb_private.h b/src/db/sysdb_private.h index 676dbddf..3e921560 100644 --- a/src/db/sysdb_private.h +++ b/src/db/sysdb_private.h @@ -23,13 +23,14 @@ #ifndef __INT_SYS_DB_H__ #define __INT_SYS_DB_H__ +#define SYSDB_VERSION_0_6 "0.6" #define SYSDB_VERSION_0_5 "0.5" #define SYSDB_VERSION_0_4 "0.4" #define SYSDB_VERSION_0_3 "0.3" #define SYSDB_VERSION_0_2 "0.2" #define SYSDB_VERSION_0_1 "0.1" -#define SYSDB_VERSION SYSDB_VERSION_0_5 +#define SYSDB_VERSION SYSDB_VERSION_0_6 #define SYSDB_BASE_LDIF \ "dn: @ATTRIBUTES\n" \ @@ -48,7 +49,9 @@ "@IDXATTR: uidNumber\n" \ "@IDXATTR: gidNumber\n" \ "@IDXATTR: lastUpdate\n" \ + "@IDXATTR: dataExpireTimestamp\n" \ "@IDXATTR: originalDN\n" \ + "@IDXONE: 1\n" \ "\n" \ "dn: @MODULES\n" \ "@LIST: asq,memberof\n" \ |