History failed

Hi, my setup Proxmox with VM- HA. Home Assistant 2021.8.8 and use MariaDB database.

for 4 months now I have the problem that the history page keeps getting stuck and nothing happens and is very slow. I have already tried deleting the Database but unfortunately this has not worked. I do not know how to solve it anymore is there anyone here who again how I can solve it?

Here I have a video of the problem it also happens on the iPhone and iPad and other computers
Problem history

thank you in advance for your help in solving the problem