Using Request Offset
The Data Export service automatically pages table exports when the number of records matching the export criteria exceeds the configured row limit. Automatic paging doesn't apply to exports by business object.
For table exports, you can export all matching records in a single export request. You don't need to submit extra requests with calculated offsets when the configured row limit is exceeded.
The service counts the matching records and divides the export into multiple request items based on the configured row limit. It manages the offset for each item and continues processing until all matching records have been exported.
For example, if the configured row limit is 10,000,000 (10 million) rows and the SHIPMENT_STATUS table contains 30,652,442 matching records, the service processes the export in four request items:
| Request Item | Number of Records |
|---|---|
| 1 | 10,000,000 |
| 2 | 10,000,000 |
| 3 | 10,000,000 |
| 4 | 652,442 |
Each request item can produce multiple output file parts. The row limit determines how records are divided among request items. Part limits determine how the output is divided into files. See Using Part Limits.
Note:
Exported query results are ordered by primary key column. To maintain consistent paging results, ensure that records aren't added to or removed from the range being exported while the export is in progress.