•  
      request #40097 Missing index on value_id for List bind decorator SQL table
    Infos
    #40097
    Joris MASSON (jmasson)
    2024-10-24 08:07
    2024-10-23 17:07
    41723
    Details
    Missing index on value_id for List bind decorator SQL table

    When we display list fields of given artifacts (at their last changeset), we often also need to get the list value's color badge (for example "On going" status value with a green color). However, there is no index on tracker_field_list_bind_decorator on value_id which matches the list field's platform-unique ID for the list value. It means that Cross-Tracker search query (and likely many other SQL queries) will do a full table scan on that table every time a query selecting @status or any static list field (for example Category, in this tracker) is used.

    We should add this index.

    Trackers
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Joris MASSON (jmasson)
    Closed
    2024-10-24
    Attachments
    Empty
    References

    Follow-ups