Hello. Recently I noticed my eDirectory environment is slow creating user accounts. It receives data from an active directory remote loader but then hangs for 1-2 minutes during the account creation process. The driver code was created by an employee who left the company. I investigated and found that the code is using do-set-local-variable with a counter to identify an unused CN# to be assigned to the object within eDirectory. Is there any way to improve the performance of this operation? I believe the counter will start at 0 and count up to 174,000+ (querying each value (CN000###### as it increments) until it identifes an unused CN#. I reviewed the eDirectory performance and it seems normal. The cache hit percentage was 99%, the dib size =1.5gb.
Suspect Code below:
<do-set-local-variable name="var-newnumber" notrace="true" scope="policy">
<arg-string>
<token-unique-name counter-digits="10" counter-pattern="all" counter-use="always" name="CN" on-unavailable="error" test-all-objects="true">
<arg-string/>
</token-unique-name>
</arg-string>
</do-set-local-variable>
Thread performance:
Thread Pool Information
Summary : Spawned 47, Died 0
Pool Workers : Idle 21, Total 47, Peak 47
Ready Work : Current 1, Peak 6, maxWait 2740 us
Sched delay : Min 13 us, Max 1000058 us, Avg: 16878 us
Waiting Work : Current 18, Peak 22