-
Notifications
You must be signed in to change notification settings - Fork 1
Innodb fragmented plugin #4
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Frederic Descamps <[email protected]>
Signed-off-by: Frederic Descamps <[email protected]>
innodb/fragmented.py
Outdated
CONCAT(round(data_free/(data_length+index_length)*100,2),'%'), | ||
'100%'),')') AS data_free_pct | ||
FROM information_schema.TABLES WHERE (data_free/(data_length+index_length)*100) > {limit} | ||
AND table_schema <> 'mysql';""".format(limit=percent) |
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.
add AND ENGINE="INNODB"
:)
innodb/fragmented.py
Outdated
CONCAT(ROUND(index_length / ( 1024 * 1024 * 1024 ), 2), 'G') IDX, | ||
CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 * 1024 ), 2), 'G') 'TOTAL SIZE', | ||
ROUND(index_length / data_length, 2) IDXFRAC, | ||
CONCAT(ROUND(( data_free / 1024 / 1024),2), 'MB') AS data_free, |
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.
Consistent column names would be nice
TABLE
TOTAL SIZE
<- spaces
data_free
<- lower case and underscore
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.
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.
multo bene
Signed-off-by: Frederic Descamps <[email protected]>
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.
No description provided.