- First commit to issue fork.
- Merge request !19Add provider_user_id index to the social_auth table. β (Open) created by jmurphy23
- πΊπΈUnited States matt_paz
We have a growing number of users flowing in through social_auth (hundreds of thousands) and the issue of duplicate users has grown since originally reporting the issue.
We observed that the absence of the index cited in #5 π Users with duplicate emails being allowed Active was slowing down the experience overall. Adding the index seems to speed things up substantially.
I suspect that there is still more to do to eliminate the root cause of the originally reported issue, but theoretically, speeding up queries for
provider_user_id
might help reduce the occurrence of the duplicates. I found that I could still reproduce the issue with the index in play, but it was much harder to replicate.Any thoughts on this @wells?
- πΊπΈUnited States bob.hinrichs
bob.hinrichs β made their first commit to this issueβs fork.
- Merge request !20See https://www.drupal.org/project/social_auth/issues/3312958 β (Open) created by bob.hinrichs
- πΊπΈUnited States bob.hinrichs
There is a new merge request here that introduces using Drupal::lock() to prevent running authenticateUser() in parallel for the same user. We have not yet made this change live, will do so 1/5/24.
- π²πΎMalaysia muaz91 MY
I've also sometimes getting duplicate users when user registering with google. Using patch from #8 and will get back tommorrow to see the result
- Status changed to RTBC
9 months ago 2:24am 28 March 2024 - πΊπΈUnited States wells Seattle, WA
@bob.hinrichs @muaz91 do either of you have follow up from results of monitoring these changes? Does #8 impact the duplication issues? I think that changes in #8 may BC break for implementers, did you also have to make changes to e.g. social_auth_google to use this?
- π¨π¦Canada shaundychko
shaundychko β changed the visibility of the branch 3312958-users-with-duplicate to hidden.
- π¨π¦Canada shaundychko
MR 19 should be a different issue since it seeks to address a performance issue rather than this issue of duplicate users.
- Status changed to Needs review
3 months ago 8:30pm 9 September 2024 - π¨π¦Canada shaundychko
shaundychko β changed the visibility of the branch 3312958-authentication-locking-prevent-multiple to hidden.
- Merge request !30prevent duplicate users. rebase onto 4.1.x to make review easier. β (Open) created by shaundychko
- Status changed to Needs work
3 months ago 3:43am 17 September 2024 - πΊπΈUnited States wells Seattle, WA
Agreed -- the performance issue should be separated out.
Thanks for getting the MR started. I have added some CRs there.
- πΊπΈUnited States bob.hinrichs
Sorry I missed the question above (#15). I can report that the locking mechanism in the MR did resolve our duplicate user issue. Thanks much for your attention to this!