-
Notifications
You must be signed in to change notification settings - Fork 131
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
chunk
fails if there's query scope
#101
Comments
Could you update the title to: chunk fails if there's query scope |
zoul0813
added a commit
to zoul0813/laravel-dynamodb
that referenced
this issue
Oct 23, 2017
…dly, eventually failing after 300 filter expressions have been applied.
zoul0813
added a commit
to zoul0813/laravel-dynamodb
that referenced
this issue
Oct 23, 2017
…y, stacking any model scopes until chunk eventually fails when >300 filter expressions exist on large data sets.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chunk
callsgetAll
in a loop, which is currently callingapplyScopes
. Sincechunk
does not create a new query with each loop, the previous scope functions are appended to the current query. With a basic model that has a single scope attached,chunk
fails on the 301st call as FilterExpression has a limit of 300 expressions.A "quick fix" for this is to add an additional parameter to
getAll
that determines whether or not to callapplyScopes
.Then modify
chunk
The text was updated successfully, but these errors were encountered: