-
Notifications
You must be signed in to change notification settings - Fork 31
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
how to use Query hint #125
Comments
These SQL statements are hardwired into Lines 119 to 120 in eba1d54
and Lines 150 to 151 in eba1d54
One simple solution would be to make these SQL statements configurable via properties: @ddaeyongee Thoughts? |
@cer [file path] [as-is] [fixed] and One more question, please check if it is possible to add OracleDialect to "package io.eventuate.sql.dialect". For microservices currently using oracle RDBMS, I create and use it myself. I always appreciate your active support. |
hi. I'm Taeyong.
I have one question. I would like to add a query hint to improve performance when processing large volumes.
path :
eventuate-local-java-cdc-connector-polling/src/main/java/io/eventuate/local/polling/PollingDao.java
existing query
String markEventsAsReadQuery = String.format("UPDATE %s SET %s = 1 WHERE %s in (:ids)",
handler.getQualifiedTable(), PUBLISHED_FIELD, pk);
Query hint to add :
String markEventsAsReadQuery = String.format("UPDATE ### /*+ index_rs(handler.getQualifiedTable()) */ %s SET %s = 1 WHERE %s in (:ids)",
handler.getQualifiedTable(), PUBLISHED_FIELD, pk);
Or is there another way without directly modifying the query in 'String.format'
thank you !
The text was updated successfully, but these errors were encountered: