client gives timeout when requesting top returns for larger universes #19
Labels
No labels
bug
documentation
duplicate
enhancement
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gertjan/bodega#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bodega> analytics top --sector Technology --exchange NASDAQ Connection error: The read operation timed outmarked this issue as related to #21
Fixed in
702749bby rewritingget_top_performersto use TimescaleDB's nativefirst(close, timestamp)/last(close, timestamp)aggregates instead of two separateDISTINCT ONCTEs. This halves the number of table scans and aligns with the compression layout (segmentby='symbol, granularity'), which was the root cause of the timeout for large universes like NASDAQ or Technology globally.