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

Performance degradation (super slow TTFB) with long select option list #578

Open
ThinkingAbout opened this issue Apr 5, 2023 · 2 comments
Labels
bug report A submitted bug report, not yet validated.

Comments

@ThinkingAbout
Copy link

Hi,
using "long" (252 items) option lists in select causes severe slowdowns in server-side rendering of the page (from ~50ms to ~2s).
In our case (on the production website, it took a couple of months to detect the source of the problem) the issue was not only concerning a slowdown on the page itself for the single user navigating it, but it caused a noticeable slowdowns throughout the website, for all users connected subsequently (maybe some server-side/node.js issue was triggered causing CPU or memory issue).

In summary:

  • Our site runs fast (TTFB ~200ms for each page);
  • Some users access the contact page (SSR) including the vue-formulate form and the country select;
  • From that moment, the website becomes slow on all pages using SSR, for all users (~2s TTF on each page);
  • We need to restart PM2 to reset the performance issue;
  • After the restart of pm2 the site goes back to being fast at initial values but the cycle repeats itself when some user go to the contacts page again (every certain time we need a restart of PM2);

We only found the issue at the SSR level, wrapping every <form></form> in a <client-only></client-only> tag solved the problem.

Screenshot 2023-04-05 alle 11 54 34

Reproduction

Is this a known problem and are there any solutions to avoid it?

Regards,
Matteo

@ThinkingAbout ThinkingAbout added the bug report A submitted bug report, not yet validated. label Apr 5, 2023
@justin-schroeder
Copy link
Member

Very interesting — although I don’t really know what would cause this server side. Do you get similar results with a standard Vue 2 select list?

@ThinkingAbout
Copy link
Author

Yes, in the reproduction provided I added a classic form (now commented, just try to switch the comments, maybe outside stackblitz) and it's super fast (~50ms vs ~2s TTFB).
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report A submitted bug report, not yet validated.
Projects
None yet
Development

No branches or pull requests

2 participants