forked from cloudfoundry/cloud_controller_ng
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As part of PR cloudfoundry#3620 [1] it has been validated that there is no overlap between the different sources (UNIONed datasets). But as these single datasets are created by JOINing several tables, there might be duplicates depending on the cardinality of those relations. Thus the overall DISTINCT is replaced by DISTINCTs added when JOINing a table with a one-to-many relation. Calling '.distinct' multiple times does not have any negative effect as this simply sets a flag on the Sequel dataset. This change should improve performance of requests to the following endpoints whenever those JOINs are not needed (e.g. depending on request parameters): - /v3/service_offerings - /v3/service_plans Tests now ensure that there are: - multiple plans per offering - multiple service instances per plan - multiple visibilities per plan - multiple spaces per organization [1] cloudfoundry#3620
- Loading branch information
1 parent
b9f2933
commit 066d3ff
Showing
4 changed files
with
118 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.