Skip to content

chore: Revert to only using 1 timezone support for template DAUs #7721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 30, 2023

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented May 30, 2023

It took 58min on our dev server. Way longer than I anticipated. Local and tests are quick, so this was unexpected. I just removed the tz offsets from template DAUs for now. I think we should probably figure out a way to optimize this, as this doesn't make sense. Might just be a missing index on Postgres.

Screenshot from 2023-05-30 15-18-23

Until then, this keeps the DAU calculation correct and reverts the template DAUs to just 1 timezone offset. The deployment DAU takes 250ms to do all 24 timezones.

Keeping the logic to support more in case we optimize later
@Emyrk Emyrk requested a review from coadler May 30, 2023 19:20
@Emyrk Emyrk marked this pull request as ready for review May 30, 2023 19:20
@Emyrk Emyrk merged commit 73d795f into main May 30, 2023
@Emyrk Emyrk deleted the stevenmasley/template_daus branch May 30, 2023 19:37
@github-actions github-actions bot locked and limited conversation to collaborators May 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants