UNPKG

signalk-parquet

Version:

Vessel data Parquet file archive with automated value and geospatial triggers. History API compliant with cloud backups and queries.

73 lines 2.1 kB
/** * Centralized cache configuration defaults * These values can be adjusted based on system resources and usage patterns */ /** * Cache Time-To-Live (TTL) values in milliseconds */ export declare const CACHE_TTL: { /** * Schema cache TTL - schemas are relatively static * Increase if schema changes are rare, decrease if schema changes frequently * @default 30 minutes */ readonly SCHEMA: number; /** * File list cache TTL - used for context discovery * Increase for better performance, decrease for more real-time file discovery * @default 2 minutes */ readonly FILE_LIST: number; /** * Path and context cache TTL - used for query optimization * Increase for better cache hit rate, decrease for more up-to-date results * @default 1 minute */ readonly PATH_CONTEXT: number; /** * Directory scanner cache TTL - used during consolidation * Increase for better performance on large file systems * @default 5 minutes */ readonly DIRECTORY_SCAN: number; }; /** * Cache size limits */ export declare const CACHE_SIZE: { /** * Maximum number of path/context cache entries * Each entry is relatively small (~100 bytes) * @default 100 entries */ readonly PATH_CONTEXT_MAX: 100; /** * Maximum number of data buffer entries (LRU cache) * Each entry can be several KB depending on data volume * @default 1000 entries */ readonly DATA_BUFFER_MAX: 1000; }; /** * Concurrency limits */ export declare const CONCURRENCY: { /** * Maximum concurrent DuckDB queries in History API * Increase for better throughput on powerful systems * Decrease to prevent resource exhaustion * @default 10 concurrent queries */ readonly MAX_QUERIES: 10; }; /** * Default query parameters */ export declare const QUERY_DEFAULTS: { /** * Default time resolution for queries (milliseconds) * @default 60000 (1 minute) */ readonly RESOLUTION_MS: 60000; }; //# sourceMappingURL=cache-defaults.d.ts.map