Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
7ad355dd
Commit
7ad355dd
authored
Mar 15, 2019
by
Ian Gilfillan
Committed by
Sergey Vojtovich
Mar 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-18934: Document missing mysqldumpslow sort options
parent
78c24992
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
3 deletions
+30
-3
man/mysqldumpslow.1
man/mysqldumpslow.1
+24
-0
scripts/mysqldumpslow.sh
scripts/mysqldumpslow.sh
+6
-3
No files found.
man/mysqldumpslow.1
View file @
7ad355dd
...
...
@@ -210,6 +210,30 @@ should be chosen from the following list:
.IP \(bu 2.3
.\}
t,
aa: Sort by rows affected or average rows affected
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
l,
ae: Sort by rows examined or aggregate rows examined
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
l,
at: Sort by query time or average query time
.RE
.sp
...
...
scripts/mysqldumpslow.sh
View file @
7ad355dd
...
...
@@ -38,7 +38,7 @@ GetOptions(\%opt,
'v|verbose+'
,# verbose
'help+'
,
# write usage info
'd|debug+'
,
# debug
's=s'
,
# what to sort by (a
l, at, ar, ae, c, t, l, r, e
)
's=s'
,
# what to sort by (a
a, ae, al, ar, at, a, c, e, l, r, t
)
'r!'
,
# reverse the sort order (largest last instead of first)
't=i'
,
# just show the top n queries
'a!'
,
# don't abstract all numbers to N and strings to 'S'
...
...
@@ -202,12 +202,15 @@ Parse and summarize the MySQL slow query log. Options are
-v verbose
-d debug
-s ORDER what to sort by (al, at, ar, ae, c, l, r, e, t), 'at' is default
-s ORDER what to sort by (aa, ae, al, ar, at, a, c, e, l, r, t), 'at' is default
aa: average rows affected
ae: aggregated rows examined
al: average lock time
ar: average rows sent
at: average query time
aa: average
rows affected
a:
rows affected
c: count
e: rows examined
l: lock time
r: rows sent
t: query time
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment