Add usage_count columns to catalog tables
Adds 'last_30_day_usage_count' column to 'catalog_resources' and 'catalog_resource_components'. The column is to be later populated by a daily worker that aggregates the last 30 days of data. The usage count is currently defined as the number of unique projects that included the respective component in a pipeline. Changelog: added
显示
- db/migrate/20240318160548_add_usage_count_to_catalog_resources.rb 11 个添加, 0 个删除...te/20240318160548_add_usage_count_to_catalog_resources.rb
- db/migrate/20240318160612_add_usage_count_to_catalog_resource_components.rb 11 个添加, 0 个删除...8160612_add_usage_count_to_catalog_resource_components.rb
- db/schema_migrations/20240318160548 1 个添加, 0 个删除db/schema_migrations/20240318160548
- db/schema_migrations/20240318160612 1 个添加, 0 个删除db/schema_migrations/20240318160612
- db/structure.sql 5 个添加, 1 个删除db/structure.sql
db/schema_migrations/20240318160548
0 → 100644
db/schema_migrations/20240318160612
0 → 100644
想要评论请 注册 或 登录