UseTimeSeriesStoreWorkerOptions
Defined in: hooks/useTimeSeriesStoreWorker.ts:22
Type Parameters
Section titled “Type Parameters”T extends TimePoint
Properties
Section titled “Properties”clientRef?
Section titled “clientRef?”
optionalclientRef?:MutableRefObject<ChartDataWorkerClient|null>
Defined in: hooks/useTimeSeriesStoreWorker.ts:38
Optional ref to receive the worker client instance (for debug queries etc.).
coldRefreshEveryN?
Section titled “coldRefreshEveryN?”
optionalcoldRefreshEveryN?:number
Defined in: hooks/useTimeSeriesStoreWorker.ts:34
Run cold (full downsampled) refresh every Nth tick (default: 20).
drainInterval?
Section titled “drainInterval?”
optionaldrainInterval?:number
Defined in: hooks/useTimeSeriesStoreWorker.ts:30
Polling interval in ms for draining the IngestBuffer (default: 250).
duckDB?
Section titled “duckDB?”
optionalduckDB?:DuckDBInitOptions
Defined in: hooks/useTimeSeriesStoreWorker.ts:45
How the Worker should source DuckDB-wasm assets. Pass self-hosted bundle URLs here to avoid the jsDelivr CDN. Defaults to the CDN when omitted.
enabled?
Section titled “enabled?”
optionalenabled?:boolean
Defined in: hooks/useTimeSeriesStoreWorker.ts:40
Set to false to disable the Worker (no Worker is spawned). Default: true.
hotRowBudget?
Section titled “hotRowBudget?”
optionalhotRowBudget?:number
Defined in: hooks/useTimeSeriesStoreWorker.ts:36
Trigger cold refresh when hot buffer exceeds this many rows (default: 500).
ingestBufferRef
Section titled “ingestBufferRef”ingestBufferRef:
RefObject<IngestBuffer<T>>
Defined in: hooks/useTimeSeriesStoreWorker.ts:24
maxPoints?
Section titled “maxPoints?”
optionalmaxPoints?:number
Defined in: hooks/useTimeSeriesStoreWorker.ts:28
Maximum number of points to display (default: DISPLAY_MAX_POINTS).
schema
Section titled “schema”schema:
TableSchema<T>
Defined in: hooks/useTimeSeriesStoreWorker.ts:23
tickInterval?
Section titled “tickInterval?”
optionaltickInterval?:number
Defined in: hooks/useTimeSeriesStoreWorker.ts:32
Worker tick interval in ms (default: 250).
timeRange?
Section titled “timeRange?”
optionaltimeRange?:TimeRange
Defined in: hooks/useTimeSeriesStoreWorker.ts:26
Show only last N seconds of data, or null for all history.