-
Notifications
You must be signed in to change notification settings - Fork 29
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
FMWK-451 Find by "not equals" doesn't return entities with nonexistent path #749
Conversation
agrgr
commented
May 29, 2024
•
edited
Loading
edited
- Support returning entities with nonexistent path for NOTEQ
@@ -64,6 +64,10 @@ public QueryEngine queryEngine(IAerospikeClient aerospikeClient, | |||
long queryMaxRecords = settings.getDataSettings().getQueryMaxRecords(); | |||
log.debug("AerospikeDataSettings.queryMaxRecords: {}", queryMaxRecords); | |||
queryEngine.setQueryMaxRecords(queryMaxRecords); | |||
if (!settings.getDataSettings().isWriteSortedMaps()) { | |||
log.debug("AerospikeDataSettings.writeSortedMaps is set to false, " + |
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.
I would even change the severity of this to INFO instead of DEBUG, since it is only printed once on initialization and is quite important
@@ -64,6 +64,10 @@ public QueryEngine queryEngine(IAerospikeClient aerospikeClient, | |||
long queryMaxRecords = settings.getDataSettings().getQueryMaxRecords(); | |||
log.debug("AerospikeDataSettings.queryMaxRecords: {}", queryMaxRecords); | |||
queryEngine.setQueryMaxRecords(queryMaxRecords); | |||
if (!settings.getDataSettings().isWriteSortedMaps()) { | |||
log.debug("AerospikeDataSettings.writeSortedMaps is set to false, " + | |||
"Maps and POJOs will be written as unsorted Maps (decrease in performance compared with sorted Maps)"); |
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.
Is performance decrease the only outcome? what happens if you compare a given sorted map to a non-sorted map in Aerospike db? it will return false if the order doesn't match right?
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.
Maps comparison is not supported for unsorted Maps, as far as I remember. So for older versions like 3.5.0 it was not supported
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.
So I would remove this comment about performance decrease, this isn't the only outcome it will affect comparison in general as well
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.
Updated the message