Skip to content
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

Track and report on transactions #61

Open
systay opened this issue Nov 18, 2024 · 0 comments · May be fixed by #63
Open

Track and report on transactions #61

systay opened this issue Nov 18, 2024 · 0 comments · May be fixed by #63

Comments

@systay
Copy link
Contributor

systay commented Nov 18, 2024

Query log:

begin
update tblA set apa = 'toto' where foo = 12 and id = 43;
update tblB set monkey = 'pippi' where bar = 12 and id = 44;
commit
begin
update tblA set apa = 'toto' where foo = 43 and id = 5;
update tblB set monkey = 'pippi' where bar = 43 and id = 16;
commit

begin
insert user (id, name) values (1, 'toto');
insert user_extra (user_id, age) values (1, 666);
commit

Report:

Transaction Pattern:

1: 66%
 tblA WHERE foo = <1> AND id = <2>
 tblB WHERE bar = <1> and id = <3>

2: 33%
user WHERE id = <1>
user_extra WHERE user_id = <1>
@systay systay linked a pull request Nov 19, 2024 that will close this issue
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 a pull request may close this issue.

1 participant