switch from corelated query to window function. practically, this gives us a 10x speedup for this portion of the function. we can go further by running each subquery for GetRepos concurrently, but the potential wins here is in the order of ~2ms.
Signed-off-by: oppiliappan me@oppi.li