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

FMWK-451 Find by "not equals" doesn't return entities with nonexistent path #749

Merged
merged 4 commits into from
May 29, 2024

Conversation

agrgr
Copy link

@agrgr agrgr commented May 29, 2024

  • Support returning entities with nonexistent path for NOTEQ

@agrgr agrgr added the bug label May 29, 2024
@agrgr agrgr requested review from roimenashe and reugn May 29, 2024 09:26
@agrgr agrgr marked this pull request as ready for review May 29, 2024 09:51
@@ -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, " +
Copy link
Member

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)");
Copy link
Member

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?

Copy link
Author

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

Copy link
Member

@roimenashe roimenashe May 29, 2024

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the message

@agrgr agrgr merged commit 3ff86af into main May 29, 2024
7 checks passed
@agrgr agrgr deleted the FMWK-451-NOTEQ-nonexistent-path branch May 29, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants