arnaudne a562dae1e3 Fix catastrophic targets query and remove emoji from night mode buttons
The seasonal peak subquery used a correlated SELECT inside a GROUP BY,
causing a full nightly_cache scan per object (210-270s for 14k objects).
Replaced with a simple MAX() GROUP BY — now instant.

Also added three indexes on nightly_cache(night_date) that were missing
and causing all dashboard queries to run 2+ second full table scans.

Replaced 🔴 emoji in night mode buttons with CSS circles.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 11:02:24 +02:00
2026-04-10 00:20:32 +02:00
2026-04-10 00:20:32 +02:00
2026-04-10 23:33:09 +02:00
2026-04-10 23:33:09 +02:00
2026-04-10 23:33:09 +02:00
2026-04-10 23:33:09 +02:00
S
Description
No description provided
128 MiB
Languages
Rust 51%
TypeScript 47.7%
CSS 1.1%
Dockerfile 0.1%
HTML 0.1%