diff --git a/pom.xml b/pom.xml index 390efdbf8..dfe4eb4ec 100644 --- a/pom.xml +++ b/pom.xml @@ -28,7 +28,7 @@ 3.3.0 3.3.0 3.3.0 - 4.1.1 + 4.1.2 3.3.0 1.6 7.2.1 diff --git a/src/main/asciidoc/reference/configuration.adoc b/src/main/asciidoc/reference/configuration.adoc index bf0d7b8db..fedfbd07d 100644 --- a/src/main/asciidoc/reference/configuration.adoc +++ b/src/main/asciidoc/reference/configuration.adoc @@ -407,7 +407,8 @@ spring-data-aerospike.data.writeSortedMaps=true Define how Maps and POJOs are written: `true` - as sorted maps (`TreeMap`, default), `false` - as unsorted (`HashMap`). -Writing as unsorted maps (`false`) degrades performance of Map-related operations, to be used only during upgrade from older versions of Spring Data Aerospike. +Writing as unsorted maps (`false`) degrades performance of Map-related operations and does not allow comparing Maps, +so it can be used only during upgrade from older versions of Spring Data Aerospike. NOTE: Another way of defining the parameter is overriding the `configureDataSettings()` method. It has precedence over reading from application.properties. Here is an example: diff --git a/src/main/java/org/springframework/data/aerospike/config/AbstractAerospikeDataConfiguration.java b/src/main/java/org/springframework/data/aerospike/config/AbstractAerospikeDataConfiguration.java index f6e4828ff..c1377c279 100644 --- a/src/main/java/org/springframework/data/aerospike/config/AbstractAerospikeDataConfiguration.java +++ b/src/main/java/org/springframework/data/aerospike/config/AbstractAerospikeDataConfiguration.java @@ -59,10 +59,10 @@ public QueryEngine queryEngine(IAerospikeClient aerospikeClient, QueryEngine queryEngine = new QueryEngine(aerospikeClient, statementBuilder, filterExpressionsBuilder, settings.getDataSettings()); boolean scansEnabled = settings.getDataSettings().isScansEnabled(); - log.debug("AerospikeDataSettings.scansEnabled: {}", scansEnabled); + log.info("AerospikeDataSettings.scansEnabled: {}", scansEnabled); queryEngine.setScansEnabled(scansEnabled); long queryMaxRecords = settings.getDataSettings().getQueryMaxRecords(); - log.debug("AerospikeDataSettings.queryMaxRecords: {}", queryMaxRecords); + log.info("AerospikeDataSettings.queryMaxRecords: {}", queryMaxRecords); queryEngine.setQueryMaxRecords(queryMaxRecords); return queryEngine; } @@ -73,7 +73,7 @@ public AerospikePersistenceEntityIndexCreator aerospikePersistenceEntityIndexCre AerospikeIndexResolver aerospikeIndexResolver, ObjectProvider template, AerospikeSettings settings) { boolean indexesOnStartup = settings.getDataSettings().isCreateIndexesOnStartup(); - log.debug("AerospikeDataSettings.indexesOnStartup: {}", indexesOnStartup); + log.info("AerospikeDataSettings.indexesOnStartup: {}", indexesOnStartup); return new AerospikePersistenceEntityIndexCreator(aerospikeMappingContext, indexesOnStartup, aerospikeIndexResolver, template); } @@ -86,7 +86,7 @@ public IndexRefresher indexRefresher(IAerospikeClient aerospikeClient, IndexesCa refresher.refreshIndexes(); int refreshFrequency = settings.getDataSettings().getIndexCacheRefreshSeconds(); processCacheRefreshFrequency(refreshFrequency, refresher); - log.debug("AerospikeDataSettings.indexCacheRefreshSeconds: {}", refreshFrequency); + log.info("AerospikeDataSettings.indexCacheRefreshSeconds: {}", refreshFrequency); return refresher; } diff --git a/src/main/java/org/springframework/data/aerospike/config/AbstractReactiveAerospikeDataConfiguration.java b/src/main/java/org/springframework/data/aerospike/config/AbstractReactiveAerospikeDataConfiguration.java index 7477dfdf2..6c3bdd484 100644 --- a/src/main/java/org/springframework/data/aerospike/config/AbstractReactiveAerospikeDataConfiguration.java +++ b/src/main/java/org/springframework/data/aerospike/config/AbstractReactiveAerospikeDataConfiguration.java @@ -71,9 +71,9 @@ public ReactorQueryEngine reactorQueryEngine(IAerospikeReactorClient aerospikeRe filterExpressionsBuilder, settings.getDataSettings()); boolean scansEnabled = settings.getDataSettings().isScansEnabled(); queryEngine.setScansEnabled(scansEnabled); - log.debug("AerospikeDataSettings.scansEnabled: {}", scansEnabled); + log.info("AerospikeDataSettings.scansEnabled: {}", scansEnabled); long queryMaxRecords = settings.getDataSettings().getQueryMaxRecords(); - log.debug("AerospikeDataSettings.queryMaxRecords: {}", queryMaxRecords); + log.info("AerospikeDataSettings.queryMaxRecords: {}", queryMaxRecords); queryEngine.setQueryMaxRecords(queryMaxRecords); return queryEngine; } @@ -110,7 +110,7 @@ public ReactiveAerospikePersistenceEntityIndexCreator aerospikePersistenceEntity AerospikeIndexResolver aerospikeIndexResolver, ObjectProvider template, AerospikeSettings settings) { boolean indexesOnStartup = settings.getDataSettings().isCreateIndexesOnStartup(); - log.debug("AerospikeDataSettings.indexesOnStartup: {}", indexesOnStartup); + log.info("AerospikeDataSettings.indexesOnStartup: {}", indexesOnStartup); return new ReactiveAerospikePersistenceEntityIndexCreator(aerospikeMappingContext, indexesOnStartup, aerospikeIndexResolver, template); }