First writings on DsGetNCChanges call

tridge at tridge at
Tue Aug 25 20:07:29 MDT 2009

Hi Anatoliy,

 > I uploaded the work-in-progress branch here:;h=refs/heads/samba_drsuapi

thanks for posting this! 

It looks like in your dcesrv_drsuapi_DsGetNCChanges() call you do a
full search of the directory every time, pulling all records?

Just using a search of (uSNChanged>=N) would be a big improvement in
terms of memory consumption. It will still be slow in the backend, as
the tdb backend doesn't actually use the indexes for a >= search, but
at least the DRS server wouldn't have to parse all the records. 

Cheers, Tridge

More information about the samba-technical mailing list