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

Switching DynamoDB scan to FilterExpression #55

Merged
merged 2 commits into from
Sep 27, 2017
Merged

Switching DynamoDB scan to FilterExpression #55

merged 2 commits into from
Sep 27, 2017

Conversation

Glockenbeat
Copy link
Contributor

So far the DynamoDB implementation was using the ScanFilter implementation of DynamoDB to scan tables and find objects based on queries.

This produces issues though once you want to scan for nested attributes in an object as ScanFilter is only able to perform a full equality check on objects of type "Map".

Amazon instead recommends to use FilterExpressions instead and ScanFilter has been indicated to be "legacy".
Details on the differences are provided here: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ScanFilter.html

With this PR scanning for nested objects in a DynamoDB should be possible and - for future implementations - more flexible as it can be extended to support more types of search queries.

@adrai adrai merged commit 38bd1f2 into thenativeweb:master Sep 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants