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

enable SSR on SIGs/Projects page by reducing number of airtable requests #59

Open
kapil1garg opened this issue Mar 13, 2022 · 0 comments
Assignees
Labels
bug general issues with the website enhancement general tag for new features to add

Comments

@kapil1garg
Copy link
Contributor

The Projects page is currently using SSG + ISR since it takes too long to build at request time. The most likely reason for this is the number of requests to Airtable that the page has to make to get all the project information, which currently is 128 requests. Given Airtable's rate limit of 5 requests per second, the high request amount and relatively slow API means a longer time for the page to build.

We should be able to reduce the total number of requests down to just 3-5 by pulling all the tables in at once (they aren't big, so fine to store in memory), and then combining the data into the format we need for the views on the server. Once we do this, we should be able to enable SSR on the page so that changes in Airtable data are reflected as soon as the page is reloaded instead of after a 60 second delay.

@kapil1garg kapil1garg added bug general issues with the website enhancement general tag for new features to add labels Mar 13, 2022
@kapil1garg kapil1garg self-assigned this Mar 13, 2022
kapil1garg added a commit that referenced this issue May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug general issues with the website enhancement general tag for new features to add
Projects
None yet
Development

No branches or pull requests

1 participant