Slow load history and pictures after update

Summary
After updating to 10.5.2from 9.5, we have a problem with long loading of chat history, it can take up to 10 seconds. Also, sometimes messages are not displayed immediately. There is a push notification about the message, but there is no message. The message is shown after refreshing the page. Also, it does not show attachments the first time. Files are stored on S3. There is also a problem with duplicating notifications. After reopening the client, it shows that messages are not read, although they have already been read.

I don’t have any errors in Log. Log is debug mode.
I use mattermost in HA mode with postgresql.

FWIW 10.5.5 is available.

Did you go directly from 9.5 to 10.5? We recommend going from ESR to ESR, so 9.11 in your case. It’s possible that you wound up skipping a schema change. Can you restore to a sandbox and try that?

I upgraded from 9.5.6 (old esr) to 10.5.2.
We didn’t find such a problem in the scribbler. But when all users connected, the problem appeared after 2 weeks.