-
Notifications
You must be signed in to change notification settings - Fork 853
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
DynamoDB enhanced client - Add "Select" in QueryEnhancedRequest #2083
Comments
@felixchin to confirm, this is mostly to obtain the COUNT number? Because you can specify the attributes to be retrieved from the database in the |
Any updates on this ? |
"return only the count" functionality would be useful. |
is this available ? |
Any update on this issue? |
Is there a workaround for this? |
Have feature to implement? |
Any workaround found ? |
No updates here other than this is in our backlog. As a reminder, please add a 👍 reaction in the original description of the issue to show interest, it helps us prioritizing all the feature requests we have. |
…4e694ecbd Pull request: release <- staging/a646a935-4c68-41d6-9394-be94e694ecbd
Sad it has been years and this issue has not been resolved yet. There are two "workarounds":
var count = 0
index.query(
QueryEnhancedRequest.builder()
.queryConditional(QueryConditional.keyEqualTo(key))
.attributesToProject("COUNT")
.build(),
).subscribe {
count += it.items()?.size ?: 0
}.await() |
Sorry for the late update: "count" was released in SDK version
|
This issue is now closed. Comments on closed issues are hard for our team to see. |
Reopening because while the SDK supports returning the The only workarounds available at this time are to use an execution interceptor that adds the setting to the request, or to use the low-level client to retrieve the count. |
The most efficient option is probably to use The DynamoDB service team is tracking internally the feature request to add the rest of the |
"Select" is now supported in QueryEnhancedRequest (released in version |
This issue is now closed. Comments on closed issues are hard for our team to see. |
There is no "Select" in QueryEnhancedRequest Builder.
Describe the Feature
Query the Dynamodb and return only the count.
Is your Feature Request related to a problem?
No
Proposed Solution
QueryEnhancedRequest.builder().select(Select select)
The select should has those enums
Describe alternatives you've considered
Just use QueryRequest instead of QueryEnhancedRequest
Additional Context
Your Environment
The text was updated successfully, but these errors were encountered: