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
JPAQueryFactory does not support query hint indexes. #3621
Comments
Well, if you are using hibernate, sadly you are out of luck. But, if using eclipse links, you can https://eclipse.dev/eclipselink/api/2.6/org/eclipse/persistence/config/QueryHints.html#HINT I know no alternatives for hibernate, sorry. You might want to try it on querydsl 5.1 |
@velo Could you enable "issues" for your fork? I would like to create one issue (regression) for querydsl-apt module. |
Ops, done! |
Why the new feature should be added
However, there are requirements.
An explicit INDEX hint is required within the SELECT query.
Since there is no function to set query index hint, we are using SQLQueryFactory to force mismatched tables to match inefficiently.
I would be really happy if there was a function to insert /*+ INDEX() */ right after the SELECT query.
It would be nice to add an index hint using JPAQuery's setHint() method.
How the new feature should work
AbstractCommonQueryContract 클래스의 applyHint(String hintName, Object value) 메소드에 enum 추가
HINT_DATABASE:
applyDatabaseHint();
MutableQueryOptions.addDatabaseHint(String hint)
The text was updated successfully, but these errors were encountered: