Skip to content

Stop writing, reading sp_monthly_auths_count (LG-8029)#7312

Merged
zachmargolis merged 4 commits intomainfrom
margolis-drop-monthly-sp-auth-counts
Nov 8, 2022
Merged

Stop writing, reading sp_monthly_auths_count (LG-8029)#7312
zachmargolis merged 4 commits intomainfrom
margolis-drop-monthly-sp-auth-counts

Conversation

@zachmargolis
Copy link
Contributor

@zachmargolis zachmargolis commented Nov 7, 2022

Problem

Writing to sp_monthly_auth_counts takes up a lot of time during auth. However, the table is referenced by some reports

Based on access logs for S3, the last time any of those reports was accessed was January 2021

In #6952, we moved the reports we use to the "raw" sp_return_logs table, so we can still get the resulting data

Before Merging

  • Triple confirm with our business partners these reports are OK to stop writing

Next steps

  • Drop the table!

* Also UniqueMonthlyAuthCounts
* Also UniqueYearlyAuthCounts
* also Db::MonthlySpAuthCount::SpMonthTotalAuthCounts

(cherry picked from commit 7f02da6eda6f41e47864ed83e4d81003b24b80a8)
@zachmargolis
Copy link
Contributor Author

Got confirmation in Slack, merging!

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