Optimize organization_user creation on member creation
What does this MR do and why?
Optimize organization_user creation on member creation
- switch to use a find first and create if not found paradigm so that we don't waste id allocation
-
follows https://docs.gitlab.com/ee/development/sql.html#find_or_create_by-is-not-atomic- not, see !142600 (comment 1743065026) - see #439062 (closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #439062 (closed)
Edited by Doug Stull