notion-load-scale

Featured

High-volume Notion operations: parallel requests within 3 req/sec, worker queues, database pagination at scale, incremental sync for large workspaces, and memory management for bulk operations. Trigger with phrases like "notion scale", "notion bulk operations", "notion high volume", "notion worker queue", "notion incremental sync".

AI & Automation 2,274 stars 319 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

# Notion Load & Scale ## Overview Patterns for high-volume Notion API usage within the 3 requests/second rate limit. Covers parallel request orchestration with `p-queue`, worker queue architecture for background processing, full database pagination at scale (100K+ records), incremental sync using `last_edited_time` filters to avoid re-fetching unchanged data, and memory management for bulk operations using streaming and chunked processing. ## Prerequisites - `@notionhq/client` v2.x installed (`npm install @notionhq/client`) - `p-queue` for rate-limited concurrency (`npm install p-queue`) - Python: `notion-client` installed (`pip install notion-client`) - `NOTION_TOKEN` set (each token gets its own 3 req/s limit) - Test database in Notion (dedicated for load testing) ## Instructions ### Step 1: Parallel Requests Within Rate Limits Notion enforces 3 requests/second per integration token. Use `p-queue` to maximize throughput without hitting 429 errors. ```typescript import { Client } from '@notionhq/client'; import PQueue from 'p-queue'; const notion = new Client({ auth: process.env.NOTION_TOKEN }); // Rate-limited queue: 3 requests per second, single concurrency // Use intervalCap + interval instead of concurrency alone const apiQueue = new PQueue({ concurrency: 1, interval: 340, // ~3 per second with safety margin intervalCap: 1, }); // Metrics tracking let totalRequests = 0; let rateLimitHits = 0; const startTime = Date.now(); function logThroughput() {...

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

notion-performance-tuning

Optimize Notion API performance with caching, batching, parallel requests, and incremental sync. Use when experiencing slow API responses, implementing caching strategies, reducing API call volume, or tuning request patterns for Notion integrations. Trigger with phrases like "notion performance", "optimize notion api", "notion latency", "notion caching", "notion slow", "notion batch requests", "notion incremental sync", "notion reduce api calls".

2,274 Updated today
jeremylongshore
AI & Automation Featured

notion-rate-limits

Manage Notion API rate limits with exponential backoff, queue-based throttling, and batch optimization. Use when hitting 429 errors, implementing retry logic, or optimizing API request throughput for Notion integrations. Trigger with "notion rate limit", "notion 429", "notion retry", "notion backoff", "notion throttling", "notion too many requests", "notion queue".

2,274 Updated today
jeremylongshore
AI & Automation Featured

notion-cost-tuning

Optimize Notion API usage to minimize rate-limit pressure, reduce engineering overhead, and maximize throughput. Use when auditing request volume, eliminating redundant API calls, implementing caching, or restructuring queries for efficiency. Trigger with "notion cost", "notion optimize", "notion API usage", "reduce notion requests", "notion rate limit budget", "notion efficient", "notion caching".

2,274 Updated today
jeremylongshore
AI & Automation Featured

notion-migration-deep-dive

Migrate data to/from Notion or between Notion workspaces with data mapping and validation. Use when migrating data into Notion databases, exporting from Notion, syncing between workspaces, or building ETL pipelines with Notion as source or destination. Trigger with phrases like "migrate notion", "notion migration", "import to notion", "export from notion", "notion data migration", "notion ETL".

2,274 Updated today
jeremylongshore
AI & Automation Featured

notion-reference-architecture

Design and implement a production-ready Notion integration architecture with proper layering, caching, error handling, and testing strategies. Use when designing new Notion integrations, reviewing existing project structure, establishing architecture standards for Notion applications, or migrating from ad-hoc API calls to a layered architecture. Trigger: "notion architecture", "notion project structure", "notion reference architecture", "notion integration design", "notion layered architecture", "notion service pattern".

2,274 Updated today
jeremylongshore