Ilya Priven

Results 164 comments of Ilya Priven

In on-demand mode, you still pay per request, so capping how many "requests" you'd spend on a query might make sense in some cases.

> By setting limit=1 I got the correct result (0 items), but it took a very long time (~25 seconds instead a small fraction of a second) since internally pynamodb...

@chriskck It's a reasonable suggestion, but there's complexity involved. I'll explain. For an existing table, creating a GSI can trigger a long backfill during which the GSI is naturally unavailable....

> I feel this increases API consistency across all the table/model related classes (the Index is, after all, just another Model/Table albeit one where their records are 'slaves' to the...

create_table currently creates the indices. Not having it do that would be a breaking change.

@tedivm At this point I'd recommend provisioning the indexes through either AWS Console, awscli, Cloudformation, Terraform etc.

Thanks @theFong. Generally speaking I agree it would be nice to add `Model.update_table` as this seems to be a common ask.

Looks like your model doesn't have a hash key?

Mind sharing some model definitions?

In DynamoDB those are called "tables". Each model has a `Meta` class with a `table_name` property.