Commit graph

1 commit

Author SHA1 Message Date
Stan Hu
5bb2f0c6fc Add partial index on identities table to speed up LDAP lookups
For customers with thousands of entries in the table, lookups for an
LDAP identity dominated the PostgreSQL statistics because of sequential
scans. We can speed this up by adding a partial index with the
extern_uid and provider.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/59630
2019-07-30 08:45:37 -07:00