Create finder for searching branch names via redis
What does this MR do?
Create a finder that searching branch names using Redis SSCAN
. This is more efficient than loading all branch names into memory then running a Enumerable#select
on the array of branches. The performance improvements are especially noticeable in large projects like gitlab-org/gitlab
(which has ~19k branches).
This finder will first be used in !55074 (merged).
Does this MR meet the acceptance criteria?
Conformity
-
📋 Does this MR need a changelog?-
I have included a changelog entry. - N/A I have not included a changelog entry because _____.
-
- N/A Documentation (if required)
-
Code review guidelines -
Merge request performance guidelines -
Style guides - N/A Database guides
- N/A Separation of EE specific content
Edited by Matija Čupić