[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldapadd still slow, even with tweaks?



On Tue, Aug 07, 2001 at 03:55:00PM -0400, John Morrissey wrote:
> On Mon, Aug 06, 2001 at 12:33:23PM -0400, oberwetter, josh wrote:
> % (1) Turn off ALL indexing
> % (2) Do the import
> % (3) Stop the server.
> % (4) Turn indexing on by updating your config file 
> % (5) Reindex using the slapindex tool
> % (6) Restart the server
> 
> This works wonders on the add; it only takes about forty minutes now.
> However, slapindex took at least five or six hours to index everything. Can
> I leave slapd running as long as no writes are made to the directory? Will
> the indexes changing from under slapd cause problems? I don't mind the extra
> hit to unindexed data on a short-term basis, but I'd really like to not have
> to down the directory for several hours while the indexes build.

What about
 - edit the ACLs & restart slapd to make the directory effectively read-only
 - use the hints in the admin guide to make an alternate slapd instance, 
   using a different datafile location
 - build the indices on the alternate slapd
 - stop both slapds
 - rename the datafile directories
 - put the normal slapd configs back in place
 - restart slapd

If having the main slapd read-only is a problem, I wonder if the alternate 
could be set up as a slave with slurpd pushing changes to it from the main 
directory? 

-Peter