-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Efficient queries for connection list (#17360)
* query once for all needed models, instead of querying within connections loop * cleanup and fix failing tests * pmd fix * fix query and add test * return empty if input list is empty * undo aggressive autoformatting * don't query for connection operations in a loop, instead query once and group-by connectionID in memory * try handling operationIds in a single query instead of two * remove optional * fix operationIds query * very annoying, test was failing because operationIds can be listed in a different order. verify operationIds separately from rest of object * combined queries/functions instead of separate queries for actor and definition * remove leftover lines that aren't doing anything * format * add javadoc * format * use leftjoin so that connections that lack operations aren't left out * clean up comments and format
- Loading branch information
Showing
12 changed files
with
524 additions
and
78 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.