Very Slow LDAP Query - search contact is very slow with Active Directory

Dear All,

Hope you all are doing great.

i am having issue since day one with Ldap Query, when search contact in Nextcloud or during share when search use, it takes too much time.

my setup:
Nextcloud: 17.0.3
DB: Mysql
Ldap: Active Directory
Web Server : Apache
OS : Ubuntu 18

Any setting i have to fine tune

Can anyone please help me on this

Could you check the load with (h)top while you do the search query?
Also keep an eye on the database daemon too!

maybe you have the same issue like me

NC16 / NC17 & NC18: Extrem high load of mysqld when searching in ldap