I'm curious as to what benefits SearchControls
(in javax.naming.directory
) gives me to my LDAP query.
As I understand Scope = ONELEVEL_SCOPE
will give me performance improvements if i know my elements are all on one level. SUBTREE_SCOPE
will iterate through all branches.
Are there any other things i can tweak on this object that might give me performance improvements? What are peoples experience with this object?