samba-technical@lists.samba.org
[Top] [All Lists]

[SAMBA4] Faster schema loading

Subject: [SAMBA4] Faster schema loading
From: Andrew Bartlett
Date: Tue, 19 Jun 2007 10:14:53 +1000
Metze posted me a patch (schema-loading-13.diff), to load the schema at
LDB startup, which I hope to use for MMC write support.

The problem, as metze pointed out, is that it is slow.

In the attached patch, for which I would like suggestions as to cleaner
methods, I now keep a global variable, with the loaded schema. 

How should we better control this?  In particular, we only really want
to do this for smbd - but what is the best way to tell that we are 'in
smbd'?  Likewise, we will at some point need invalidation.

make quickest times:

33sec without
174sec with
39sec with global variable hack

Andrew Bartlett
-- 
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.

Attachment: schema-loading-13-global.diff
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>