Repository navigation
update mo_sessions view (#1.0-dev) - #13383
Merged
Merged
Conversation
讨论见:https://github.com/matrixorigin/docs/blob/main/design/system_view.md#%E4%BC%9A%E8%AF%9D 策略调整: 1, 信息最多持续时间3秒。 一个语句执行完成,最多3秒后,相关的信息会被清空。 一个语句执行完成,如果下一条语句在3秒内开始执行,部分信息就是下一条的。 ``` //例子 |---sql---|--空闲3s---|---下一个sql---| /|\ /|\ /|\ | | | | | |---------看到部分信息被更新,不是所有信息同时更新。 | | | |-------------看不到第一个sql的信息 | 看到第一个sql的信息。 ``` 2. txn_id。 - 事务的生命周期可能长于sql语句。例如:begin开启事务后,执行了一些语句。但是在commit/rollback之前事务一直存在。但此时可能没有执行语句。 - commit/rollback之后,不论成果与否,事务都会结束。此时txn_id会被清空。 - 事务创建失败。txn_id也为空 Approved by: @qingxinhome
daviszhen
approved these changes
Dec 11, 2023
sukki37
approved these changes
Dec 11, 2023
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
讨论见:https://github.com/matrixorigin/docs/blob/main/design/system_view.md#%E4%BC%9A%E8%AF%9D
策略调整:
1, 信息最多持续时间3秒。
一个语句执行完成,最多3秒后,相关的信息会被清空。
一个语句执行完成,如果下一条语句在3秒内开始执行,部分信息就是下一条的。
Approved by: @qingxinhome
What type of PR is this?
Which issue(s) this PR fixes:
issue #https://github.com/matrixorigin/MO-Cloud/issues/1932
What this PR does / why we need it:
update mo_sessions view