-
Notifications
You must be signed in to change notification settings - Fork 69
Spring Framework example applications for balanced reader nodes #852
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
Conversation
@@ -52,6 +54,14 @@ public class ConfigurationProfilePresetCodes { | |||
public static final String I0 = "I0"; // Normal | |||
public static final String I1 = "I1"; // Aggressive | |||
|
|||
public static final String SF_D0 = "SF_D0"; // Normal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT:
what about SD0, or S_D0?
however, it would be nice to add an extra comment, to indicate whether S_D0 and D0 are related just with the addition of Spring Framework
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 31 the same file?
// Presets family SF_D, SF_E ,SF_F - internal connection pool; optimized for Spring Framework / Spring Boot
} | ||
|
||
@Override | ||
public void setupPristineAutoCommit(final boolean autoCommit) throws SQLException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you make this parameter optional and then only have one setupPristineAutoCommit() function instead of two that do almost the same thing except in one line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect that it's be hard to distinguish the case when the value is explicitly provided from the case when the value is not provided and default value is used. For example, for setupPristingCatalog(String catalog)
, null
is a legit value when it's provided.
f15df12
to
20fc1a3
Compare
examples/SpringHibernateBalancedReaderOneDataSourceExample/README.md
Outdated
Show resolved
Hide resolved
examples/SpringHibernateBalancedReaderOneDataSourceExample/README.md
Outdated
Show resolved
Hide resolved
examples/SpringHibernateBalancedReaderOneDataSourceExample/README.md
Outdated
Show resolved
Hide resolved
examples/SpringHibernateBalancedReaderOneDataSourceExample/README.md
Outdated
Show resolved
Hide resolved
examples/SpringHibernateBalancedReaderOneDataSourceExample/README.md
Outdated
Show resolved
Hide resolved
examples/SpringHibernateBalancedReaderTwoDataSourceExample/README.md
Outdated
Show resolved
Hide resolved
examples/SpringHibernateBalancedReaderTwoDataSourceExample/README.md
Outdated
Show resolved
Hide resolved
examples/SpringHibernateBalancedReaderTwoDataSourceExample/README.md
Outdated
Show resolved
Hide resolved
examples/SpringHibernateBalancedReaderTwoDataSourceExample/README.md
Outdated
Show resolved
Hide resolved
...pringHibernateBalancedReaderTwoDataSourceExample/src/main/java/example/data/BookService.java
Outdated
Show resolved
Hide resolved
examples/SpringHibernateBalancedReaderTwoDataSourceExample/README.md
Outdated
Show resolved
Hide resolved
examples/SpringHibernateBalancedReaderOneDataSourceExample/src/main/resources/application.yml
Outdated
Show resolved
Hide resolved
examples/SpringHibernateBalancedReaderOneDataSourceExample/README.md
Outdated
Show resolved
Hide resolved
examples/SpringHibernateBalancedReaderOneDataSourceExample/README.md
Outdated
Show resolved
Hide resolved
2eb594e
to
38e67b0
Compare
38e67b0
to
b90e454
Compare
Summary
Spring Framework example applications for balanced reader nodes
Description
SF_
optimized for Spring Framework applicationsAdditional Reviewers
@karenc-bq
@crystall-bitquill
@aaronchung-bitquill
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.