Lock rows when syncing a user
BruceMacD opened this issue · comments
Describe the bug
When a user has their information synchronized from an identity provider multiple API calls may be syncing this information at the same time.
This operation is also performed with an open transaction, so any locks held by that transaction may block other requests.
Today we update the ProviderUser
, then we make a call to the IDP. If that call is slow all subsequent requests from that user will block on the first one.
Expected behavior
The row is locked and only one request makes the external call, other requests do not block.
Related to the changes in #3886
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.