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

Deferred messages are enabled by default. #94

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading