Skip to content

fix: api performance improvements#121

Merged
tomcarman merged 1 commit into
devfrom
fix-ui-performance
May 4, 2026
Merged

fix: api performance improvements#121
tomcarman merged 1 commit into
devfrom
fix-ui-performance

Conversation

@tomcarman
Copy link
Copy Markdown
Owner

  • Cache total aircraft/flights seen and only refresh daily. The total "aircraft" seen uniqueness was causing very slow queries as db grows. Also applied caching to total "flights" (even though less 'expensive' as no unique filtering).
  • Stop interesting / routes / record holders from polling - not needed - data just fetched on tab load / refresh.
  • Add index on last_seen / last_seen_distance as will help the Above component query run quicker (its run aggressively every 2s, so needs to be relatively performant)

* add index on last_seen / last_seen_distance
* cache total aircraft/flights seen, refresh daily (total "aircraft"
seen uniqueness was causing very slow queries as db grows. Also applied
caching to total "flights" -  even though less expensive as not unique)
* stop interesting / routes / record holders from polling - not needed -
data just fetched on tab load / refresh.
@tomcarman tomcarman merged commit 8d56e5b into dev May 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant