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

I/O statistics for stored procedures are not accounted in monitoring tables [CORE2017] #2454

Closed
firebird-automations opened this issue Jul 28, 2008 · 13 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Douglas Tosi (douglasht)

Is related to QA239

Attachments:
differences-between-Psql-and-Dsql-in-2_5-and-3_0.zip

create procedure dummy
returns (i bigint)
as
begin
select count(*)
from big_table /* my test is 3.5 million records */
into :i;
suspend;
end

Now select i from dummy;

The statistics for this statement should show a lot of page_reads.
But mon$io_stats always show zero.
Curiously, the io_stats for the transaction and for the attachment did
show a correct increase in page_reads.

Commits: ea6fbf9 c4c496b FirebirdSQL/fbt-repository@71c23f9

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => Open [ 1 ]

Fix Version: 2.5 Beta 1 [ 10251 ]

Fix Version: 2.1.2 [ 10270 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: In Progress [ 3 ] => Open [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA239 [ QA239 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @pcisar

Qa test added.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test => Done successfully

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

Test Details: Note about SuperServer, 2.5.6 and 3.0, for 'writes' counter.

Statistics for procedural code can differ from DSQL in HUGE degree, especially for 'writes' counter - up to THOUSANDS percents!
Samples can be seen in file 'differences-between-Psql-and-Dsql-in-2_5-and-3_0.zip' that is attached to ticket.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

Attachment: differences-between-Psql-and-Dsql-in-2_5-and-3_0.zip [ 12885 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

Test Details: Note about SuperServer, 2.5.6 and 3.0, for 'writes' counter.

Statistics for procedural code can differ from DSQL in HUGE degree, especially for 'writes' counter - up to THOUSANDS percents!
Samples can be seen in file 'differences-between-Psql-and-Dsql-in-2_5-and-3_0.zip' that is attached to ticket.

=>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants