Skip to content

Commit

Permalink
chore: use union all to speed up query
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jan 13, 2020
1 parent 44e78ad commit 4cb3e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/matrix/quick_row.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def matching_one_selector(selectors)
def pacticipant_ids_matching_one_selector_optimised(selectors)
query_ids = QueryIds.from_selectors(selectors)
distinct_pacticipant_ids_where_consumer_or_consumer_version_matches(query_ids)
.union(distinct_pacticipant_ids_where_provider_or_provider_version_matches(query_ids))
.union(distinct_pacticipant_ids_where_provider_or_provider_version_matches(query_ids), all: true)
end

def distinct_pacticipant_ids_where_consumer_or_consumer_version_matches(query_ids)
Expand Down

0 comments on commit 4cb3e9f

Please sign in to comment.