PERF: Avoid looking up the same group multiple times during bulk invite.

Also cache the guardian check because it does a query to check if the
user is an owner of the group.
This commit is contained in:
Guo Xiang Tan
2019-04-16 09:31:51 +08:00
committed by Guo Xiang Tan
parent 25514550f0
commit ce4c8e957b
3 changed files with 32 additions and 6 deletions

View File

@@ -1,2 +1,2 @@
test2@discourse.org
test@discourse.org,group1;group2,999
test@discourse.org,GROUP1;group2,999
1 test2 discourse.org
2 test discourse.org,group1;group2,999 discourse.org,GROUP1;group2,999