Skip to content

Utility for efficient IN SQL queries

What does this MR do?

This change is not user-facing.

The MR introduces a utility class for speeding up sorted IN queries, especially group-level queries. The technique is described in the document within the MR and there is a slide deck here: https://docs.google.com/presentation/d/1r86k8W-AMdBOpPAESkD-c2Q2NcCtq6JbO5P17sRgoBc/edit#slide=id.g29a70c6c35_0_68

It was quite challenging to implement a generic solution that can be easily adapted for various use cases which results in a huge MR. Unfortunately, I don't see a good way to split it at this point.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #335388 (closed)

Edited by Adam Hegyi

Merge request reports