Univention Bugzilla – Bug 47198
index: Add option to purge unused LDAP index data
Last modified: 2023-05-24 08:32:09 CEST
When changing an LDAP index configuration (e.g. type sub to eq, or drop an attribute from the index) slapindex leaves the old index data in the mdb database. Cleaning this up would free the database space to be used for actual data. There is a slapindex option "-t": Truncates (empties) an index database before indexing any entries. The manpage also says "May only be used with Quick mode.", but Ingo found out that the combination of -q and -t actually seems to produce less data than using "-t" alone (just by looking at mdb_stat -f). We should check how to effectively use the this option and add it to our ldap_setup_index script. In the first step I would simply offer it for manual operation and not as default.