SONAR-4470 Performance issue when migrating the Sonar DB from version 3.5 to version 3.6 (mainly with Oracle)