[PATCH] WIP: indexing for <= and >=

Aaron Haslett aaronhaslett at catalyst.net.nz
Tue Mar 19 01:12:12 UTC 2019


Sorry, I forgot to say why we're doing this.  We want to be able to
greatly speed up "uSNChanged >= x" queries which are used during
replication.  Testing on a DC with 300,000 records showed a speed up
from ~4s to ~0.2s.  The patch only supports integers on LMDB for now.

On 19/03/19 12:42 PM, Aaron Haslett via samba-technical wrote:
> Work in progress implementation of <= and >= indexing.  Adds
> iterate_range to LDB API and uses it for indexing. Modifications to come
> because right now this patch modifies a core LDB type which will
> probably break things.  I'll change it soon to add a new ordered integer
> type with a new OID.
>
>
> CI: https://gitlab.com/catalyst-samba/samba/pipelines/52460313
>




More information about the samba-technical mailing list