Won't Fix
Details
Priority
MajorComponents
Assignee
KERNEL TEAMKERNEL TEAMReporter
David HainesDavid HainesLabels
Details
Details
Priority
Components
Assignee
KERNEL TEAM
KERNEL TEAMReporter
David Haines
David HainesLabels
Created December 22, 2011 at 11:14 AM
Updated April 25, 2018 at 3:18 PM
Resolved October 24, 2013 at 9:18 AM
Pre K1 1.1.14 a search for users would not match across first and last name fields, making it impossible to find a user by searching with the conventional name. E.g. "John Smith" would not find any one.
Per this was changed so that the search entry is broken into tokens on spaces and matches are now based on an OR of finding any substring of any token in the search string in the email or name fields. Based on a code review it appears that the underlying query uses wildcards (see DbUserService.java search) and an UPPER function (see UserServiceSqlDefault.java). The upper prevents the use of an index. This means that query is potentially very expenseive when given multiple terms on a large set of users.
This should not be wide spread problem since the query is only run by the admin user.