[Samba] Re: tdb search optimization

simo idra at samba.org
Fri Nov 9 21:32:08 GMT 2007


On Fri, 2007-11-09 at 21:07 +0000, Bruno Gomes Pessanha wrote:
> > You might try to do a "tdbbackup -n 10000 ntprinters.tdb"
> 
> But, this makes tdb bigger, right?

Yes

> Sorry, but I didn't understand why increasing
> the hash would make search operations faster.

Should make a lot less collisions, therefore each search should have
more probability to be fullfilled with one lookup without needing to
down a list of matches that have the same hash.

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer <simo at samba.org>
Senior Software Engineer at Red Hat Inc. <ssorce at redhat.com>



More information about the samba mailing list