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

feat(matrix): speed up query for UI by reducing the number of joins and removing unnecessary criteria #332

Merged
merged 1 commit into from
Mar 25, 2020

Conversation

bethesque
Copy link
Member

No description provided.

…nd removing unncessary criteria

* Add a created_at column to the latest pacts/latest verifications tables
* Use the created_at columns newly created on latest_pact_publication_ids_for_consumer_versions and latest_verification_id_for_pact_version_and_provider_version to avoid having to join in the versions tables to order the matrix query rows
* speed up matrix UI page by not joining verifications table when no version is specified
* speed up matrix query by removing unncessary null check for provider versions when we are only querying by pacticipant names
@bethesque bethesque merged commit 9e5ea8b into master Mar 25, 2020
@bethesque bethesque deleted the refactor/more-optimising-matrix-squashed branch March 25, 2020 04:02
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.

1 participant