You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c84c8fe
Browse filesBrowse the repository at this point in the historyBrowse files
fix(gantt): walk a multi-step gantt read under a unique order and keep each row once
A full first read is re-walked from the top with id appended to the
authored $orderby (last key's direction), and rows are kept once by id,
so offset steps over tied sort keys cannot repeat or drop a row on an
adapter that does not break ties itself. A set that fits one read is
still one read, as authored.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbaTVGEEt267uyT6ufm
Copy file name to clipboardExpand all lines: .changeset/gantt-paged-ceiling-read.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,4 +10,4 @@ Metadata-protocol: none
10
10
11
11
The gantt read its whole filtered result set, up to its 10,000-row ceiling, as ONE read of 10,001 rows (the ceiling plus the probe row that makes a cut detectable). A host that sets a maximum page size (`OS_DATA_MAX_PAGE_SIZE`; the hosted plane sets 5,000) refuses any read over it before running the query, so on every such host the gantt drew "Query parameter 'top' asks for 10001 rows; this deployment's maximum page size is 5000…" in place of the chart, for an empty object as much as a full one.
12
12
13
-
The gantt now walks to its ceiling in steps of at most 2,001 rows, the one read the calendar, map, tree and timesheet already send: `$skip` moves by the rows that came back, and the walk stops at the first short answer or one row past the ceiling. The ceiling, the footnote that names a cut, and the rule that an authored `pagination.pageSize` or `limit` never reaches the read are unchanged; a result set that fits one step is still one read.
13
+
The gantt now asks no single read for more than 2,001 rows, the one read the calendar, map, tree and timesheet already send. A result set that fits that read is one read, as before. A larger one is walked from the top in steps of that size under a unique order (the authored sort with `id` appended as the tie-breaker) and kept once per row, so a step can neither repeat nor skip a row; the walk stops at the first short answer or one row past the ceiling. The ceiling, the footnote that names a cut, and the rule that an authored `pagination.pageSize` or `limit` never reaches the read are unchanged.
0 commit comments