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

feat: GH-260 support writeSortedMaps property #261

Merged
merged 1 commit into from
Oct 15, 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
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ private AerospikeDataSettings configureDataSettings(AerospikeDataSettings dataSe
AerospikeDataProperties aerospikeDataProperties) {
dataSettings.setScansEnabled(aerospikeDataProperties.isScansEnabled());
dataSettings.setCreateIndexesOnStartup(aerospikeDataProperties.isCreateIndexesOnStartup());
dataSettings.setWriteSortedMaps(aerospikeDataProperties.isWriteSortedMaps());
return dataSettings;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ private AerospikeDataSettings configureDataSettings(AerospikeDataSettings dataSe
AerospikeDataProperties aerospikeDataProperties) {
dataSettings.setScansEnabled(aerospikeDataProperties.isScansEnabled());
dataSettings.setCreateIndexesOnStartup(aerospikeDataProperties.isCreateIndexesOnStartup());
dataSettings.setWriteSortedMaps(aerospikeDataProperties.isWriteSortedMaps());
return dataSettings;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,11 @@ public class AerospikeDataProperties {
* true - preserve original type if supported
*/
private boolean keepOriginalKeyTypes = false;

/**
* Define how Maps and POJOs are written: true - as sorted maps (TreeMaps, default), false - as unsorted (HashMaps)
* Writing unsorted maps (false) degrades performance of Map-related operations and does not allow comparing Maps,
* strongly recommended not to use except during upgrade from older versions of Spring Data Aerospike (if required)
*/
private boolean writeSortedMaps = true;
}
Loading