Add LIMIT to paramgen query
@@ -7,6 +7,7 @@ FROM
abs(frequency - (SELECT percentile_disc(0.45) WITHIN GROUP (ORDER BY frequency) FROM personNumFriends)) AS diff
FROM personNumFriends
ORDER BY diff, md5(personId)
+ LIMIT 50
),
(SELECT unnest(generate_series(1, 20)) AS salt)
ORDER BY md5(concat(personId, salt))
