Skip to content
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

Topics take several seconds to load #576

Open
keyserj opened this issue Nov 25, 2024 · 0 comments
Open

Topics take several seconds to load #576

keyserj opened this issue Nov 25, 2024 · 0 comments
Labels
performance reduces lag, wait time, cpu efficiency, etc

Comments

@keyserj
Copy link
Collaborator

keyserj commented Nov 25, 2024

Describe the bug

If the site hasn't loaded a Topic for anyone in longer than ~5 minutes, the next person to view a Topic will experience a loading time of several seconds. This is annoying.

I also suspect this is a reason for Google's failure to index some pages (examples that failed to index - public to view but requires logging into Google), and if this is true, then SEO is probably impacted too.

To Reproduce

No response

Expected behavior

No response

Additional context

No response

Technical ideas

I think it's highly likely that this is due to cold starts. If I remember correctly, I previously confirmed that our neon's postgres db has a cold start of < 1s. But I had a hard time nailing down Netlify's function cold start timings.

I suspect the issue is Netlify's cold starts taking too long when combined with Prisma. Would be good if we could confirm that, then look into fixing it.

@keyserj keyserj added the performance reduces lag, wait time, cpu efficiency, etc label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance reduces lag, wait time, cpu efficiency, etc
Projects
Status: No status
Development

No branches or pull requests

1 participant