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

Add ability to provide oracle hints #453

Open
jdafda opened this issue Feb 17, 2022 · 2 comments
Open

Add ability to provide oracle hints #453

jdafda opened this issue Feb 17, 2022 · 2 comments

Comments

@jdafda
Copy link

jdafda commented Feb 17, 2022

Oracle has optimizer hint feature on select statements , add ability to provide this hits here is an example of PARALLEL hint

SELECT /*+ PARALLEL(4) */ customers.cust_first_name, customers.cust_last_name, 
  MAX(QUANTITY_SOLD), AVG(QUANTITY_SOLD)
FROM sales, customers
WHERE sales.cust_id=customers.cust_id
GROUP BY customers.cust_first_name, customers.cust_last_name;
@jdafda jdafda changed the title Added ability to provide oracle hints Add ability to provide oracle hints Feb 17, 2022
@jeffgbutler
Copy link
Member

There's not an easy way to do this now.

There is a test with an example of modifying the generated SQL before it is executed. It's not pretty, but it could work. You can see it here: https://github.com/mybatis/mybatis-dynamic-sql/tree/master/src/test/java/examples/paging

I'm working on an idea to make this kind of thing easier in the future with more defined callbacks.

@mklinkj
Copy link

mklinkj commented Mar 14, 2023

hello.

I made an example.

thank you have a good day.

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

No branches or pull requests

3 participants