Hi,
After upgrading to a new SonarQube version, you need to update the statistics of your database, as explained in the Additional Database Maintenance section of SonarQube :
Refreshing your database’s statistics and rebuilding your database’s indices are recommended once the technical upgrade is done (just before the very last step).
Regards