[BUG] Daily data page times out for some receivers in production #16865
Labels
onboarding-ops
Work related to onboarding with a partner. Addressed by the Onboarding & Operations team in RS.
platform
Platform Team
ready-for-refinement
Ticket is a point where we can productively discuss it
User Story
As a ReportStream receiver,
I want to be able to see my reports through the daily data page,
so that I know what reports I should be receiving.
Description/Use Case
Some ReportStream receivers are unable to view their reports through the daily date page. Massachusetts has reported that they're unable to view their reports and have opened a support ticket. The API times out after 30 seconds and an error is presented to the receiver saying data could not be loaded.
Risks/Impacts/Considerations
Dev Notes
Steps to reproduce:
Link to transaction failure
By looking at the transaction details it looks like the count query is run twice and takes up to 4 minutes to complete. The query to retrieve the results takes around 2 minutes to complete. The API times out after 30 seconds.
Slack Thread with Proposed changes
It looks like the piece that makes the query run long is the join with the
action
table. The only reason it joins with the action table is to find thebatch
step. It may be possible to get thebatch
step by looking if thenext_action
is thesend
step in thereport_file
table and avoid the join with theaction
table, but there are other considerations that need to be taken into account if doing that. All that can be found in the slack thread.Another solution may be to just start logging the
current_action
in thereport_file
file table, but all previous entries would need to be updated.Acceptance Criteria
The text was updated successfully, but these errors were encountered: