Description
As reported from different deployment environments, searching users and roles when using MySQL for internal storage shows very poor performance.
This is with any evidence due to bug [1], open since 2010, and is related to the "UNION ALL" construct used to define SQL search views, on which AttributableSearchDAOImpl [2] is based.
Such views definition needs to be changed in order to avoid at all the "UNION ALL" construct.
[1] http://bugs.mysql.com/bug.php?id=56225
[2] https://svn.apache.org/repos/asf/syncope/branches/1_1_X/core/src/main/java/org/apache/syncope/core/persistence/dao/impl/AttributableSearchDAOImpl.java