Skip to content

Avoid double-update to doc_auth_logs table#7550

Merged
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/avoid-double-doc-auth-write
Dec 29, 2022
Merged

Avoid double-update to doc_auth_logs table#7550
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/avoid-double-doc-auth-write

Conversation

@mitchellhenke
Copy link
Contributor

🛠 Summary of changes

Currently RegisterSubmitStep potentially updates a column or two and then updates a second set of columns. This behavior doesn't seem to be required and appears to be a small, but unnecessary increase in write load on the database.

I suspect there are steps in the doc auth flow where RegisterSubmitStep is called multiple times quickly, so there's potential to improve this further as well.

@mitchellhenke mitchellhenke requested review from a team December 29, 2022 16:19
changelog: Internal, Database Optimization, Avoid double-update to doc_auth_logs table
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/avoid-double-doc-auth-write branch from 8a7c636 to 33ebfb1 Compare December 29, 2022 17:19
@mitchellhenke mitchellhenke merged commit 352f2ec into main Dec 29, 2022
@mitchellhenke mitchellhenke deleted the mitchellhenke/avoid-double-doc-auth-write branch December 29, 2022 18:36
@solipet solipet mentioned this pull request Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants