Skip to content

Conversation

@vgvoleg
Copy link
Collaborator

@vgvoleg vgvoleg commented Oct 31, 2024

No description provided.


class _IsolationSettings(NamedTuple):
ydb_mode: ydb.BaseQueryTxMode
ydb_mode: ydb.BaseQueryTxMode | None
Copy link
Collaborator

Choose a reason for hiding this comment

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

nitpick: It is always not None

self, query: str, seq_of_parameters: Sequence[ParametersType]
) -> None:
for parameters in seq_of_parameters:
self.execute(query, parameters)
Copy link
Collaborator

Choose a reason for hiding this comment

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

question (non-blocking): Could we optimize this using preparation of query or just concat queries together?

Copy link
Collaborator

Choose a reason for hiding this comment

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

suggestion: commit and rollback could raise exception in case of TLI or BrokenSession. I think we should wrap them to interface exceptions

@vgvoleg vgvoleg merged commit f9dacef into main Oct 31, 2024
2 checks passed
@vgvoleg vgvoleg deleted the fix_tx_modes branch October 31, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants