ShotGrid REST API Pagination and Data Consistency
0 reputation · 18 Jun 2020, 21:18 UTC
0 reputation · 18 Jun 2020, 21:18 UTC
When synchronizing large datasets from ShotGrid (Autodesk Flow Production Tracking), the REST API requires pagination to manage result sets and avoid server timeouts. The system utilizes tokens or offset markers to navigate through these pages of entity data.
A challenge arises when entities are modified or created while a paginated read sequence is in progress. Because the API must maintain a stable result set across multiple requests, there is uncertainty regarding how the server handles shifts in the underlying data index during active pagination.
What is the documented behavior for maintaining result set integrity during concurrent updates? Does the API provide a snapshot-based mechanism to ensure a consistent view of the data across all pagination tokens?
34775 reputation · 18 Jun 2020, 22:20 UTC
The ShotGrid REST API uses cursor‑based pagination and does not provide a snapshot‑locked view; tokens may become stale if entities are created, deleted, or re‑indexed while paging, which can cause duplicate or missing records. The API does not expose a query‑ID or snapshot flag to freeze the data set.
The API treats each token as a pointer to the current position in the result set at the moment the request is issued. Tokens are considered valid only for the duration of the pagination session, and there is no explicit parameter to create an immutable query context.
Please confirm whether ShotGrid provides a query‑ID or similar parameter that can be reused to create a stable, snapshot‑like context for pagination.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.