-
Notifications
You must be signed in to change notification settings - Fork 202
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
Pagination with JOINs for repository methods #3174
Conversation
data-model/src/main/java/io/micronaut/data/model/runtime/StoredQuery.java
Outdated
Show resolved
Hide resolved
data-processor/src/test/groovy/io/micronaut/data/processor/visitors/FindSpec.groovy
Show resolved
Hide resolved
…dQuery.java Co-authored-by: Radovan Radic <radicr@gmail.com>
does it work for cursor pagination? |
I have added a test. It looks like it's working, but I found a scenario that doesn't work, which is not related to my changes. When we reach the end and find a page that returns nothing, it's impossible to go back. Any idea @andriy-dmytruk? |
|
(In future version we can optimize it)
SELECT ... JOIN (Select ... ) as filtered WHERE filtered.id = ID
, but our criteria don't support this kind of query yet