Skip to content

Commit

Permalink
Deferred messages are enabled by default. (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
onukristo authored Oct 28, 2024
1 parent 0c6c711 commit 98765f3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.33.0] - 2024-10-28

### Changed

- Messages are now deferred up to pre-commit hook by default.
This allows better database resource usage in most cases.

## [0.32.0] - 2024-10-11
### Added
- Added a postprocessor to the `TkmsKafkaProducerProvider` to allow features like tracing attached to the Kafka Producer.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.32.0
version=0.33.0
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,8 @@ public void afterPropertiesSet() {
*
* <p>The tradeoff is that higher application memory is required for transactions sending out huge number or/and huge messages.
* However, in practical applications, large transactions should be avoided anyway.
*
* <p>May default to true for Postgres in upcoming versions. Or even default to true in all situations.
*/
private boolean deferMessageRegistrationUntilCommit = false;
private boolean deferMessageRegistrationUntilCommit = true;

@Valid
@jakarta.validation.Valid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void validateDatabase() {
boolean engineIndependentStatsEnabled = isEngineIndependentStatsEnabled();
if (!engineIndependentStatsEnabled) {
problemNotifier.notify(null, NotificationType.ENGINE_INDEPENDENT_STATS_NOT_ENABLED, NotificationLevel.WARN, () ->
"Engine independent statics are not enabled.");
"Engine independent statistics are not enabled.");
}
} catch (DataAccessException dae) {
problemNotifier.notify(null, NotificationType.TABLE_INDEX_STATS_CHECK_ERROR, NotificationLevel.ERROR, () ->
Expand Down

0 comments on commit 98765f3

Please sign in to comment.