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

Configurable Session Class #91

Merged
merged 4 commits into from
Nov 23, 2015
Merged

Conversation

joshowen
Copy link
Contributor

This is very useful for overriding the size of the Connection Pool and other Session fields.

Josh Owen added 4 commits September 30, 2015 15:51
# Conflicts:
#	.gitignore
#	pynamodb/connection/base.py
#	pynamodb/models.py
#	pynamodb/tests/test_model.py
#	pynamodb/tests/test_table_connection.py
#	pynamodb/throttle.py
This is useful for tweaking the ConnectionPool size
@joshowen joshowen mentioned this pull request Nov 19, 2015
6 tasks
if session_cls:
self.session_cls = session_cls
else:
self.session_cls = requests.Session
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason not to default to this in the param?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see, None can be passed

@danielhochman
Copy link
Contributor

I was going to do this myself! +1 from me

@joshowen
Copy link
Contributor Author

Any other optimizations you can think of to the session other than increasing the connection pool size?

@danielhochman
Copy link
Contributor

I'd have to think on that a bit more. We're actually standing up an egress proxy local to each application server to handle connections to external services. I'll let you know what we learn from that in a couple of weeks.

@joshowen
Copy link
Contributor Author

@jlafon any thoughts

jlafon added a commit that referenced this pull request Nov 23, 2015
@jlafon jlafon merged commit 7b44eb9 into pynamodb:devel Nov 23, 2015
@joshowen
Copy link
Contributor Author

joshowen commented Jan 2, 2016

@danielhochman hows that egress proxy working?

@danielhochman danielhochman mentioned this pull request Apr 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants