-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Always use the executemany method when inserting rows in DbApiHook as it's way much faster #38715
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
Merged
potiuk
merged 69 commits into
apache:main
from
dabla:feature/sql-performance-enhancement-insertmany
Apr 12, 2024
Merged
Changes from 2 commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
0312a8f
refactor: Always use the fast_executemany method when inserting rows …
davidblain-infrabel 219bd43
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 64b7a85
refactor: Only set fast_executemany option if explicitly defined in c…
davidblain-infrabel c183404
refactor: Fixed tests related to insert_rows for Postgres
davidblain-infrabel bc3895e
refactor: Fixed assertions on executemany for insert rows in Postgres…
davidblain-infrabel 3af4c7c
refactor: Deprecated bulk_insert_rows in Teradata as the insert_rows …
davidblain-infrabel ef36ed0
refactor: Removed duplicate calls object definition in test_bulk_inse…
davidblain-infrabel e222af5
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla d0fd763
refactor: Use DeprecationWarning instead
davidblain-infrabel 4dbdff5
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 42b7ab7
refactor: Use AirflowProviderDeprecationWarning instead
davidblain-infrabel 58d3cfa
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 04d0a47
refactor: Ignore deprecation warnings for TestTeradataHook
davidblain-infrabel 6b0ce23
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 1cb5e5e
refactor: Re-added check on rows parameter for bulk_insert_rows metho…
davidblain-infrabel 57318a9
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 4831868
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 6bb724d
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 35580fe
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 3a9fcbf
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 1e577c7
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 96f5019
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla b64351f
refactor: Fixed logging statement regarding total rows in insert_rows…
davidblain-infrabel 92775af
refactor: Changed string values back to int's but adapted expected du…
davidblain-infrabel 1369944
refactor: Added deprecation warning for executemany parameter in inse…
davidblain-infrabel ac185d2
refactor: Reformatted mocked call for test_bulk_insert_rows_with_comm…
davidblain-infrabel 7216c3e
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla f8d8d92
refactor: Added explicit fast_executemany parameter to constructor of…
davidblain-infrabel fee8e01
refactor: Reformatted second mocked call in test_bulk_insert_rows_wit…
davidblain-infrabel 39fe36b
refactor: Re-added executemany param to insert_rows method
davidblain-infrabel 7b65015
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 5634360
refactor: Put executemany between single quote to avoid spelling chec…
davidblain-infrabel cdfeaf2
Revert "refactor: Added deprecation warning for executemany parameter…
davidblain-infrabel 934239a
refactor: Still support original implementation without executemany i…
davidblain-infrabel b3ad6a6
refactor: Reformatted insert_rows method in DbApiHook
davidblain-infrabel 49e923c
fix: Fixed insert_rows method in DbApiHook and extracted common _seri…
davidblain-infrabel 4e6df4e
fix: Re-added check on fast_executemany in insert_rows method
davidblain-infrabel a216fe9
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 82ca138
refactor: Put docstring of _closing_supporting_autocommit method on o…
davidblain-infrabel be17da1
refactor: Added autocommit parameter which is False by default to _cl…
davidblain-infrabel 8e8b692
refactor: Added supports_executemany class variable which allows to s…
davidblain-infrabel 4d6d240
refactor: test_insert_rows should use executemany for Postgres
davidblain-infrabel 564b5ef
refactor: Deprecation warning for test_insert_rows_replace_executeman…
davidblain-infrabel e6dd1a5
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 215d719
refactor: Deprecation warning for test_insert_rows_executemany should…
davidblain-infrabel 45b3a94
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 161f3d2
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 8566316
refactor: Removed fast_executemany
davidblain-infrabel 74e0659
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla ec16892
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 65d2ae7
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 4590409
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla f6fc1be
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 4b9e47b
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla d2b0629
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 5580451
refactor: Removed unused fast_executemany param from DbApiHook constr…
davidblain-infrabel b242539
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 0250d49
refactor: Removed placeholder attribute from DbApiHook interface
davidblain-infrabel e17aca5
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 15f76dc
Revert unnecessary format change
uranusjr 7814ee3
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 65f0518
docs: Updated docstring for excutemany parameter in insert_rows method
dabla 8850f82
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 3b029e1
refactor: Renamed _closing_supporting_autocommit method to _create_au…
davidblain-infrabel 85536d9
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla b9ccfc1
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla 1d295c0
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla ad65b9b
Use comprehension instead of map
uranusjr 1c58f99
Merge branch 'main' into feature/sql-performance-enhancement-insertmany
dabla File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.