Once when choosing users to update, then a second time in storeUser.
StoreUser should have a second argument, for use within update-users, that provides the user object if it was recently fetched from the DB. This should reduce the number of DB queries and the CPU usage of update-users.js.
Once when choosing users to update, then a second time in storeUser.
StoreUser should have a second argument, for use within update-users, that provides the user object if it was recently fetched from the DB. This should reduce the number of DB queries and the CPU usage of update-users.js.