I do not believe there is any noticeable performance difference one way or the other.  

(&(a=1)(b=2)) is the same as (&(b=2)(a=1))

On Wed, Mar 14, 2012 at 2:33 AM, Juan Asensio Sánchez <okelet@gmail.com> wrote:
Hi

Is it important the order of the filter in a search? So, what's the
most optomized filter?

(&(uid=*)(objectClass=sambaSamAccount))

Or

(&(objectClass=sambaSamAccount)(uid=*))

Or which is the best of these two:

(&(uid=user)(ou:dn:=People))

Or

(&(ou:dn:=People)(uid=user))

Regards and thanks in advance.
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users