>> > 2. add the new index in the slapd.conf and make a restore using the "slapadd" commandI use the slapadd command to restore my database using a ldif file resulting from the last valid "hot" backup (so it's like a big initial population)
>> > without running slapd
>> > => "cold" command
>> > => doesn't calculate all indexes for all entries ??? but creates the newindex.bdb file in
>> > the backend directory ?
>> > => it takes 2 hours if database with 30000 entries
>>
>> No, it took only a few minutes (say 5 min) to add the 25,000 entries
>
> ok but is it correct to use slapadd comand to add a new index to an
> already existing database ?No, slapadd adds entries to an existing database, while slapindex
reindexes the database content.
But if you use slapadd for initital population of your database, the
appropriate indexfiles, as defined in slapd.conf, are created.
To summarize, slapadd command enables to add entries and to index
the added entries using the definition of the index listed in the
slapd.conf
True or false ?