Skip to content

fix: retain direct ordering for compatible distinct pagination - #268

Merged
zachdaniel merged 1 commit into
ash-project:mainfrom
Alt-iOS:fix/distinct-pagination-order
Oct 9, 2026
Merged

zachdaniel merged 1 commit into
ash-project:mainfrom
Alt-iOS:fix/distinct-pagination-order

Conversation

@Alt-iOS

@Alt-iOS Alt-iOS commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Check whether DISTINCT ON’s ordering requirements are compatible with the requested ORDER BY. If they are, the caller can use a simpler query that preserves the requested sort and may let PostgreSQL apply LIMIT more efficiently. Otherwise, it returns false so the caller can use the fallback

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

@zachdaniel

Copy link
Copy Markdown
Contributor

🚀 Thank you for your contribution! 🚀

@zachdaniel
zachdaniel merged commit 5b8ac34 into ash-project:main Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants