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

use cached_property to reuse get_connections value in mssql provider #39575

Merged

Conversation

rawwar
Copy link
Collaborator

@rawwar rawwar commented May 12, 2024

Related: #39572

I was working on #39572 and had to call get_connections and realised its been called multiple times in several functions. So, I thought it better to refactor and make it a cached_property and reuse it

@rawwar rawwar changed the title use cached_property to reuse get_connections value use cached_property to reuse get_connections value in mssql provider May 12, 2024
@rawwar rawwar closed this May 12, 2024
@rawwar rawwar reopened this May 12, 2024
@rawwar rawwar marked this pull request as ready for review May 12, 2024 10:47
@rawwar rawwar requested review from Taragolis and potiuk May 12, 2024 10:47
Copy link
Contributor

@romsharon98 romsharon98 left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@potiuk potiuk merged commit 9e61daf into apache:main May 12, 2024
77 of 78 checks passed
@rawwar rawwar deleted the kalyan/connections/mssql/make-conn-property branch May 13, 2024 00:46
pateash pushed a commit to pateash/airflow that referenced this pull request May 13, 2024
…vider (apache#39575)

* use self.conn instead of calling get_connections

* rename property
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Jul 26, 2024
…vider (apache#39575)

* use self.conn instead of calling get_connections

* rename property
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants