fix: reduce ClickHouse CPU by increasing flush interval, rename LIVE→AUTO labels
- Increase ingestion flush interval from 500ms to 5000ms to reduce MV merge storms - Reduce ClickHouse background_schedule_pool_size from 8 to 4 - Rename LIVE/PAUSED badge labels to AUTO/MANUAL across all pages - Update design system to v0.1.29 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -10,9 +10,9 @@ export function useRefreshInterval(intervalMs: number): number | false {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns `enabled` and `refetchInterval` tied to the LIVE/PAUSED toggle.
|
||||
* - LIVE: enabled=true, refetchInterval=intervalMs (fetch + poll)
|
||||
* - PAUSED: enabled=true, refetchInterval=false (fetch once, no polling)
|
||||
* Returns `enabled` and `refetchInterval` tied to the AUTO/MANUAL toggle.
|
||||
* - AUTO: enabled=true, refetchInterval=intervalMs (fetch + poll)
|
||||
* - MANUAL: enabled=true, refetchInterval=false (fetch once, no polling)
|
||||
*/
|
||||
export function useLiveQuery(intervalMs: number) {
|
||||
const { autoRefresh } = useGlobalFilters();
|
||||
|
||||
Reference in New Issue
Block a user