-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow query to AD #1105
Comments
|
I think this is a problem with the ldap3 library code, which seems to be N pulls N times for the AD service, not batch pulls. # /ldap3/extend/standard/PagedSearch.py
while cookie:
result = connection.search(search_base,
search_filter,
search_scope,
dereference_aliases,
attributes,
size_limit,
time_limit,
types_only,
get_operational_attributes,
controls,
paged_size,
paged_criticality,
None if cookie is True else cookie)
if not connection.strategy.sync:
response, result = connection.get_response(result)
else:
if connection.strategy.thread_safe:
_, result, response, _ = result
else:
response = connection.response
result = connection.result It seems to be better suited for paging iterators than pulling all at once, but at the same time I had another problem, details #1141 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use java javax.naming.ldap search 5829 object , 900ms
use python ldap3 search 5829 object , 3.4s
Is there a problem with my query?
The text was updated successfully, but these errors were encountered: