diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-08-27 13:52:54 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-08-28 10:30:45 -0400 |
commit | ce56cd92feffdc7c516d6093360b8e4031a6dcc6 (patch) | |
tree | c861945182f797f1eac4853a39d279aae8a1fac6 /server/db/sysdb.h | |
parent | dd6bf2b53c0f01cf5d0e748ae090cefa0557990c (diff) | |
download | sssd-ce56cd92feffdc7c516d6093360b8e4031a6dcc6.tar.gz sssd-ce56cd92feffdc7c516d6093360b8e4031a6dcc6.tar.bz2 sssd-ce56cd92feffdc7c516d6093360b8e4031a6dcc6.zip |
Speed-up enumerations.
This patch reduces the time needed to enumerate groups of a midsized
domain from 12 seconds to 4.4
Optimizes enumerations by doing only 2 ldb searches and some ordering
instead of a number of searches proportional to the number of groups
Diffstat (limited to 'server/db/sysdb.h')
-rw-r--r-- | server/db/sysdb.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/db/sysdb.h b/server/db/sysdb.h index 2f01ea68..3d75f507 100644 --- a/server/db/sysdb.h +++ b/server/db/sysdb.h @@ -119,8 +119,12 @@ SYSDB_LAST_UPDATE, \ "objectClass", \ NULL} +#define SYSDB_GRENT_ATTRS {SYSDB_NAME, SYSDB_UIDNUM, SYSDB_MEMBEROF, \ + SYSDB_LAST_UPDATE, \ + "objectClass", \ + NULL} -#define SYSDB_INITGR_ATTR "memberof" +#define SYSDB_INITGR_ATTR SYSDB_MEMBEROF #define SYSDB_INITGR_ATTRS {SYSDB_GIDNUM, SYSDB_LAST_UPDATE, \ "objectClass", \ NULL} |