Skip to content

Commit ec1e40d

Browse files
committed
Check the new groups are different before update
Claimed groups can contain groups they are not relevant for our app so the first quick check is to ensure the list are different then to use a SQL query to fetch the groups of the user. Only set the groups if they are different, it avoids a SELECT of the Django ORM (called by the set()).
1 parent cc70073 commit ec1e40d

File tree

1 file changed

+141
-69
lines changed

1 file changed

+141
-69
lines changed

0 commit comments

Comments
 (0)