Skip to content

Is query limit supported? #39

Description

@imack

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions