Skip to content

Refactor Ci::Partition metadata access

Max Orefice requested to merge morefice/refactor-ci-partitions-access into master

Ref: #454978 (closed)

What does this MR do and why?

Following up !150443 (merged)

This MR refactors how we access partitions metadata for CI models.

It improves the performance of those two methods by making only 1 query instead of one for each table.

  • above_threshold?
  • all_partitions_exist?

SQL After

Edited by Max Orefice

Merge request reports