fix: cap competitive signals to 500 most recent per window to prevent 67k row aggregation bottleneck
This commit is contained in:
@@ -244,6 +244,7 @@ WHERE target_ticker = $1
|
|||||||
AND computed_at >= $2
|
AND computed_at >= $2
|
||||||
AND computed_at <= $3
|
AND computed_at <= $3
|
||||||
ORDER BY computed_at DESC
|
ORDER BY computed_at DESC
|
||||||
|
LIMIT 500
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user