Skip to content
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

Added cache manager lookups in LDAP for performance boost #12006

Merged
merged 1 commit into from Oct 21, 2022

Conversation

uberbrady
Copy link
Collaborator

If you work under the assumption that generally a manager manages multiple people, then we should cache the manager lookups and that should speed up the operation of the sync script.

I noticed for one customer that their sync with the manager lookup made sync slow down from 2 minutes to around 10 or so - so this fix will hopefully add back a little bit of that lost performance.

I tested this by running it against our development LDAP server and it seemed to work ok? Definitely seemed at least a touch faster (though we don't have many managers set in there).

@uberbrady uberbrady requested a review from snipe as a code owner October 20, 2022 23:56
@snipe snipe changed the title Cache manager lookups in LDAP for performance boost Added cache manager lookups in LDAP for performance boost Oct 21, 2022
@snipe
Copy link
Owner

snipe commented Oct 21, 2022

This looks solid to me, thanks @uberbrady!

@snipe snipe merged commit 453f2c3 into snipe:develop Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants