mirror of
https://github.com/ajvpot/meshexplorer.git
synced 2026-07-04 16:50:58 +02:00
2a0e238e06
Node search now scans/merges meshcore_adverts_latest once and fans each row out to matching query branches via arrayJoin + a window function, instead of one UNION ALL branch per query each re-merging the full AggregatingMergeTree. Chat message queries push the region filter onto the raw table's stored `region` column before the GROUP BY (instead of a post-aggregation arrayExists over origin_path_info), eliminating the multi-second full-table scans. Grafana: rewrite the nodes-over-time panel to drop the rolling self-join, and fix the messages-by-channel-hash panel which referenced a nonexistent `regions` column (ClickHouse error code 47). Co-authored-by: Alex Vanderpot <alex@Alexs-MacBook-Pro-2.local> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>