Performance metrics problems after upgrade to 4.2

Hi,
I’ve opened an issue post over at GitHub about this.

I want to downgrade to version 4.1 for now, until this gets sorted out. Besides copying the 4.1 files at Matomo’s folder, what DB queries are needed? Or in general, what should be done about the database?