Skip to content

Commit

Permalink
set ImmediateTx = true for pure selects (#4377)
Browse files Browse the repository at this point in the history
  • Loading branch information
qrort authored May 7, 2024
1 parent 2452381 commit dd360d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydb/core/kqp/executer_actor/kqp_data_executer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,7 @@ class TKqpDataExecuter : public TKqpExecuterBase<TKqpDataExecuter, EExecType::Da
YQL_ENSURE(evWriteTxs.empty() || datashardTxs.empty());

// Single-shard datashard transactions are always immediate
ImmediateTx = (datashardTxs.size() + evWriteTxs.size() + Request.TopicOperations.GetSize() + sourceScanPartitionsCount) == 1
ImmediateTx = (datashardTxs.size() + evWriteTxs.size() + Request.TopicOperations.GetSize() + sourceScanPartitionsCount) <= 1
&& !UnknownAffectedShardCount
&& evWriteTxs.empty()
&& !HasOlapTable;
Expand Down

0 comments on commit dd360d6

Please sign in to comment.