Skip to content

Commit

Permalink
[VIVO-1402] Improve search page performance by rewriting OPTIONAL que…
Browse files Browse the repository at this point in the history
…ry for person information
  • Loading branch information
grahamtriggs committed Oct 16, 2017
1 parent c597a3e commit 9527d87
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ public class VIVOIndividualSearchResult extends IndividualSearchResult {
+ "SELECT DISTINCT ?email ?title \n"
+ "WHERE { \n"
+ " ?subject obo:ARG_2000028 ?vIndividual . \n"
+ " OPTIONAL { ?vIndividual vcard:hasEmail ?vEmail . \n"
+ " OPTIONAL { ?subject obo:ARG_2000028 ?vIndividual . \n"
+ " ?vIndividual vcard:hasEmail ?vEmail . \n"
+ " ?vEmail vcard:email ?email . \n"
+ " } \n"
+ " OPTIONAL { ?vIndividual vcard:hasTitle ?vTitle . \n"
+ " OPTIONAL { ?subject obo:ARG_2000028 ?vIndividual .\n"
+ " ?vIndividual vcard:hasTitle ?vTitle . \n"
+ " ?vTitle vcard:title ?title . \n"
+ " } \n"
+ "} " ;
Expand Down

0 comments on commit 9527d87

Please sign in to comment.