Salesforce Apex Cursor Pagination

•
9
•

Implements high-performance pagination for large Salesforce datasets using the Apex Cursor API to process up to 50 million records efficiently.

The sf-apex-cursor skill provides a specialized framework for utilizing the Salesforce Apex Cursor API to handle massive SOQL result sets that exceed the 2,000-row OFFSET limit. It enables developers to navigate up to 50 million records with minimal heap impact, offering standardized patterns for server-side cursor navigation, Queueable job chaining for asynchronous processing, and optimized infinite scroll capabilities for LWC components through the PaginationCursor class. This skill is essential for modernizing legacy query patterns and ensuring scalable performance in data-heavy Salesforce environments.

主な機能

019 GitHub stars
02High-scale pagination supporting up to 50 million SOQL records
03Async processing via Queueable chaining with serialized cursor IDs
04Efficient LWC infinite scrolling using the PaginationCursor API
05Standardized cursor resource management and error handling patterns
06Optimized alternative to legacy SOQL OFFSET and Batch Apex patterns

ユースケース

01Migrating legacy OFFSET queries that exceed performance thresholds or governor limits
02Processing millions of records in asynchronous batches without the complexity of Batch Apex
03Building high-performance infinite scroll lists for LWC with massive underlying datasets