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

Closed
systay opened this issue Nov 18, 2024 · 1 comment
Closed

Track and report on transactions #61

systay opened this issue Nov 18, 2024 · 1 comment

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
Copy link
Contributor Author

systay commented Nov 27, 2024

Fixed with #63

@systay systay closed this as completed Nov 27, 2024
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

No branches or pull requests

1 participant