Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(tf): index by the test run group ID (#2700)
perf(tf): index by the test run group ID Based on the Sentry's backend insights, it appears that in the last 90d we have spent 16.82min running the query that filters out rows based on the «test run group id», therefore index that column to improve the speed of the queries done. TODO The alembic migration generated also: def upgrade(): op.alter_column('project_events', 'type', existing_type=postgresql.ENUM('pull_request', 'branch_push', 'release', 'issue', 'koji_build_tag', 'anitya_version', 'anitya_multiple_versions', name='projecteventtype'), type_=sa.Enum('pull_request', 'branch_push', 'release', 'issue', 'koji_build_tag', 'anitya_version', 'anitya_multiple_versions', name='projecteventmodeltype'), existing_nullable=True) def downgrade(): op.alter_column('project_events', 'type', existing_type=sa.Enum('pull_request', 'branch_push', 'release', 'issue', 'koji_build_tag', 'anitya_version', 'anitya_multiple_versions', name='projecteventmodeltype'), type_=postgresql.ENUM('pull_request', 'branch_push', 'release', 'issue', 'koji_build_tag', 'anitya_version', 'anitya_multiple_versions', name='projecteventtype'), existing_nullable=True) which is definitely not my change and is basically just a rename of the enumeration check what is it about Reviewed-by: Maja Massarini Reviewed-by: Laura Barcziová
- Loading branch information