Skip to content
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

Expose option(s) to skip create/verifiy during bind #83

Closed
numberoverzero opened this issue Apr 19, 2017 · 0 comments
Closed

Expose option(s) to skip create/verifiy during bind #83

numberoverzero opened this issue Apr 19, 2017 · 0 comments
Assignees
Milestone

Comments

@numberoverzero
Copy link
Owner

Model creation/verification can be expensive, and even run into throttling on CreateTable and DescribeTable with enough concurrent model binding. This is a potential issue now that AWS Lambda supports Python 3.6 and users may bind models in a lambda function that runs thousands of times.

An option(s) to skip DynamoDB calls during bind improves lambda setup and reduces the risk of throttling.

A few ideas:

  • Single flag named so that calling code is explicit about the disabled step: skip_table_setup=False or maybe local=False, or local_bind=False. Leaning towards local as a kwarg only so that it's concise but has to be explicitly specified: no ambiguous positional boolean eg. bind(MyModel, True).
  • Less preferred: individual options for fine-grained control skip_verify=False, skip_create=False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant