fix: cap competitive signals to 500 most recent per window to prevent 67k row aggregation bottleneck

This commit is contained in:
Celes Renata
2026-04-16 09:24:31 +00:00
parent c5e9644f6f
commit f0887afd9b
+1
View File
@@ -244,6 +244,7 @@ WHERE target_ticker = $1
AND computed_at >= $2
AND computed_at <= $3
ORDER BY computed_at DESC
LIMIT 500
"""