I'm having some trouble limiting the results of a query on an index. I keep trying to impose a limit of 50 but I still get all the results that match the index query. Is Limit supported? or am I missing something?
Post.query(
index_name: "blog_id-posted_time-index",
key_condition_expression: "#H = :h AND #R < :r",
limit: 50,
expression_attribute_names: {
"#H" => "blog_id",
"#R" => "posted_time"
},
expression_attribute_values: {
":h" => blog_uuid,
":r" => timestamp
}
)
Where Post includes Aws::Record.
I'm having some trouble limiting the results of a query on an index. I keep trying to impose a limit of 50 but I still get all the results that match the index query. Is Limit supported? or am I missing something?
Where
PostincludesAws::Record.