so we improved our synchronization just a bit... first run took 11 minutes, we managed to optimize it a bit and cut it down to 8 minutes.
new solution:
time taken: 10 seconds.
new solution:
- grab all users and groups from A
- add missing users to B
- compare existing groups in A and B
- delete from B those that don't exist in A
- add the new groups to B (this was previously done in step 4)
- delete from B those that don't exist in A
- build a local list of all groups and members in B (this is already done for A in step 1)
- compare users for each group in A and B
- if they are in A and not B, add to B
- if they are in B but not A, remove from B
- if they are in A and not B, add to B
time taken: 10 seconds.
No comments:
Post a Comment