GlideList - Slow execution of field value assignmentIssue Directly assigning a list of sys_id values to a Reference GlideList field via script may take longer than expected. Release Any Cause When passing a string list of sys_ids directly into a GlideList field, the platform will attempt to match the individual string values with the corresponding records on the reference table based on the display value. I.e.: The platform assumes that we're passing in display values and tries to retrieve their sys_ids. This results in one query per element in the list against the display value field of the reference table. The time taken therefore increases with the number of elements being assigned and with the size of the reference table. It can be especially noticeable where the display value field is not an efficient lookup path. The behaviour differs by field type: GlideList fields: Each element of a directly assigned string is matched against the display value of the reference table before being stored, even if the elements are valid sys_ids.Reference fields: A directly assigned valid sys_id is accepted as a sys_id and no lookup is performed. A lookup against the display value is only performed if the assigned value does not resolve as a sys_id, for example a display value or a sys_id that does not exist on the reference table.Other field types (string, integer, true/false, date/time, etc.): No lookup is performed. Direct assignment and setValue() behave equivalently from a performance perspective. Resolution Please use the 'setValue' method to assign a list of sys_ids to a GlideList field. By using setValue() we're instructing the platform to accept the sys_ids as plain sys_id's without attempting to match against the reference tables' display value.Any necessary matches (sys_id to display value) will be performed at display time. For Reference fields, direct assignment of a known valid sys_id does not incur this overhead. Using setValue() consistently is still recommended, as it makes the intent explicit and avoids an unexpected lookup should the value not be a valid sys_id.