pdbedit - Export to LDIF
jelmer at vernstok.nl
Mon Jun 7 18:34:39 GMT 2004
On Mon, Jun 07, 2004 at 01:27:07PM -0500, Anthony Liguori wrote about 'Re: pdbedit - Export to LDIF':
> > > 3) Modification of pdb interface to allow bulk updates, either by a new
> > > call that adds multiple users at once or by some sort of bulk update
> > > flag that lets a backend cache adds until the bulk update is done.
> > > Pros: least-ugly solution, most flexible in the long run
> > > Cons: could be a bit of work, adds yet another call to the pdb
> > > interface.
> > I'd certainly go for this option (using a new call)... not all backends
> > would have to implement such a backend, but it could help performance
> > where necessary.
> If we're adding an optional call, do you think it's better to have a
> bulk update call or a call to begin bulk updates? For instance:
> The advantages to the second one is that it's simplier to take advantage
> of in existing code. It might also allow encapsulation of none-adding
> actions (like doing multiple deletes, etc.).
> This might be over kill though...
I have a slight preference for a begin_bulk_add() and a
end_bulk_add(), however, I'd be happy to leave that decision up to whoever
implements it :-)
Jelmer Vernooij <jelmer at samba.org> - http://jelmer.vernstok.nl/
OSS Contributions in the last day:
ptabtools: 100 %
More information about the samba-technical