Uh oh!
There was an error while loading. Please reload this page.
Generalize caching of connection in DbApiHook to improve performance - #40751
Conversation
…DbApiHook and added cached connection_extra property
dabla
commented
Jul 13, 2024
I'm just wondering if I have to bump to version of the common sql provider? As there will be a change there, it should become like 1.15.0 as @potiuk suggested in the other PR 40665. Has this to be done manually (I don't think so but could), I've also read the docs here but didn't find the answer to that. |
…gresHook and ElasticSearchHook and added _placeholder and _connection property in sql.pyi
dabla
commented
Jul 15, 2024
One test failing due to: AttributeError: type object 'SkipDBTestsSession' has no attribute 'get_bind' |
dabla
commented
Jul 15, 2024
Seems my other PR are also having the same issue |
eladkal
commented
Aug 25, 2024
Looks like we need now to set min version for |
eladkal
commented
Sep 1, 2024
@dabla can you make the needed change so we can merge this for next release? |
dabla
commented
Sep 1, 2024
Will do that tomorrow first thing in the morning |
potiuk
commented
Sep 3, 2024
Hey @dabla -> you need to also upgrade The build is smart enough (or it should be at least) to figure out that in this case the |
Aha, that's why the image build is failing, thanks for letting me know @potiuk, will do that |
dabla
commented
Sep 3, 2024
@potiuk What about the release notes and stuff for common sql, as when I bump in provider.yaml, do I also need to bump that version init.py file and release notes? Or is there a (breeze) command to bump the version of a provider? Didn't directly find it in docs but that's probably my bad. |
potiuk
commented
Sep 3, 2024
Just add version in the provider.yaml. all the rest should happen by pre-commits You might want to add a line at top of changelog explaining better what was added in common.sql (but this is usually only done for breaking changes - generally commit messages are added to the changelog when release manager prepares the release. |
dabla
commented
Sep 3, 2024
Nice, ok thank you @potiuk , wanted to make sure before bumping the version, will add a comment line in top of file explaining what was changed, always better to document anyway and good for the changelog history. |
potiuk
commented
Sep 3, 2024
Not sure if it will work with out release management preparation automation if you added the |
dabla
commented
Sep 3, 2024
If it causes issues, I can revert it as I added this in a dedicated commit. |
potiuk
commented
Sep 3, 2024
We will see and RM can modify it on-line. How it works is that it simply updates the changelog locally and RM commits it, so if it causes issues, it can be manually modified before running the script and classifying the issues. Or we can implement a fix to allow that in the future. |
Added a cached connection property in DbApiHook to improve performance (it already existed for MySQLHook and MSSQLHook), also move the duplicated connection_extra_lower property from JdbcHook and OdbcHook to DbApiHook. This enchancement will fix the unnecessary connection lookups for Jdbc and Odbc driver properties.
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in newsfragments.