1652a75 /results/latest: use a single query with subquery join

Authored and Committed by Dan Callaghan 6 years ago
    /results/latest: use a single query with subquery join
    
    ... instead of issuing a separate query for every possible matching test
    case, of which there could be a very large number.
    
    This improves the performance of the /results/latest endpoint, which is
    currently domainated by roundtrip time to the database for all the
    queries.
    
    Fixes #84.
    
        
file modified
+37 -23
file modified
+11 -11