clari-performance-tuning

Featured

Optimize Clari API performance with caching, batch exports, and data pipeline efficiency. Use when exports take too long, optimizing data warehouse load times, or reducing API calls in multi-forecast environments. Trigger with phrases like "clari performance", "clari slow export", "optimize clari pipeline", "clari caching".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Clari Performance Tuning ## Overview Optimize Clari export pipelines: reduce export times, cache forecast data, and parallelize multi-period exports. ## Instructions ### Parallel Multi-Period Export ```python from concurrent.futures import ThreadPoolExecutor, as_completed def parallel_export( client, forecast_name: str, periods: list[str], max_workers: int = 3, ) -> dict[str, list[dict]]: results = {} def export_period(period: str) -> tuple[str, list[dict]]: data = client.export_and_download(forecast_name, period) return period, data.get("entries", []) with ThreadPoolExecutor(max_workers=max_workers) as executor: futures = { executor.submit(export_period, p): p for p in periods } for future in as_completed(futures): period, entries = future.result() results[period] = entries print(f" {period}: {len(entries)} entries") return results ``` ### Cache Export Results ```python import json import hashlib from pathlib import Path from datetime import datetime, timedelta class ExportCache: def __init__(self, cache_dir: str = ".cache/clari", ttl_hours: int = 4): self.cache_dir = Path(cache_dir) self.cache_dir.mkdir(parents=True, exist_ok=True) self.ttl = timedelta(hours=ttl_hours) def _key(self, forecast: str, period: str) -> str: return hashlib.md5(f"{forecast}:{period}".encode()).hexdigest() def get(self, ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category