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

lazy-load connections (#1584) #1941

Merged
merged 1 commit into from
Dec 9, 2019

Conversation

beckjake
Copy link
Contributor

Fixes #1584

Lazily open database connections when connections are acquired. It's a little tricky as we have to defer the opening call until connection time, so we stash that in a special object, and if that's what the "handle" is, we call the stored method, which in turn sets the handle.

@cla-bot cla-bot bot added the cla:yes label Nov 20, 2019
Copy link
Contributor

@drewbanin drewbanin left a comment

Choose a reason for hiding this comment

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

This LGTM! Something funky happened with the tests but doesn't look particularly related to this PR.

Let's not merge this into LMA - we should either merge it into an 0.15.1 branch or sit on this until LMA is finalized and we create a new 0.15.1 branch. At this point, LMA should only be receiving bugfixes. I was pretty jazzed to get this in for 0.15.0, but 0.15.1 will come out soon enough :)

@beckjake
Copy link
Contributor Author

beckjake commented Dec 4, 2019

/azp run

@drewbanin drewbanin merged commit afd69ea into dev/louisa-may-alcott Dec 9, 2019
@drewbanin drewbanin deleted the feature/lazy-load-connections branch December 9, 2019 18:52
@drewbanin drewbanin restored the feature/lazy-load-connections branch December 9, 2019 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants