You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem is, it's not a generic solution to filtering which this package aims to provide. This is due to the way DynamoDB query works, underneath a listModel graphQL operation. If you provide a filter, and there are more than the default 10 items, you'll have to recursively paginate until you find something or reach the end of the table. This isn't how DynamoDB was designed.
Another solution would be to document and leverage ElasticSearch to allow easy generic searching. The DX for this would be much better. The cons would be introducing another service, potentially increasing usage costs and is just using a bandaid to fix something DynamoDB wasn't built to do.
I see two options here:
Document use cases of filtering with @key directive. This will make filtering a case-by-case endeavour, putting more onus on the developer than the package to do this right.
Encourage the use of @searchable directive for filtering models to avoid DynamoDB pain.
Provide both options, letting the developer weigh up cost of service / easy DX.
The text was updated successfully, but these errors were encountered:
All sorts of data access patterns are supported with DynamoDB given the right schema.
Problem is, it's not a generic solution to filtering which this package aims to provide. This is due to the way DynamoDB query works, underneath a
listModel
graphQL operation. If you provide a filter, and there are more than the default 10 items, you'll have to recursively paginate until you find something or reach the end of the table. This isn't how DynamoDB was designed.Another solution would be to document and leverage ElasticSearch to allow easy generic searching. The DX for this would be much better. The cons would be introducing another service, potentially increasing usage costs and is just using a bandaid to fix something DynamoDB wasn't built to do.
I see two options here:
The text was updated successfully, but these errors were encountered: