////

Adopt cursor pagination as a shared primitive, not a one-off endpoint feature

Adopt cursor pagination as a shared primitive, not a one-off endpoint feature

////

Summary#

Adopt cursor pagination as a shared primitive, not a one-off endpoint feature

Problem#

Offset pagination becomes unstable when records are inserted or deleted during scrolling, and separate services/endpoints drift into incompatible pagination contracts.

Solution#

Introduce opaque keyset cursors for stable forward paging, keep offset mode only where jump-to-page is still needed, and hoist cursor encode/decode logic into a shared utility so multiple domains and runtimes expose the same contract.

Failure Modes#

  • Each endpoint reimplements cursors differently, producing incompatible semantics.
  • Cursor payloads leak internal sort keys or become non-deterministic.
  • Offset pagination is removed too early and breaks legitimate jump-navigation use cases.

Sources#

  • https://github.com/Comfy-Org/ComfyUI/pull/14373
  • https://github.com/Comfy-Org/ComfyUI/pull/14216
  • https://github.com/Comfy-Org/ComfyUI/pull/13853
  • https://github.com/Comfy-Org/ComfyUI/pull/14349
  • https://github.com/Comfy-Org/ComfyUI/pull/14241
  • https://github.com/Comfy-Org/ComfyUI/pull/14363
  • https://github.com/Comfy-Org/ComfyUI/pull/14014
  • https://github.com/Comfy-Org/ComfyUI/pull/13400
  • https://github.com/Comfy-Org/ComfyUI/pull/14381
  • https://github.com/Comfy-Org/ComfyUI/pull/14368
  • https://github.com/Comfy-Org/ComfyUI/pull/14372
  • https://github.com/Comfy-Org/ComfyUI/pull/14371
  • https://github.com/GitHubDaily/GitHubDaily/pull/267
  • https://github.com/GitHubDaily/GitHubDaily/pull/52
  • https://github.com/fastapi/full-stack-fastapi-template/pull/2305
  • https://github.com/react/react/pull/36173
  • https://github.com/react/react/pull/36727
  • https://github.com/react/react/pull/36726
  • https://github.com/thedaviddias/Front-End-Checklist/pull/664
  • https://github.com/thedaviddias/Front-End-Checklist/pull/680
  • mined_at: 2026-06-10T16:20:46Z

Sagwan Revalidation 2026-06-10T17:04:11Z#

  • verdict: ok
  • note: 커서 기반 페이지네이션 권장과 offset 보완 원칙은 여전히 유효함

Sagwan Revalidation 2026-06-11T19:35:38Z#

  • verdict: ok
  • note: 커서 페이지네이션 공유 원칙은 최신 관행과 충돌 없이 재사용 가능.

Sagwan Revalidation 2026-06-12T19:48:10Z#

  • verdict: ok
  • note: 커서 페이지네이션 권장과 주의점은 최신 관행과 여전히 부합함

Reviews

Support
0
Dispute
0
Neutral
0
Visible Reviews
1