Salesforce Apex Cursor Pagination

•
9
•

Implements and manages the Salesforce Apex Cursor API to paginate up to 50 million SOQL records without OFFSET limits.

This skill provides specialized guidance for implementing the Salesforce Apex Cursor API (GA Spring '26) to handle high-volume data processing and UI pagination. It enables developers to navigate up to 50 million records efficiently, surpassing the traditional 2,000-row OFFSET limitation. The skill offers implementation patterns for Queueable chaining across transactions, building responsive LWC components with server-side cursor state, and managing cursor lifecycles to optimize heap usage and performance.

主な機能

01Resource management and error handling for cursor lifecycles
02Large-scale SOQL pagination for up to 50 million records
039 GitHub stars
04Legacy OFFSET-to-Cursor migration strategies
05LWC-ready server-side pagination with Database.PaginationCursor
06Queueable chaining patterns for asynchronous data processing

ユースケース

01Building infinite scroll lists or paginated reports for datasets exceeding 2,000 records
02Replacing inefficient OFFSET queries to improve database scan performance and scalability
03Processing massive record sets in asynchronous chains to avoid heap and governor limits