Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to ORDER BY in DAO #476

Closed
Nohus opened this issue Jan 26, 2019 · 0 comments
Closed

No way to ORDER BY in DAO #476

Nohus opened this issue Jan 26, 2019 · 0 comments

Comments

@Nohus
Copy link

Nohus commented Jan 26, 2019

The DAO API has no way to order the results (as when using ORDER BY in SQL). While results can be sorted client side, this is impractical when trying to limit the number of results. Fetching a million rows just to sort them and take the first 10 isn't workable. While the API has a limit method, it's not useful without a way to order them.

Currently the workaround is to use the DSL and then wrapRows() back into DAO.

Tapac added a commit that referenced this issue Jan 31, 2019
@Tapac Tapac closed this as completed Feb 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants