Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: create integrations table #522

Merged
merged 10 commits into from
Nov 4, 2021
Merged

Conversation

bethesque
Copy link
Member

@bethesque bethesque commented Nov 3, 2021

One of the queries for the dashboard does a select * from integrations, which is a view. The integrations view does a select unique on pact_publications. When the pact publications table is very big, this query is too slow for rendering a UI. This PR creates an integrations table to replace the view.

Because postgres supports transactional DDL, it should be a no downtime migration.

@bethesque bethesque requested a review from uglyog November 3, 2021 22:24
@bethesque bethesque merged commit ae10d8e into master Nov 4, 2021
@bethesque bethesque deleted the feat/create-integrations-table branch November 4, 2021 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants