-
-
Notifications
You must be signed in to change notification settings - Fork 256
Work/isql per table stats #7218
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
Conversation
|
||
const char* PerTableStats::m_itemNames[] = | ||
{ | ||
" Natural", " Index", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be cleaner if you use the space in the printf usage instead of in each array member.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It allows to easily manage alignment and indentation of header names and see it "right now", without compile and run.
src/isql/isql.epp
Outdated
Firebird::string sIds; | ||
|
||
unsigned maxLen = 0; | ||
USHORT relId = ~0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you can also do the same and use MAX_USHORT.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Table name | Natural | Index | Insert | Update | Delete | Backout | Purge | Expunge | | ||
--------------------------------+---------+---------+---------+---------+---------+---------+---------+---------+ | ||
RDB$INDICES | | 3| | | | | | | | ||
RDB$RELATION_FIELDS | | 534| | | | | | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you have one space in the headers, why not have a space after the numbers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Output is already very wide. Also, I satisfied how it looks even without space after numbers :)
Also, reset table names cache when new database is connected.
You forgot to add the new setting into "HELP SET" text. |
Done, thanks for reminding me. |
QA: see functional/basic/isql/test_06.py |
Per-table run-time statistics in isql.
Details in doc\README.isql_enhancements.txt