middlebury/dynamic-add-users

Reduce memory utilization when syncing/removing members from large groups

adamfranco opened this issue · 0 comments

Currently full user-data is loaded for each member even if only the display name or ID is needed. This can inflate the memory utilization when syncing extremely large groups.

There are two possible tracks:

  1. Load only the user id and display_name as needed, not the full user object.
  2. Unload the user object in a way that frees its memory each cycle of the loop.