SONAR-4321 Fix performance issue on Issues search SQL