Skip to content

fix: various fixes + performance improvements#122

Merged
tomcarman merged 11 commits into
mainfrom
dev
May 4, 2026
Merged

fix: various fixes + performance improvements#122
tomcarman merged 11 commits into
mainfrom
dev

Conversation

@tomcarman
Copy link
Copy Markdown
Owner

No description provided.

wiedehopf and others added 11 commits October 25, 2025 07:28
the previous code uses current_date but that's the date in UTC, thus it
can differ from current_date in another timezone
replacing CURRENT_DATE with DATE(now() at time zone TZ) would probably
be the most direct fix

but this fix will be faster once an index on first_seen is added
using the DATE() function on a column won't gain this speedup
various fixes + improvements
* 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.
fix: api performance improvements
@tomcarman tomcarman merged commit fe31fe0 into main 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.

2 participants