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

Slow loading on feed page #1

Open
AnisKehila opened this issue Aug 18, 2023 · 0 comments
Open

Slow loading on feed page #1

AnisKehila opened this issue Aug 18, 2023 · 0 comments

Comments

@AnisKehila
Copy link
Owner

The feed page takes too long to load, often 10+ seconds before posts appear. This is caused by fetching all posts on a single request.

Steps to reproduce:

  • Go to /feed
  • Time how long it takes for posts to start appearing

Expected result:

  • Posts should load within 2-3 seconds.

Actual result:
The feed page takes 10+ seconds to start showing posts.

Potential fixes:

  • Implement pagination to split posts across multiple pages/requests.
  • Fetch only above-the-fold posts on the first load, lazy load the rest.
  • Cache feed requests so duplicate calls are faster.
  • Optimize database queries and indexes for fetching posts.
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

No branches or pull requests

1 participant