Decrease SQL queries when listing test results
Decrease SQL queries when listing test results

On my setup, showing 100 results generate:
* 212 queries before the patch
* 112 queries with the patch applied

PostgreSQL is using 40% less time to fetch the data.

Change-Id: If8a967bc8b3ebe1dbaaf986bf02f9cdf7e833688

Linaro/lava-server,Linaro/lava-server,Linaro/lava-server,Linaro/lava-server