Skip to main content

MAX_PAGINATION_OFFSET

Constant MAX_PAGINATION_OFFSET 

Source
pub const MAX_PAGINATION_OFFSET: u32 = 10_000;
Expand description

Maximum number of rows offset pagination is allowed to skip. Requests that would page deeper than this are rejected with 400 so clients narrow their query with filters instead of deep-scanning the table (OFFSET cost grows with depth). At MAX_PER_PAGE this allows ~100 pages.