Skip to content

Add task to check decomposed table counts

Thong Kuah requested to merge check_decomposed_table_counts into master

What does this MR do and why?

Adds a task to show tables that should have zero rows if decomposed.

We may incorporate this into gdk doctor, but I think this is also suitable to run for production as well

Related issue: gitlab-development-kit#1640 (closed)

Database queries

This runs a COUNT WITH LIMIT, such as:

Screenshots or screen recordings

Screenshot_2023-03-28_at_9.03.05_PM

How to set up and validate locally

  1. Run bundle exec rake gitlab:db:decomposition:check_decomposed_tables

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Thong Kuah

Merge request reports

Loading