-
Notifications
You must be signed in to change notification settings - Fork 75
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
FEAT / Added config to disable attempt to update before insert in cache #1787
Conversation
[jans-core] Kudos, SonarCloud Quality Gate passed! |
@@ -82,6 +82,9 @@ public void create() { | |||
// CouchbaseEntryManagerFactory.PERSISTENCE_TYPE | |||
skipRemoveBeforePut = "couchbase".equals(persistenceType); | |||
attemptUpdateBeforeInsert = "sql".equals(persistenceType); | |||
if (cacheConfiguration.getNativePersistenceConfiguration().isDisableAttemptUpdateBeforeInsert()) { |
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.
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.
Actually, I talked with him before doing these changes, but let's see Yure's feedback in case I misunderstood something.
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.
yes, for #207 we already updated code. But this new property will allow us to check at runtime which approach is better for specific DB MySQL/Postgress/etc
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.
Agreed, yes, it can be useful.
@@ -82,6 +82,9 @@ public void create() { | |||
// CouchbaseEntryManagerFactory.PERSISTENCE_TYPE | |||
skipRemoveBeforePut = "couchbase".equals(persistenceType); | |||
attemptUpdateBeforeInsert = "sql".equals(persistenceType); | |||
if (cacheConfiguration.getNativePersistenceConfiguration().isDisableAttemptUpdateBeforeInsert()) { |
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.
yes, for #207 we already updated code. But this new property will allow us to check at runtime which approach is better for specific DB MySQL/Postgress/etc
Description
Added config to disable attempt to update before insert in cache.
Target issue
#207