Re: [Samba] Re: tdb search optimization

2007-11-09 Thread Volker Lendecke
On Fri, Nov 09, 2007 at 03:56:48PM +, Bruno Gomes Pessanha wrote:
 Is it possible to split the ntprinters.tdb in many 
 parts as print queues quantity?
 
 Sorry if I asked something too far from reality
  but I was wondering if could make things work faster.

You might try to do a tdbbackup -n 1 ntprinters.tdb
and replace the ntprinters.tdb by its backup file. The -n
1 sets the new hash table size to 1, much more than
the default 131.

Volker


pgp6fecSit1SH.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] Re: tdb search optimization

2007-11-09 Thread Volker Lendecke
On Fri, Nov 09, 2007 at 09:07:26PM +, Bruno Gomes Pessanha wrote:
  You might try to do a tdbbackup -n 1 ntprinters.tdb
 
 But, this makes tdb bigger, right? Sorry, but I didn't
 understand why increasing the hash would make search
 operations faster.

Well, then you have to find other solutions.

Sorry for the noise then.

Volker


pgpTSEI5343b0.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] Re: tdb search optimization

2007-11-09 Thread simo

On Fri, 2007-11-09 at 21:07 +, Bruno Gomes Pessanha wrote:
  You might try to do a tdbbackup -n 1 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 [EMAIL PROTECTED]
Senior Software Engineer at Red Hat Inc. [EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba