The code seems to perform n+1 SQL requests If something wrong occurs only a part of the users may have been reimported...