Skip to content

move the logic for immediate_transaction_mode to the physical operator#10739

Merged
Mytherin merged 2 commits intoduckdb:mainfrom
peterboncz:pb/immmedate_mode_only_in_non_autocommit
Feb 19, 2024
Merged

move the logic for immediate_transaction_mode to the physical operator#10739
Mytherin merged 2 commits intoduckdb:mainfrom
peterboncz:pb/immmedate_mode_only_in_non_autocommit

Conversation

@peterboncz
Copy link
Contributor

=> opening transactions in all databases happens during execution of the BEGIN TRANSACTION statement
rather than prior to the execution of that statement
=> for auto-commit queries, immediate_transaction_mode no longer has an effect
in auto-commit queries there is only one query happening at one time, so immediate mode is kinda superfluous then

Not having to deal with immediate mode for auto-commit queries (i.e. RPCs for any query) and later opening of the transactions (when the ClientContext is properly set) does help MotherDuck.

=> opening transactions in all databases happens during execution of the BEGIN TRANSACTION statement
   rather than prior to the execution of that statement
=> for auto-commit queries, immediate_transaction_mode no longer has an effect
   in auto-commit queries there is only one query happening at one time, so immediate mode is kinda superfluous then

Not having to deal with immediate mode for auto-commit queries (i.e. RPCs for any query) and later opening
of the transactions (when the ClientContext is properly set) does help MotherDuck.
@Mytherin
Copy link
Collaborator

Mytherin commented Feb 19, 2024

Thanks for the PR! Makes sense to me - although it should be noted immediate_transaction_mode is mostly a debug/test setting. Could you just have a look at the failing CI?

@github-actions github-actions bot marked this pull request as draft February 19, 2024 11:23
@peterboncz
Copy link
Contributor Author

peterboncz commented Feb 19, 2024

Thanks!

It is reassuring to know immediate_transaction_mode is considered mostly a debug/test feature. Though, it is a documented feature (https://duckdb.org/docs/sql/configuration.html -- users who read that might use it). This change will make sure auto-commit queries are not needlessly performance affected if it would get used.

@peterboncz peterboncz marked this pull request as ready for review February 19, 2024 11:28
@peterboncz
Copy link
Contributor Author

thanks for looking, I should have ran format-fix there, now done.

@Mytherin Mytherin merged commit afdc3f5 into duckdb:main Feb 19, 2024
@Mytherin
Copy link
Collaborator

Thanks!

krlmlr added a commit to duckdb/duckdb-r that referenced this pull request Mar 15, 2024
Merge pull request duckdb/duckdb#10658 from hannes/csvpathlength
Merge pull request duckdb/duckdb#10756 from Mytherin/preserveinsertionordermemory
Merge pull request duckdb/duckdb#10746 from samansmink/enable-azure-autoload
Merge pull request duckdb/duckdb#10747 from maiadegraaf/list_reverse_bug
Merge pull request duckdb/duckdb#10748 from taniabogatsch/capi-tests
Merge pull request duckdb/duckdb#10739 from peterboncz/pb/immmedate_mode_only_in_non_autocommit
Merge pull request duckdb/duckdb#10688 from Tmonster/union_exclude
Merge pull request duckdb/duckdb#10710 from samansmink/comment-on-column
Merge pull request duckdb/duckdb#10725 from hawkfish/fuzzer-preceding-frame
Merge pull request duckdb/duckdb#10723 from hawkfish/fuzzer-null-timestamp
Merge pull request duckdb/duckdb#10436 from taniabogatsch/map-fixes
Merge pull request duckdb/duckdb#10587 from kryonix/main
Merge pull request duckdb/duckdb#10738 from TinyTinni/fix-assert-in-iscntrl
Merge pull request duckdb/duckdb#10708 from carlopi/ci_fixes
Merge pull request duckdb/duckdb#10726 from hawkfish/fuzzer-to-weeks
Merge pull request duckdb/duckdb#10727 from hawkfish/fuzzer-window-bind
Merge pull request duckdb/duckdb#10733 from TinyTinni/remove-static-string
Merge pull request duckdb/duckdb#10715 from Tishj/python_tpch_regression_rework
Merge pull request duckdb/duckdb#10728 from hawkfish/fuzzer-argminmax-decimal
Merge pull request duckdb/duckdb#10717 from carlopi/fix_extension_deploy
Merge pull request duckdb/duckdb#10694 from Mytherin/castquerylocation
Merge pull request duckdb/duckdb#10448 from peteraisher/feature/use-assertThrows-for-jdbc-tests
Merge pull request duckdb/duckdb#10691 from Mytherin/issue10685
Merge pull request duckdb/duckdb#10684 from Mytherin/distincton
Merge pull request duckdb/duckdb#9539 from Tishj/timestamp_unit_to_tz
Merge pull request duckdb/duckdb#10341 from Tmonster/tpch_ingestion_benchmark
Merge pull request duckdb/duckdb#10689 from Mytherin/juliaversion
Merge pull request duckdb/duckdb#10669 from Mytherin/skippedtests
Merge pull request duckdb/duckdb#10679 from Tishj/reenable_window_rows_overflow
Merge pull request duckdb/duckdb#10672 from carlopi/wasm_extensions_ci
Merge pull request duckdb/duckdb#10660 from szarnyasg/update-storage-info-for-v0100
Merge pull request duckdb/duckdb#10643 from bleskes/duck_transaction_o11y
Merge pull request duckdb/duckdb#10654 from carlopi/fix_10548
Merge pull request duckdb/duckdb#10650 from hannes/noprintf
Merge pull request duckdb/duckdb#10649 from Mytherin/explicitenumnumbers
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.

2 participants