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

Improve the webapp performance (WORK IN PROGRESS) #21

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

matmatias
Copy link
Collaborator

About

The main bottleneck on the webapp performance is comming from the /deputado-federal/[name] page.

Cause

The cause for this bottleneck is the execessive amout of data being rendered on the server side. This data being (expenses, speeches and cabinet), all of which are arrays of medium to big objects

Solution

Make speeches and cabinet requests to be rendered on the client side. In the moment, the expenses data can't be rendered on the client side because it would impact SEO. Solution to this specific problem is still being discussed.

…peeches and cabinet info request client sided to decrease the bundle size of the /deputado-federal/[name], thus, decreasing it's loading time.
Speeches and Cabinet requests loading are now independent, this means that once only speeches request is done, it's respective loading will end. Same for the cabinet request
@vercel
Copy link

vercel bot commented Oct 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
brasiliapp-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 1, 2023 7:07pm

@matmatias
Copy link
Collaborator Author

WORK IN PROGRESS.

related to #17.

@matmatias matmatias changed the title Improve the webapp performance Improve the webapp performance (WORK IN PROGRESS) Oct 1, 2023
@matmatias matmatias self-assigned this Oct 1, 2023
@matmatias matmatias added the enhancement New feature or request label Oct 1, 2023
@matmatias matmatias marked this pull request as draft October 1, 2023 13:02
The speeches and cabinet requests abortion will be triggered on FederalDeputy component cleanup function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant