Hello, after clicking login, it takes 20 seconds to load before you can enter my page. why?

After logging in: homepage/post page loading takes 20-40 seconds
Not logged in: Normal speed access

hi @s_xu welcome to Discourse Meta support forum.

Can you please provide as much detail as possible about your install and situation? For example:

  • Is your Discourse version up to date?
  • Is it a standard install
  • Are you self-hosting or hosted?
  • Are there any errors in the dev console when your site is loading?
  • Have you installed any plugins or theme components recently?
  • Is this only when you first log in - that is, do the pages load normally once you are logged in?
  • what do the /logs/ show?

(post deleted by author)

Hello, it’s not the latest version. Every time I log in using Docker installation, the page will load normally after logging in,

Hello, it’s not the latest version. Every time I log in using Docker installation, the page will load normally after logging in,

update it from the command line

hello, This is our production environment, and updating may cause other issues. Are there any other solutions? We may need to identify the problem first. Currently, we are looking at whether it is caused by some SQL in the database or the lack of indexes

have you changed anything with the database recently?
need more info.

if possible, check the rails logs when you log in:

cd /var/discourse
./launcher enter app
tail -f log/production.log