We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
createdBy-itemType-index is getting used in a single API call which just uses node id as the primary information to be extracted from the GSI.
createdBy-itemType-index
Code Snippet :
fun getAllNodesWithUserID(userID: String): List<String> { val expressionAttributeValues: MutableMap<String, AttributeValue> = HashMap() expressionAttributeValues[":createdBy"] = AttributeValue(userID) expressionAttributeValues[":itemType"] = AttributeValue("Node") expressionAttributeValues[":deleted"] = AttributeValue().withN("1") return DynamoDBQueryExpression<Node>().queryWithIndex( index = "createdBy-itemType-index", keyConditionExpression = "createdBy = :createdBy and itemType = :itemType", projectionExpression = "PK", expressionAttributeValues = expressionAttributeValues, filterExpression = "deleted <> :deleted" ).let { it -> mapper.query(Node::class.java, it, dynamoDBMapperConfig).map { node -> node.id } } }
So, we don't need every attribute in the GSI.
The text was updated successfully, but these errors were encountered:
mamakancha
No branches or pull requests
createdBy-itemType-index
is getting used in a single API call which just uses node id as the primary information to be extracted from the GSI.Code Snippet :
So, we don't need every attribute in the GSI.
The text was updated successfully, but these errors were encountered: