Add an index on results.tid to speed up result by commit retrieval