palantir-performance-tuning

Featured

Optimize Palantir Foundry API performance with caching, batching, and pagination. Use when experiencing slow API responses, optimizing transform builds, or improving request throughput for Foundry integrations. Trigger with phrases like "palantir performance", "optimize foundry", "foundry slow", "palantir caching", "foundry batch".

AI & Automation 2,266 stars 315 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

# Palantir Performance Tuning ## Overview Optimize Foundry API performance: efficient pagination, client-side caching, batch object retrieval, and Spark transform tuning with `@configure` profiles. ## Prerequisites - Completed `palantir-install-auth` setup - Working Foundry integration to optimize - Access to Foundry build metrics (for transform tuning) ## Instructions ### Step 1: Efficient Pagination ```python from functools import lru_cache def fetch_all_objects(client, ontology: str, object_type: str, page_size: int = 500): """Fetch all objects with maximum page size to minimize API calls.""" all_objects = [] page_token = None while True: result = client.ontologies.OntologyObject.list( ontology=ontology, object_type=object_type, page_size=min(page_size, 500), # Foundry max is 500 page_token=page_token, ) all_objects.extend(result.data) page_token = result.next_page_token if not page_token: break return all_objects ``` ### Step 2: Client-Side Caching ```python from cachetools import TTLCache import hashlib, json _cache = TTLCache(maxsize=1000, ttl=300) # 5-minute TTL def cached_get_object(client, ontology, object_type, primary_key): """Cache Ontology object reads to reduce API calls.""" cache_key = f"{ontology}:{object_type}:{primary_key}" if cache_key in _cache: return _cache[cache_key] obj = client.ontologies.OntologyObj...

Details

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

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

palantir-cost-tuning

Optimize Palantir Foundry costs through compute tuning, incremental builds, and usage monitoring. Use when analyzing Foundry compute costs, reducing API usage, or implementing cost monitoring for Foundry workloads. Trigger with phrases like "palantir cost", "foundry billing", "reduce foundry costs", "foundry pricing", "foundry expensive".

2,266 Updated today
jeremylongshore
AI & Automation Featured

palantir-migration-deep-dive

Execute major Palantir Foundry migration strategies including data migration, API version upgrades, and platform transitions. Use when migrating data into Foundry, upgrading between API versions, or re-platforming existing integrations. Trigger with phrases like "migrate to palantir", "foundry migration", "palantir data migration", "foundry replatform".

2,266 Updated today
jeremylongshore
AI & Automation Featured

palantir-common-errors

Diagnose and fix Palantir Foundry common errors and API exceptions. Use when encountering Foundry errors, debugging failed API calls, or troubleshooting transform build failures. Trigger with phrases like "palantir error", "fix palantir", "foundry not working", "debug foundry", "palantir 401 403".

2,266 Updated today
jeremylongshore
AI & Automation Featured

attio-performance-tuning

Optimize Attio API performance -- caching, batch queries, pagination strategies, connection pooling, and latency reduction. Trigger: "attio performance", "optimize attio", "attio slow", "attio latency", "attio caching", "attio batch requests".

2,266 Updated today
jeremylongshore
AI & Automation Featured

palantir-rate-limits

Implement Palantir Foundry API rate limiting, backoff, and request queuing. Use when handling 429 errors, implementing retry logic, or optimizing API request throughput for Foundry. Trigger with phrases like "palantir rate limit", "foundry throttling", "palantir 429", "foundry retry", "palantir backoff".

2,266 Updated today
jeremylongshore