• Kamil Trzciński's avatar
    Optimise ci_namespace_mirrors_for_group_members to search prefix · 123ecd49
    Kamil Trzciński authored
    Currently the `ci_namespace_mirrors_for_group_members` would fetch all
    IDs of all groups that user is member of. However, in most of cases
    user is owner/maintainer of many subgroups. To optimise heavily
    for this usage pattern find the top-most prefixes (shortest)
    to avoid searching having to include IDs of childrens.
    
    Changelog: changed
    123ecd49
user_spec.rb 212 KB