Update samples and tests for SlowLogWriter.pm and SlowLogParser.pm for bug 963225

This commit is contained in:
baron@percona.com
2012-03-29 22:16:53 -04:00
parent 02a83b71fa
commit 26944c11cc
22 changed files with 574 additions and 574 deletions

View File

@@ -4725,9 +4725,9 @@ sub write {
if ( $percona_patched ) { if ( $percona_patched ) {
printf $fh printf $fh
"# QC_Hit: %s Full_scan: %s Full_join: %s Tmp_table: %s Disk_tmp_table: %s\n# Filesort: %s Disk_filesort: %s Merge_passes: %d\n", "# QC_Hit: %s Full_scan: %s Full_join: %s Tmp_table: %s Tmp_table_on_disk: %s\n# Filesort: %s Filesort_on_disk: %s Merge_passes: %d\n",
map { $_ || 0 } map { $_ || 0 }
@{$event}{qw(QC_Hit Full_scan Full_join Tmp_table Disk_tmp_table Filesort Disk_filesort Merge_passes)}; @{$event}{qw(QC_Hit Full_scan Full_join Tmp_table Tmp_table_on_disk Filesort Filesort_on_disk Merge_passes)};
if ( exists $event->{InnoDB_IO_r_ops} ) { if ( exists $event->{InnoDB_IO_r_ops} ) {
printf $fh printf $fh
@@ -15059,12 +15059,12 @@ table definition is used for L<"--create-review-history-table">:
Full_join_sum FLOAT, Full_join_sum FLOAT,
Tmp_table_cnt FLOAT, Tmp_table_cnt FLOAT,
Tmp_table_sum FLOAT, Tmp_table_sum FLOAT,
Disk_tmp_table_cnt FLOAT, Tmp_table_on_disk_cnt FLOAT,
Disk_tmp_table_sum FLOAT, Tmp_table_on_disk_sum FLOAT,
Filesort_cnt FLOAT, Filesort_cnt FLOAT,
Filesort_sum FLOAT, Filesort_sum FLOAT,
Disk_filesort_cnt FLOAT, Filesort_on_disk_cnt FLOAT,
Disk_filesort_sum FLOAT, Filesort_on_disk_sum FLOAT,
PRIMARY KEY(checksum, ts_min, ts_max) PRIMARY KEY(checksum, ts_min, ts_max)
); );

View File

@@ -62,9 +62,9 @@ sub write {
if ( $percona_patched ) { if ( $percona_patched ) {
# First 2 lines of Percona-patched attribs. # First 2 lines of Percona-patched attribs.
printf $fh printf $fh
"# QC_Hit: %s Full_scan: %s Full_join: %s Tmp_table: %s Disk_tmp_table: %s\n# Filesort: %s Disk_filesort: %s Merge_passes: %d\n", "# QC_Hit: %s Full_scan: %s Full_join: %s Tmp_table: %s Tmp_table_on_disk: %s\n# Filesort: %s Filesort_on_disk: %s Merge_passes: %d\n",
map { $_ || 0 } map { $_ || 0 }
@{$event}{qw(QC_Hit Full_scan Full_join Tmp_table Disk_tmp_table Filesort Disk_filesort Merge_passes)}; @{$event}{qw(QC_Hit Full_scan Full_join Tmp_table Tmp_table_on_disk Filesort Filesort_on_disk Merge_passes)};
if ( exists $event->{InnoDB_IO_r_ops} ) { if ( exists $event->{InnoDB_IO_r_ops} ) {
# Optional 3 lines of Percona-patched InnoDB attribs. # Optional 3 lines of Percona-patched InnoDB attribs.

View File

@@ -60,7 +60,7 @@ test_log_parser(
result => [ result => [
{ arg => 'BEGIN', { arg => 'BEGIN',
ts => '071218 11:48:27', ts => '071218 11:48:27',
Disk_filesort => 'No', Filesort_on_disk => 'No',
Merge_passes => '0', Merge_passes => '0',
Full_scan => 'No', Full_scan => 'No',
Full_join => 'No', Full_join => 'No',
@@ -70,7 +70,7 @@ test_log_parser(
Rows_examined => '0', Rows_examined => '0',
Filesort => 'No', Filesort => 'No',
Query_time => '0.000012', Query_time => '0.000012',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Rows_sent => '0', Rows_sent => '0',
Lock_time => '0.000000', Lock_time => '0.000000',
pos_in_log => 0, pos_in_log => 0,
@@ -85,7 +85,7 @@ test_log_parser(
arg => 'update db2.tuningdetail_21_265507 n arg => 'update db2.tuningdetail_21_265507 n
inner join db1.gonzo a using(gonzo) inner join db1.gonzo a using(gonzo)
set n.column1 = a.column1, n.word3 = a.word3', set n.column1 = a.column1, n.word3 = a.word3',
Disk_filesort => 'No', Filesort_on_disk => 'No',
Merge_passes => '0', Merge_passes => '0',
Full_scan => 'Yes', Full_scan => 'Yes',
Full_join => 'No', Full_join => 'No',
@@ -95,10 +95,10 @@ test_log_parser(
Rows_examined => '62951', Rows_examined => '62951',
Filesort => 'No', Filesort => 'No',
Query_time => '0.726052', Query_time => '0.726052',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Rows_sent => '0', Rows_sent => '0',
Lock_time => '0.000091', Lock_time => '0.000091',
pos_in_log => 332, pos_in_log => 338,
cmd => 'Query', cmd => 'Query',
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
host => '', host => '',
@@ -118,16 +118,16 @@ VALUES (\'\', \'Exact\')',
Lock_time => '0.000077', Lock_time => '0.000077',
InnoDB_rec_lock_wait => '0.000000', InnoDB_rec_lock_wait => '0.000000',
Full_scan => 'No', Full_scan => 'No',
Disk_filesort => 'No', Filesort_on_disk => 'No',
Thread_id => '10', Thread_id => '10',
Tmp_table => 'No', Tmp_table => 'No',
QC_Hit => 'No', QC_Hit => 'No',
Rows_examined => '0', Rows_examined => '0',
InnoDB_IO_r_ops => '0', InnoDB_IO_r_ops => '0',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Query_time => '0.000512', Query_time => '0.000512',
InnoDB_IO_r_wait => '0.000000', InnoDB_IO_r_wait => '0.000000',
pos_in_log => 803, pos_in_log => 815,
cmd => 'Query', cmd => 'Query',
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
host => '', host => '',
@@ -147,16 +147,16 @@ WHERE vab3concept1upload=\'6994465\'',
Lock_time => '0.000028', Lock_time => '0.000028',
InnoDB_rec_lock_wait => '0.000000', InnoDB_rec_lock_wait => '0.000000',
Full_scan => 'No', Full_scan => 'No',
Disk_filesort => 'No', Filesort_on_disk => 'No',
Thread_id => '10', Thread_id => '10',
Tmp_table => 'No', Tmp_table => 'No',
QC_Hit => 'No', QC_Hit => 'No',
Rows_examined => '0', Rows_examined => '0',
InnoDB_IO_r_ops => '0', InnoDB_IO_r_ops => '0',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Query_time => '0.033384', Query_time => '0.033384',
InnoDB_IO_r_wait => '0.000000', InnoDB_IO_r_wait => '0.000000',
pos_in_log => 1316, pos_in_log => 1334,
cmd => 'Query', cmd => 'Query',
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
host => '', host => '',
@@ -177,16 +177,16 @@ VALUES (\'211\', \'18\')',
Lock_time => '0.000027', Lock_time => '0.000027',
InnoDB_rec_lock_wait => '0.000000', InnoDB_rec_lock_wait => '0.000000',
Full_scan => 'No', Full_scan => 'No',
Disk_filesort => 'No', Filesort_on_disk => 'No',
Thread_id => '10', Thread_id => '10',
Tmp_table => 'No', Tmp_table => 'No',
QC_Hit => 'No', QC_Hit => 'No',
Rows_examined => '0', Rows_examined => '0',
InnoDB_IO_r_ops => '0', InnoDB_IO_r_ops => '0',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Query_time => '0.000530', Query_time => '0.000530',
InnoDB_IO_r_wait => '0.000000', InnoDB_IO_r_wait => '0.000000',
pos_in_log => 1840, pos_in_log => 1864,
cmd => 'Query', cmd => 'Query',
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
host => '', host => '',
@@ -205,16 +205,16 @@ SET biz = \'91848182522\'',
Lock_time => '0.000027', Lock_time => '0.000027',
InnoDB_rec_lock_wait => '0.000000', InnoDB_rec_lock_wait => '0.000000',
Full_scan => 'No', Full_scan => 'No',
Disk_filesort => 'No', Filesort_on_disk => 'No',
Thread_id => '10', Thread_id => '10',
Tmp_table => 'No', Tmp_table => 'No',
QC_Hit => 'No', QC_Hit => 'No',
Rows_examined => '0', Rows_examined => '0',
InnoDB_IO_r_ops => '0', InnoDB_IO_r_ops => '0',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Query_time => '0.000530', Query_time => '0.000530',
InnoDB_IO_r_wait => '0.000000', InnoDB_IO_r_wait => '0.000000',
pos_in_log => 2363, pos_in_log => 2393,
cmd => 'Query', cmd => 'Query',
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
host => '', host => '',
@@ -235,16 +235,16 @@ WHERE fillze=\'899\'',
Lock_time => '0.000027', Lock_time => '0.000027',
InnoDB_rec_lock_wait => '0.000000', InnoDB_rec_lock_wait => '0.000000',
Full_scan => 'No', Full_scan => 'No',
Disk_filesort => 'No', Filesort_on_disk => 'No',
Thread_id => '10', Thread_id => '10',
Tmp_table => 'No', Tmp_table => 'No',
QC_Hit => 'No', QC_Hit => 'No',
Rows_examined => '0', Rows_examined => '0',
InnoDB_IO_r_ops => '0', InnoDB_IO_r_ops => '0',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Query_time => '0.000530', Query_time => '0.000530',
InnoDB_IO_r_wait => '0.000000', InnoDB_IO_r_wait => '0.000000',
pos_in_log => 2825, pos_in_log => 2861,
cmd => 'Query', cmd => 'Query',
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
host => '', host => '',
@@ -263,16 +263,16 @@ SET biz = \'91848182522\'',
Lock_time => '0.000027', Lock_time => '0.000027',
InnoDB_rec_lock_wait => '0.000000', InnoDB_rec_lock_wait => '0.000000',
Full_scan => 'No', Full_scan => 'No',
Disk_filesort => 'No', Filesort_on_disk => 'No',
Thread_id => '10', Thread_id => '10',
Tmp_table => 'No', Tmp_table => 'No',
QC_Hit => 'No', QC_Hit => 'No',
Rows_examined => '0', Rows_examined => '0',
InnoDB_IO_r_ops => '0', InnoDB_IO_r_ops => '0',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Query_time => '0.000530', Query_time => '0.000530',
InnoDB_IO_r_wait => '0.000000', InnoDB_IO_r_wait => '0.000000',
pos_in_log => 3332, pos_in_log => 3374,
cmd => 'Query', cmd => 'Query',
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
host => '', host => '',
@@ -322,8 +322,8 @@ test_log_parser(
parser => $p, parser => $p,
file => "$sample/slow003.txt", file => "$sample/slow003.txt",
result => [ result => [
{ Disk_filesort => 'No', { Filesort_on_disk => 'No',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Filesort => 'No', Filesort => 'No',
Full_join => 'No', Full_join => 'No',
Full_scan => 'No', Full_scan => 'No',
@@ -374,7 +374,7 @@ test_log_parser(
result => [ result => [
{ arg => "foo\nbar\n\t\t\t0 AS counter\nbaz", { arg => "foo\nbar\n\t\t\t0 AS counter\nbaz",
ts => '071218 11:48:27', ts => '071218 11:48:27',
Disk_filesort => 'No', Filesort_on_disk => 'No',
Merge_passes => '0', Merge_passes => '0',
Full_scan => 'No', Full_scan => 'No',
Full_join => 'No', Full_join => 'No',
@@ -384,7 +384,7 @@ test_log_parser(
Rows_examined => '0', Rows_examined => '0',
Filesort => 'No', Filesort => 'No',
Query_time => '0.000012', Query_time => '0.000012',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Rows_sent => '0', Rows_sent => '0',
Lock_time => '0.000000', Lock_time => '0.000000',
pos_in_log => 0, pos_in_log => 0,
@@ -402,8 +402,8 @@ test_log_parser(
parser => $p, parser => $p,
file => "$sample/slow006.txt", file => "$sample/slow006.txt",
result => [ result => [
{ Disk_filesort => 'No', { Filesort_on_disk => 'No',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Filesort => 'No', Filesort => 'No',
Full_join => 'No', Full_join => 'No',
Full_scan => 'No', Full_scan => 'No',
@@ -425,8 +425,8 @@ test_log_parser(
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
bytes => 23, bytes => 23,
}, },
{ Disk_filesort => 'No', { Filesort_on_disk => 'No',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Filesort => 'No', Filesort => 'No',
Full_join => 'No', Full_join => 'No',
Full_scan => 'No', Full_scan => 'No',
@@ -443,13 +443,13 @@ test_log_parser(
cmd => 'Query', cmd => 'Query',
host => '', host => '',
ip => '', ip => '',
pos_in_log => '363', pos_in_log => '369',
ts => '071218 11:48:57', ts => '071218 11:48:57',
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
bytes => 23, bytes => 23,
}, },
{ Disk_filesort => 'No', { Filesort_on_disk => 'No',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Filesort => 'No', Filesort => 'No',
Full_join => 'No', Full_join => 'No',
Full_scan => 'No', Full_scan => 'No',
@@ -466,13 +466,13 @@ test_log_parser(
db => 'bar', db => 'bar',
host => '', host => '',
ip => '', ip => '',
pos_in_log => '725', pos_in_log => '737',
ts => '071218 11:48:57', ts => '071218 11:48:57',
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
bytes => 23, bytes => 23,
}, },
{ Disk_filesort => 'No', { Filesort_on_disk => 'No',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Filesort => 'No', Filesort => 'No',
Full_join => 'No', Full_join => 'No',
Full_scan => 'No', Full_scan => 'No',
@@ -489,13 +489,13 @@ test_log_parser(
cmd => 'Query', cmd => 'Query',
host => '', host => '',
ip => '', ip => '',
pos_in_log => '1083', pos_in_log => '1101',
ts => '071218 11:49:05', ts => '071218 11:49:05',
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
bytes => 23, bytes => 23,
}, },
{ Disk_filesort => 'No', { Filesort_on_disk => 'No',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Filesort => 'No', Filesort => 'No',
Full_join => 'No', Full_join => 'No',
Full_scan => 'No', Full_scan => 'No',
@@ -512,13 +512,13 @@ test_log_parser(
db => 'bar', db => 'bar',
host => '', host => '',
ip => '', ip => '',
pos_in_log => '1445', pos_in_log => '1469',
ts => '071218 11:49:07', ts => '071218 11:49:07',
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
bytes => 23, bytes => 23,
}, },
{ Disk_filesort => 'No', { Filesort_on_disk => 'No',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Filesort => 'No', Filesort => 'No',
Full_join => 'No', Full_join => 'No',
Full_scan => 'No', Full_scan => 'No',
@@ -535,7 +535,7 @@ test_log_parser(
cmd => 'Query', cmd => 'Query',
host => '', host => '',
ip => '', ip => '',
pos_in_log => '1803', pos_in_log => '1833',
ts => '071218 11:49:30', ts => '071218 11:49:30',
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
bytes => 23, bytes => 23,
@@ -551,7 +551,7 @@ test_log_parser(
{ Schema => 'food', { Schema => 'food',
arg => 'SELECT fruit FROM trees', arg => 'SELECT fruit FROM trees',
ts => '071218 11:48:27', ts => '071218 11:48:27',
Disk_filesort => 'No', Filesort_on_disk => 'No',
Merge_passes => '0', Merge_passes => '0',
Full_scan => 'No', Full_scan => 'No',
Full_join => 'No', Full_join => 'No',
@@ -561,7 +561,7 @@ test_log_parser(
Rows_examined => '0', Rows_examined => '0',
Filesort => 'No', Filesort => 'No',
Query_time => '0.000012', Query_time => '0.000012',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Rows_sent => '0', Rows_sent => '0',
Lock_time => '0.000000', Lock_time => '0.000000',
pos_in_log => 0, pos_in_log => 0,
@@ -1035,8 +1035,8 @@ test_log_parser(
parser => $p, parser => $p,
file => "$sample/slow022.txt", file => "$sample/slow022.txt",
result => [ result => [
{ Disk_filesort => 'No', { Filesort_on_disk => 'No',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Filesort => 'No', Filesort => 'No',
Full_join => 'No', Full_join => 'No',
Full_scan => 'No', Full_scan => 'No',
@@ -1057,8 +1057,8 @@ test_log_parser(
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
bytes => 23, bytes => 23,
}, },
{ Disk_filesort => 'No', { Filesort_on_disk => 'No',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Filesort => 'No', Filesort => 'No',
Full_join => 'No', Full_join => 'No',
Full_scan => 'No', Full_scan => 'No',
@@ -1075,12 +1075,12 @@ test_log_parser(
cmd => 'Query', cmd => 'Query',
host => '', host => '',
ip => '', ip => '',
pos_in_log => '363', pos_in_log => '369',
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
bytes => 23, bytes => 23,
}, },
{ Disk_filesort => 'No', { Filesort_on_disk => 'No',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Filesort => 'No', Filesort => 'No',
Full_join => 'No', Full_join => 'No',
Full_scan => 'No', Full_scan => 'No',
@@ -1097,12 +1097,12 @@ test_log_parser(
db => 'bar', db => 'bar',
host => '', host => '',
ip => '', ip => '',
pos_in_log => '725', pos_in_log => '737',
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
bytes => 23, bytes => 23,
}, },
{ Disk_filesort => 'No', { Filesort_on_disk => 'No',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Filesort => 'No', Filesort => 'No',
Full_join => 'No', Full_join => 'No',
Full_scan => 'No', Full_scan => 'No',
@@ -1119,12 +1119,12 @@ test_log_parser(
cmd => 'Query', cmd => 'Query',
host => '', host => '',
ip => '', ip => '',
pos_in_log => '1083', pos_in_log => '1101',
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
bytes => 23, bytes => 23,
}, },
{ Disk_filesort => 'No', { Filesort_on_disk => 'No',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Filesort => 'No', Filesort => 'No',
Full_join => 'No', Full_join => 'No',
Full_scan => 'No', Full_scan => 'No',
@@ -1141,12 +1141,12 @@ test_log_parser(
db => 'bar', db => 'bar',
host => '', host => '',
ip => '', ip => '',
pos_in_log => '1445', pos_in_log => '1469',
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
bytes => 23, bytes => 23,
}, },
{ Disk_filesort => 'No', { Filesort_on_disk => 'No',
Disk_tmp_table => 'No', Tmp_table_on_disk => 'No',
Filesort => 'No', Filesort => 'No',
Full_join => 'No', Full_join => 'No',
Full_scan => 'No', Full_scan => 'No',
@@ -1163,7 +1163,7 @@ test_log_parser(
cmd => 'Query', cmd => 'Query',
host => '', host => '',
ip => '', ip => '',
pos_in_log => '1803', pos_in_log => '1833',
user => '[SQL_SLAVE]', user => '[SQL_SLAVE]',
bytes => 23, bytes => 23,
}, },

View File

@@ -1,15 +1,15 @@
# Time: 071218 11:48:27 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:48:27 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 10 # Thread_id: 10
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
BEGIN; BEGIN;
# User@Host: [SQL_SLAVE] @ [] # User@Host: [SQL_SLAVE] @ []
# Thread_id: 10 # Thread_id: 10
# Query_time: 0.726052 Lock_time: 0.000091 Rows_sent: 0 Rows_examined: 62951 # Query_time: 0.726052 Lock_time: 0.000091 Rows_sent: 0 Rows_examined: 62951
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db1; use db1;
SET timestamp=1197996507; SET timestamp=1197996507;
@@ -19,8 +19,8 @@ update db2.tuningdetail_21_265507 n
# User@Host: [SQL_SLAVE] @ [] # User@Host: [SQL_SLAVE] @ []
# Thread_id: 10 # Thread_id: 10
# Query_time: 0.000512 Lock_time: 0.000077 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000512 Lock_time: 0.000077 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# InnoDB_IO_r_ops: 0 InnoDB_IO_r_bytes: 0 InnoDB_IO_r_wait: 0.000000 # InnoDB_IO_r_ops: 0 InnoDB_IO_r_bytes: 0 InnoDB_IO_r_wait: 0.000000
# InnoDB_rec_lock_wait: 0.000000 InnoDB_queue_wait: 0.000000 # InnoDB_rec_lock_wait: 0.000000 InnoDB_queue_wait: 0.000000
# InnoDB_pages_distinct: 24 # InnoDB_pages_distinct: 24
@@ -30,8 +30,8 @@ VALUES ('', 'Exact');
# User@Host: [SQL_SLAVE] @ [] # User@Host: [SQL_SLAVE] @ []
# Thread_id: 10 # Thread_id: 10
# Query_time: 0.033384 Lock_time: 0.000028 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.033384 Lock_time: 0.000028 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# InnoDB_IO_r_ops: 0 InnoDB_IO_r_bytes: 0 InnoDB_IO_r_wait: 0.000000 # InnoDB_IO_r_ops: 0 InnoDB_IO_r_bytes: 0 InnoDB_IO_r_wait: 0.000000
# InnoDB_rec_lock_wait: 0.000000 InnoDB_queue_wait: 0.000000 # InnoDB_rec_lock_wait: 0.000000 InnoDB_queue_wait: 0.000000
# InnoDB_pages_distinct: 11 # InnoDB_pages_distinct: 11
@@ -41,8 +41,8 @@ WHERE vab3concept1upload='6994465';
# User@Host: [SQL_SLAVE] @ [] # User@Host: [SQL_SLAVE] @ []
# Thread_id: 10 # Thread_id: 10
# Query_time: 0.000530 Lock_time: 0.000027 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000530 Lock_time: 0.000027 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# InnoDB_IO_r_ops: 0 InnoDB_IO_r_bytes: 0 InnoDB_IO_r_wait: 0.000000 # InnoDB_IO_r_ops: 0 InnoDB_IO_r_bytes: 0 InnoDB_IO_r_wait: 0.000000
# InnoDB_rec_lock_wait: 0.000000 InnoDB_queue_wait: 0.000000 # InnoDB_rec_lock_wait: 0.000000 InnoDB_queue_wait: 0.000000
# InnoDB_pages_distinct: 18 # InnoDB_pages_distinct: 18
@@ -52,8 +52,8 @@ VALUES ('211', '18');
# User@Host: [SQL_SLAVE] @ [] # User@Host: [SQL_SLAVE] @ []
# Thread_id: 10 # Thread_id: 10
# Query_time: 0.000530 Lock_time: 0.000027 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000530 Lock_time: 0.000027 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# InnoDB_IO_r_ops: 0 InnoDB_IO_r_bytes: 0 InnoDB_IO_r_wait: 0.000000 # InnoDB_IO_r_ops: 0 InnoDB_IO_r_bytes: 0 InnoDB_IO_r_wait: 0.000000
# InnoDB_rec_lock_wait: 0.000000 InnoDB_queue_wait: 0.000000 # InnoDB_rec_lock_wait: 0.000000 InnoDB_queue_wait: 0.000000
# InnoDB_pages_distinct: 18 # InnoDB_pages_distinct: 18
@@ -62,8 +62,8 @@ SET biz = '91848182522';
# User@Host: [SQL_SLAVE] @ [] # User@Host: [SQL_SLAVE] @ []
# Thread_id: 10 # Thread_id: 10
# Query_time: 0.000530 Lock_time: 0.000027 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000530 Lock_time: 0.000027 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# InnoDB_IO_r_ops: 0 InnoDB_IO_r_bytes: 0 InnoDB_IO_r_wait: 0.000000 # InnoDB_IO_r_ops: 0 InnoDB_IO_r_bytes: 0 InnoDB_IO_r_wait: 0.000000
# InnoDB_rec_lock_wait: 0.000000 InnoDB_queue_wait: 0.000000 # InnoDB_rec_lock_wait: 0.000000 InnoDB_queue_wait: 0.000000
# InnoDB_pages_distinct: 18 # InnoDB_pages_distinct: 18
@@ -74,8 +74,8 @@ WHERE fillze='899';
# User@Host: [SQL_SLAVE] @ [] # User@Host: [SQL_SLAVE] @ []
# Thread_id: 10 # Thread_id: 10
# Query_time: 0.000530 Lock_time: 0.000027 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000530 Lock_time: 0.000027 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# InnoDB_IO_r_ops: 0 InnoDB_IO_r_bytes: 0 InnoDB_IO_r_wait: 0.000000 # InnoDB_IO_r_ops: 0 InnoDB_IO_r_bytes: 0 InnoDB_IO_r_wait: 0.000000
# InnoDB_rec_lock_wait: 0.000000 InnoDB_queue_wait: 0.000000 # InnoDB_rec_lock_wait: 0.000000 InnoDB_queue_wait: 0.000000
# InnoDB_pages_distinct: 18 # InnoDB_pages_distinct: 18

View File

@@ -2,7 +2,7 @@
# Time: 071218 11:48:27 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:48:27 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 10 # Thread_id: 10
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
BEGIN; BEGIN;

View File

@@ -1,8 +1,8 @@
# Time: 071218 11:48:27 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:48:27 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 10 # Thread_id: 10
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
foo foo
bar bar

View File

@@ -1,44 +1,44 @@
# Time: 071218 11:48:27 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:48:27 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 10 Schema: foo # Thread_id: 10 Schema: foo
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
SELECT col FROM foo_tbl; SELECT col FROM foo_tbl;
# Time: 071218 11:48:57 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:48:57 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 10 Schema: foo # Thread_id: 10 Schema: foo
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
SELECT col FROM foo_tbl; SELECT col FROM foo_tbl;
# Time: 071218 11:48:57 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:48:57 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 20 # Thread_id: 20
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use bar; use bar;
SELECT col FROM bar_tbl; SELECT col FROM bar_tbl;
# Time: 071218 11:49:05 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:49:05 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 10 Schema: bar # Thread_id: 10 Schema: bar
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
SELECT col FROM bar_tbl; SELECT col FROM bar_tbl;
# Time: 071218 11:49:07 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:49:07 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 20 # Thread_id: 20
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use bar; use bar;
SELECT col FROM bar_tbl; SELECT col FROM bar_tbl;
# Time: 071218 11:49:30 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:49:30 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 30 Schema: foo # Thread_id: 30 Schema: foo
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
SELECT col FROM foo_tbl; SELECT col FROM foo_tbl;

View File

@@ -1,7 +1,7 @@
# Time: 071218 11:48:27 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:48:27 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 3 Schema: food # Thread_id: 3 Schema: food
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
SELECT fruit FROM trees; SELECT fruit FROM trees;

View File

@@ -1,44 +1,44 @@
# Time: margdl 11:48:27 # User@Host: [SQL_SLAVE] @ [] # Time: margdl 11:48:27 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 10 Schema: foo # Thread_id: 10 Schema: foo
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
SELECT col FROM foo_tbl; SELECT col FROM foo_tbl;
# Time: margdl 11:48:57 # User@Host: [SQL_SLAVE] @ [] # Time: margdl 11:48:57 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 10 Schema: foo # Thread_id: 10 Schema: foo
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
SELECT col FROM foo_tbl; SELECT col FROM foo_tbl;
# Time: margdl 11:48:57 # User@Host: [SQL_SLAVE] @ [] # Time: margdl 11:48:57 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 20 # Thread_id: 20
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use bar; use bar;
SELECT col FROM bar_tbl; SELECT col FROM bar_tbl;
# Time: margdl 11:49:05 # User@Host: [SQL_SLAVE] @ [] # Time: margdl 11:49:05 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 10 Schema: bar # Thread_id: 10 Schema: bar
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
SELECT col FROM bar_tbl; SELECT col FROM bar_tbl;
# Time: margdl 11:49:07 # User@Host: [SQL_SLAVE] @ [] # Time: margdl 11:49:07 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 20 # Thread_id: 20
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use bar; use bar;
SELECT col FROM bar_tbl; SELECT col FROM bar_tbl;
# Time: margdl 11:49:30 # User@Host: [SQL_SLAVE] @ [] # Time: margdl 11:49:30 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 30 Schema: foo # Thread_id: 30 Schema: foo
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
SELECT col FROM foo_tbl; SELECT col FROM foo_tbl;

File diff suppressed because it is too large Load Diff

View File

@@ -1,8 +1,8 @@
# User@Host: [SQL_SLAVE][[SQL_SLAVE]] @ [] # User@Host: [SQL_SLAVE][[SQL_SLAVE]] @ []
# Thread_id: 10 # Thread_id: 10
# Query_time: 0.000512 Lock_time: 0.000077 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000512 Lock_time: 0.000077 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: Yes Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: Yes Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# InnoDB_IO_r_ops: 1 InnoDB_IO_r_bytes: 2 InnoDB_IO_r_wait: 3.000003 # InnoDB_IO_r_ops: 1 InnoDB_IO_r_bytes: 2 InnoDB_IO_r_wait: 3.000003
# InnoDB_rec_lock_wait: 0.400004 InnoDB_queue_wait: 0.000005 # InnoDB_rec_lock_wait: 0.400004 InnoDB_queue_wait: 0.000005
# InnoDB_pages_distinct: 24 # InnoDB_pages_distinct: 24

View File

@@ -1,8 +1,8 @@
# User@Host: [SQL_SLAVE] @ [] # User@Host: [SQL_SLAVE] @ []
# Thread_id: 10 # Thread_id: 10
# Query_time: 0.000512 Lock_time: 0.000077 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000512 Lock_time: 0.000077 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: Yes Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: Yes Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# InnoDB_IO_r_ops: 1 InnoDB_IO_r_bytes: 2 InnoDB_IO_r_wait: 3.000003 # InnoDB_IO_r_ops: 1 InnoDB_IO_r_bytes: 2 InnoDB_IO_r_wait: 3.000003
# InnoDB_rec_lock_wait: 0.400004 InnoDB_queue_wait: 0.000005 # InnoDB_rec_lock_wait: 0.400004 InnoDB_queue_wait: 0.000005
# InnoDB_pages_distinct: 24 # InnoDB_pages_distinct: 24

View File

@@ -1,52 +1,52 @@
# Time: 090805 11:00:27 # Time: 090805 11:00:27
# Thread_id: 1 Schema: db1 # Thread_id: 1 Schema: db1
# Query_time: 0.726052 Lock_time: 0.100091 Rows_sent: 9 Rows_examined: 51 # Query_time: 0.726052 Lock_time: 0.100091 Rows_sent: 9 Rows_examined: 51
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
SELECT * FROM foo; SELECT * FROM foo;
# Query_time: 1.726052 Lock_time: 0.010093 Rows_sent: 1 Rows_examined: 1 # Query_time: 1.726052 Lock_time: 0.010093 Rows_sent: 1 Rows_examined: 1
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
SELECT id FROM tbl WHERE id = 1; SELECT id FROM tbl WHERE id = 1;
# Query_time: 9.000052 Lock_time: 0.000001 Rows_sent: 900 Rows_examined: 10000 # Query_time: 9.000052 Lock_time: 0.000001 Rows_sent: 900 Rows_examined: 10000
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: Yes Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: Yes Tmp_table_on_disk: No
# Filesort: No Disk_filesort: Yes Merge_passes: 1 # Filesort: No Filesort_on_disk: Yes Merge_passes: 1
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
SELECT COUNT(*) FROM blah WHERE col > 2; SELECT COUNT(*) FROM blah WHERE col > 2;
# Time: 090805 12:00:27 # Time: 090805 12:00:27
# Thread_id: 2 Schema: db1 # Thread_id: 2 Schema: db1
# Query_time: 0.726052 Lock_time: 0.100091 Rows_sent: 9 Rows_examined: 51 # Query_time: 0.726052 Lock_time: 0.100091 Rows_sent: 9 Rows_examined: 51
# QC_Hit: Yes Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: Yes Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
SELECT * FROM foo; SELECT * FROM foo;
# Query_time: 0.726052 Lock_time: 0.100091 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.726052 Lock_time: 0.100091 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db2; use db2;
INSERT INTO tbl VALUES ('a', 'b'); INSERT INTO tbl VALUES ('a', 'b');
# Query_time: 0.000052 Lock_time: 0.010091 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000052 Lock_time: 0.010091 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
INSERT INTO tbl VALUES ('c', 'd'); INSERT INTO tbl VALUES ('c', 'd');
# Time: 090805 13:00:27 # Time: 090805 13:00:27
# Thread_id: 3 Schema: db3 # Thread_id: 3 Schema: db3
# Query_time: 1349.000052 Lock_time: 1349.000091 Rows_sent: 0 Rows_examined: 1928472 # Query_time: 1349.000052 Lock_time: 1349.000091 Rows_sent: 0 Rows_examined: 1928472
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: Yes Disk_tmp_table: Yes # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: Yes Tmp_table_on_disk: Yes
# Filesort: Yes Disk_filesort: Yes Merge_passes: 0 # Filesort: Yes Filesort_on_disk: Yes Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
DELETE FROM forest WHERE animal = 'dead'; DELETE FROM forest WHERE animal = 'dead';
# Query_time: 0.926052 Lock_time: 0.097091 Rows_sent: 8 Rows_examined: 50 # Query_time: 0.926052 Lock_time: 0.097091 Rows_sent: 8 Rows_examined: 50
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
SELECT * FROM foo; SELECT * FROM foo;
# Query_time: 0.526052 Lock_time: 0.037091 Rows_sent: 7 Rows_examined:40 # Query_time: 0.526052 Lock_time: 0.037091 Rows_sent: 7 Rows_examined:40
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
SELECT * FROM foo; SELECT * FROM foo;

View File

@@ -2,8 +2,8 @@
# User@Host: [SQL_SLAVE] @ [] # User@Host: [SQL_SLAVE] @ []
# Thread_id: 0 # Thread_id: 0
# Query_time: 0.000000 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000000 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# InnoDB_IO_r_ops: 0 InnoDB_IO_r_bytes: 0 InnoDB_IO_r_wait: 0.000000 # InnoDB_IO_r_ops: 0 InnoDB_IO_r_bytes: 0 InnoDB_IO_r_wait: 0.000000
# InnoDB_rec_lock_wait: 0.000000 InnoDB_queue_wait: 0.000000 # InnoDB_rec_lock_wait: 0.000000 InnoDB_queue_wait: 0.000000
# InnoDB_pages_distinct: 0 # InnoDB_pages_distinct: 0

View File

@@ -1,58 +1,58 @@
# Time: 071218 11:48:27 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:48:27 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 1 Schema: mk_log_player_1 # Thread_id: 1 Schema: mk_log_player_1
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 10 Rows_examined: 10 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 10 Rows_examined: 10
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
SELECT a FROM tbl1; SELECT a FROM tbl1;
# Time: 071218 11:48:57 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:48:57 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 1 Schema: mk_log_player_1 # Thread_id: 1 Schema: mk_log_player_1
# Query_time: 0.000002 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000002 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
# administrator command: ping; # administrator command: ping;
# Time: 071218 11:48:57 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:48:57 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 2 # Thread_id: 2
# Query_time: 0.010012 Lock_time: 0.000022 Rows_sent: 3 Rows_examined: 3 # Query_time: 0.010012 Lock_time: 0.000022 Rows_sent: 3 Rows_examined: 3
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use mk_log_player_2; use mk_log_player_2;
SELECT a FROM tbl2; SELECT a FROM tbl2;
# Time: 071218 11:49:05 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:49:05 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 1 Schema: mk_log_player_2 # Thread_id: 1 Schema: mk_log_player_2
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
SELECT a FROM mk_log_player_2.tbl2; SELECT a FROM mk_log_player_2.tbl2;
# Time: 071218 11:49:07 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:49:07 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 2 # Thread_id: 2
# Query_time: 0.000112 Lock_time: 0.000230 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000112 Lock_time: 0.000230 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
DELETE FROM mk_log_player_2.tbl2 WHERE a IS NULL; DELETE FROM mk_log_player_2.tbl2 WHERE a IS NULL;
# Time: 071218 11:49:30 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:49:30 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 3 Schema: mk_log_player_1 # Thread_id: 3 Schema: mk_log_player_1
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 1 Rows_examined: 10 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 1 Rows_examined: 10
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use mk_log_player_1; use mk_log_player_1;
SELECT a FROM tbl1 WHERE a = 3; SELECT a FROM tbl1 WHERE a = 3;
# Time: 071218 11:48:27 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:48:27 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 1 Schema: mk_log_player_1 # Thread_id: 1 Schema: mk_log_player_1
# Query_time: 0.000012 Lock_time: 0.021000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.021000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
UPDATE mk_log_player_1.tbl1 SET a = 100 WHERE a = 1; UPDATE mk_log_player_1.tbl1 SET a = 100 WHERE a = 1;
# Time: 071218 11:48:27 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:48:27 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 4 Schema: mk_log_player_1 # Thread_id: 4 Schema: mk_log_player_1
# Query_time: 0.000012 Lock_time: 0.500000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.500000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
INSERT INTO mk_log_player_1.tbl1 VALUES (555); INSERT INTO mk_log_player_1.tbl1 VALUES (555);

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,3 @@
$VAR1 = {attribute_types => {Disk_filesort => 'bool',Disk_tmp_table => 'bool',Error_no => 'string',Filesort => 'bool',Full_join => 'bool',Full_scan => 'bool',InnoDB_IO_r_bytes => 'num',InnoDB_IO_r_ops => 'num',InnoDB_IO_r_wait => 'num',InnoDB_pages_distinct => 'num',InnoDB_queue_wait => 'num',InnoDB_rec_lock_wait => 'num',Killed => 'bool',Last_errno => 'string',Lock_time => 'num',Merge_passes => 'num',QC_Hit => 'bool',Query_time => 'num',Rows_examined => 'num',Rows_sent => 'num',Statement_id => 'string',Status_code => 'string',Thread_id => 'string',Tmp_table => 'bool',bytes => 'num',db => 'string',host => 'string',key_print => 'string',pos_in_log => 'num',ts => 'string',user => 'string',val => 'string'},groupby => 'fingerprint',results => {classes => {'update d?tuningdetail_?_? n inner join d?gonzo a using(gonzo) set n.column? = a.column?, n.word? = a.word?' => {Disk_filesort => {cnt => 1,max => 0,min => 0,sum => 0,unq => {'0' => 1}},Disk_tmp_table => {cnt => 1,max => 0,min => 0,sum => 0,unq => {'0' => 1}},Filesort => {cnt => 1,max => 0,min => 0,sum => 0,unq => {'0' => 1}},Full_join => {cnt => 1,max => 0,min => 0,sum => 0,unq => {'0' => 1}},Full_scan => {cnt => 1,max => 1,min => 1,sum => 1,unq => {'1' => 1}},Lock_time => {all => {'93' => 1},cnt => 1,last => '0.000091',max => '0.000091',min => '0.000091',sum => '9.1e-05'},Merge_passes => {all => {'0' => 1},cnt => 1,last => 0,max => 0,min => 0,sum => 0},QC_Hit => {cnt => 1,max => 0,min => 0,sum => 0,unq => {'0' => 1}},Query_time => {all => {'277' => 1},cnt => 1,last => '0.726052',max => '0.726052',min => '0.726052',sum => '0.726052'},Rows_examined => {all => {'510' => 1},cnt => 1,last => 62951,max => 62951,min => 62951,sum => 62951},Rows_sent => {all => {'0' => 1},cnt => 1,last => 0,max => 0,min => 0,sum => 0},Tmp_table => {cnt => 1,max => 0,min => 0,sum => 0,unq => {'0' => 1}},bytes => {all => {'383' => 1},cnt => 1,last => 129,max => 129,min => 129,sum => 129},db => {cnt => 1,max => 'db1',min => 'db1',unq => {db1 => 1}},host => {cnt => 1,max => '',min => '',unq => {'' => 1}},pos_in_log => {all => {'403' => 1},cnt => 1,last => 332,max => 332,min => 332,sum => 332},ts => {cnt => 1,max => '071218 11:48:27',min => '071218 11:48:27',unq => {'071218 11:48:27' => 1}},user => {cnt => 1,max => '[SQL_SLAVE]',min => '[SQL_SLAVE]',unq => {'[SQL_SLAVE]' => 1}}}},globals => {Disk_filesort => {cnt => 8,max => 0,min => 0,sum => 0},Disk_tmp_table => {cnt => 8,max => 0,min => 0,sum => 0},Filesort => {cnt => 8,max => 0,min => 0,sum => 0},Full_join => {cnt => 8,max => 0,min => 0,sum => 0},Full_scan => {cnt => 8,max => 1,min => 0,sum => 1},InnoDB_IO_r_bytes => {all => {'0' => 6},cnt => 6,max => 0,min => 0,sum => 0},InnoDB_IO_r_ops => {all => {'0' => 6},cnt => 6,max => 0,min => 0,sum => 0},InnoDB_IO_r_wait => {all => {'0' => 6},cnt => 6,max => '0.000000',min => '0.000000',sum => '0'},InnoDB_pages_distinct => {all => {'333' => 1,'343' => 4,'349' => 1},cnt => 6,max => 24,min => 11,sum => 107},InnoDB_queue_wait => {all => {'0' => 6},cnt => 6,max => '0.000000',min => '0.000000',sum => '0'},InnoDB_rec_lock_wait => {all => {'0' => 6},cnt => 6,max => '0.000000',min => '0.000000',sum => '0'},Lock_time => {all => {'0' => 1,'68' => 4,'69' => 1,'90' => 1,'93' => 1},cnt => 8,max => '0.000091',min => '0.000000',sum => '0.000304'},Merge_passes => {all => {'0' => 8},cnt => 8,max => 0,min => 0,sum => 0},QC_Hit => {cnt => 8,max => 0,min => 0,sum => 0},Query_time => {all => {'128' => 1,'129' => 4,'214' => 1,'277' => 1,'51' => 1},cnt => 8,max => '0.726052',min => '0.000012',sum => '0.76208'},Rows_examined => {all => {'0' => 7,'510' => 1},cnt => 8,max => 62951,min => 0,sum => 62951},Rows_sent => {all => {'0' => 8},cnt => 8,max => 0,min => 0,sum => 0},Tmp_table => {cnt => 8,max => 0,min => 0,sum => 0},bytes => {all => {'317' => 1,'360' => 2,'367' => 1,'368' => 1,'370' => 1,'379' => 1,'383' => 1},cnt => 8,max => 129,min => 5,sum => 502},db => {cnt => 7,max => 'db1',min => 'db1'},host => {cnt => 8,max => '',min => ''},pos_in_log => {all => {'0' => 1,'403' => 1,'421' => 1,'431' => 1,'438' => 1,'443' => 1,'447' => 1,'450' => 1},cnt => 8,max => 3332,min => 0,sum => 12811},ts => {cnt => 8,max => '071218 11:48:27',min => '071218 11:48:27'},user => {cnt => 8,max => '[SQL_SLAVE]',min => '[SQL_SLAVE]'}},samples => {'update d?tuningdetail_?_? n inner join d?gonzo a using(gonzo) set n.column? = a.column?, n.word? = a.word?' => {Disk_filesort => 'No',Disk_tmp_table => 'No',Filesort => 'No',Full_join => 'No',Full_scan => 'Yes',Lock_time => '0.000091',Merge_passes => '0',QC_Hit => 'No',Query_time => '0.726052',Rows_examined => '62951',Rows_sent => '0',Thread_id => '10',Tmp_table => 'No',arg => 'update db2.tuningdetail_21_265507 n $VAR1 = {attribute_types => {Filesort_on_disk => 'bool',Tmp_table_on_disk => 'bool',Error_no => 'string',Filesort => 'bool',Full_join => 'bool',Full_scan => 'bool',InnoDB_IO_r_bytes => 'num',InnoDB_IO_r_ops => 'num',InnoDB_IO_r_wait => 'num',InnoDB_pages_distinct => 'num',InnoDB_queue_wait => 'num',InnoDB_rec_lock_wait => 'num',Killed => 'bool',Last_errno => 'string',Lock_time => 'num',Merge_passes => 'num',QC_Hit => 'bool',Query_time => 'num',Rows_examined => 'num',Rows_sent => 'num',Statement_id => 'string',Status_code => 'string',Thread_id => 'string',Tmp_table => 'bool',bytes => 'num',db => 'string',host => 'string',key_print => 'string',pos_in_log => 'num',ts => 'string',user => 'string',val => 'string'},groupby => 'fingerprint',results => {classes => {'update d?tuningdetail_?_? n inner join d?gonzo a using(gonzo) set n.column? = a.column?, n.word? = a.word?' => {Filesort_on_disk => {cnt => 1,max => 0,min => 0,sum => 0,unq => {'0' => 1}},Tmp_table_on_disk => {cnt => 1,max => 0,min => 0,sum => 0,unq => {'0' => 1}},Filesort => {cnt => 1,max => 0,min => 0,sum => 0,unq => {'0' => 1}},Full_join => {cnt => 1,max => 0,min => 0,sum => 0,unq => {'0' => 1}},Full_scan => {cnt => 1,max => 1,min => 1,sum => 1,unq => {'1' => 1}},Lock_time => {all => {'93' => 1},cnt => 1,last => '0.000091',max => '0.000091',min => '0.000091',sum => '9.1e-05'},Merge_passes => {all => {'0' => 1},cnt => 1,last => 0,max => 0,min => 0,sum => 0},QC_Hit => {cnt => 1,max => 0,min => 0,sum => 0,unq => {'0' => 1}},Query_time => {all => {'277' => 1},cnt => 1,last => '0.726052',max => '0.726052',min => '0.726052',sum => '0.726052'},Rows_examined => {all => {'510' => 1},cnt => 1,last => 62951,max => 62951,min => 62951,sum => 62951},Rows_sent => {all => {'0' => 1},cnt => 1,last => 0,max => 0,min => 0,sum => 0},Tmp_table => {cnt => 1,max => 0,min => 0,sum => 0,unq => {'0' => 1}},bytes => {all => {'383' => 1},cnt => 1,last => 129,max => 129,min => 129,sum => 129},db => {cnt => 1,max => 'db1',min => 'db1',unq => {db1 => 1}},host => {cnt => 1,max => '',min => '',unq => {'' => 1}},pos_in_log => {all => {'403' => 1},cnt => 1,last => 332,max => 332,min => 332,sum => 332},ts => {cnt => 1,max => '071218 11:48:27',min => '071218 11:48:27',unq => {'071218 11:48:27' => 1}},user => {cnt => 1,max => '[SQL_SLAVE]',min => '[SQL_SLAVE]',unq => {'[SQL_SLAVE]' => 1}}}},globals => {Filesort_on_disk => {cnt => 8,max => 0,min => 0,sum => 0},Tmp_table_on_disk => {cnt => 8,max => 0,min => 0,sum => 0},Filesort => {cnt => 8,max => 0,min => 0,sum => 0},Full_join => {cnt => 8,max => 0,min => 0,sum => 0},Full_scan => {cnt => 8,max => 1,min => 0,sum => 1},InnoDB_IO_r_bytes => {all => {'0' => 6},cnt => 6,max => 0,min => 0,sum => 0},InnoDB_IO_r_ops => {all => {'0' => 6},cnt => 6,max => 0,min => 0,sum => 0},InnoDB_IO_r_wait => {all => {'0' => 6},cnt => 6,max => '0.000000',min => '0.000000',sum => '0'},InnoDB_pages_distinct => {all => {'333' => 1,'343' => 4,'349' => 1},cnt => 6,max => 24,min => 11,sum => 107},InnoDB_queue_wait => {all => {'0' => 6},cnt => 6,max => '0.000000',min => '0.000000',sum => '0'},InnoDB_rec_lock_wait => {all => {'0' => 6},cnt => 6,max => '0.000000',min => '0.000000',sum => '0'},Lock_time => {all => {'0' => 1,'68' => 4,'69' => 1,'90' => 1,'93' => 1},cnt => 8,max => '0.000091',min => '0.000000',sum => '0.000304'},Merge_passes => {all => {'0' => 8},cnt => 8,max => 0,min => 0,sum => 0},QC_Hit => {cnt => 8,max => 0,min => 0,sum => 0},Query_time => {all => {'128' => 1,'129' => 4,'214' => 1,'277' => 1,'51' => 1},cnt => 8,max => '0.726052',min => '0.000012',sum => '0.76208'},Rows_examined => {all => {'0' => 7,'510' => 1},cnt => 8,max => 62951,min => 0,sum => 62951},Rows_sent => {all => {'0' => 8},cnt => 8,max => 0,min => 0,sum => 0},Tmp_table => {cnt => 8,max => 0,min => 0,sum => 0},bytes => {all => {'317' => 1,'360' => 2,'367' => 1,'368' => 1,'370' => 1,'379' => 1,'383' => 1},cnt => 8,max => 129,min => 5,sum => 502},db => {cnt => 7,max => 'db1',min => 'db1'},host => {cnt => 8,max => '',min => ''},pos_in_log => {all => {'0' => 1,'403' => 1,'421' => 1,'431' => 1,'438' => 1,'443' => 1,'447' => 1,'450' => 1},cnt => 8,max => 3332,min => 0,sum => 12811},ts => {cnt => 8,max => '071218 11:48:27',min => '071218 11:48:27'},user => {cnt => 8,max => '[SQL_SLAVE]',min => '[SQL_SLAVE]'}},samples => {'update d?tuningdetail_?_? n inner join d?gonzo a using(gonzo) set n.column? = a.column?, n.word? = a.word?' => {Filesort_on_disk => 'No',Tmp_table_on_disk => 'No',Filesort => 'No',Full_join => 'No',Full_scan => 'Yes',Lock_time => '0.000091',Merge_passes => '0',QC_Hit => 'No',Query_time => '0.726052',Rows_examined => '62951',Rows_sent => '0',Thread_id => '10',Tmp_table => 'No',arg => 'update db2.tuningdetail_21_265507 n
inner join db1.gonzo a using(gonzo) inner join db1.gonzo a using(gonzo)
set n.column1 = a.column1, n.word3 = a.word3',bytes => 129,cmd => 'Query',db => 'db1',fingerprint => 'update d?tuningdetail_?_? n inner join d?gonzo a using(gonzo) set n.column? = a.column?, n.word? = a.word?',host => '',ip => '',pos_in_log => 332,timestamp => '1197996507',ts => '071218 11:48:27',user => '[SQL_SLAVE]'}}},worst => 'Query_time'}; set n.column1 = a.column1, n.word3 = a.word3',bytes => 129,cmd => 'Query',db => 'db1',fingerprint => 'update d?tuningdetail_?_? n inner join d?gonzo a using(gonzo) set n.column? = a.column?, n.word? = a.word?',host => '',ip => '',pos_in_log => 332,timestamp => '1197996507',ts => '071218 11:48:27',user => '[SQL_SLAVE]'}}},worst => 'Query_time'};

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,7 @@
# Time: 071218 11:48:27 # User@Host: [SQL_SLAVE] @ [] # Time: 071218 11:48:27 # User@Host: [SQL_SLAVE] @ []
# Thread_id: 10 # Thread_id: 10
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
SELECT id FROM issue_611.t WHERE id IN (1,2,3); SELECT id FROM issue_611.t WHERE id IN (1,2,3);

View File

@@ -2,8 +2,8 @@
# User@Host: [SQL_SLAVE][[SQL_SLAVE]] @ [] # User@Host: [SQL_SLAVE][[SQL_SLAVE]] @ []
# Thread_id: 10 # Thread_id: 10
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use foo; use foo;
SELECT col FROM foo_tbl; SELECT col FROM foo_tbl;
@@ -11,8 +11,8 @@ SELECT col FROM foo_tbl;
# User@Host: [SQL_SLAVE][[SQL_SLAVE]] @ [] # User@Host: [SQL_SLAVE][[SQL_SLAVE]] @ []
# Thread_id: 10 # Thread_id: 10
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use foo; use foo;
SELECT col FROM foo_tbl; SELECT col FROM foo_tbl;
@@ -20,8 +20,8 @@ SELECT col FROM foo_tbl;
# User@Host: [SQL_SLAVE][[SQL_SLAVE]] @ [] # User@Host: [SQL_SLAVE][[SQL_SLAVE]] @ []
# Thread_id: 20 # Thread_id: 20
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use bar; use bar;
SELECT col FROM bar_tbl; SELECT col FROM bar_tbl;
@@ -29,8 +29,8 @@ SELECT col FROM bar_tbl;
# User@Host: [SQL_SLAVE][[SQL_SLAVE]] @ [] # User@Host: [SQL_SLAVE][[SQL_SLAVE]] @ []
# Thread_id: 10 # Thread_id: 10
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use bar; use bar;
SELECT col FROM bar_tbl; SELECT col FROM bar_tbl;

View File

@@ -1,66 +1,66 @@
# Time: 090805 11:00:27 # Time: 090805 11:00:27
# Thread_id: 1 # Thread_id: 1
# Query_time: 0.726052 Lock_time: 0.100091 Rows_sent: 9 Rows_examined: 51 # Query_time: 0.726052 Lock_time: 0.100091 Rows_sent: 9 Rows_examined: 51
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db1; use db1;
SELECT * FROM foo; SELECT * FROM foo;
# Time: 090805 11:00:27 # Time: 090805 11:00:27
# Query_time: 1.726052 Lock_time: 0.010093 Rows_sent: 1 Rows_examined: 1 # Query_time: 1.726052 Lock_time: 0.010093 Rows_sent: 1 Rows_examined: 1
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db1; use db1;
SELECT id FROM tbl WHERE id = 1; SELECT id FROM tbl WHERE id = 1;
# Time: 090805 11:00:27 # Time: 090805 11:00:27
# Query_time: 9.000052 Lock_time: 0.000001 Rows_sent: 900 Rows_examined: 10000 # Query_time: 9.000052 Lock_time: 0.000001 Rows_sent: 900 Rows_examined: 10000
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: Yes Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: Yes Tmp_table_on_disk: No
# Filesort: No Disk_filesort: Yes Merge_passes: 1 # Filesort: No Filesort_on_disk: Yes Merge_passes: 1
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db1; use db1;
SELECT COUNT(*) FROM blah WHERE col > 2; SELECT COUNT(*) FROM blah WHERE col > 2;
# Time: 090805 12:00:27 # Time: 090805 12:00:27
# Thread_id: 2 # Thread_id: 2
# Query_time: 0.726052 Lock_time: 0.100091 Rows_sent: 9 Rows_examined: 51 # Query_time: 0.726052 Lock_time: 0.100091 Rows_sent: 9 Rows_examined: 51
# QC_Hit: Yes Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: Yes Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db1; use db1;
SELECT * FROM foo; SELECT * FROM foo;
# Time: 090805 12:00:27 # Time: 090805 12:00:27
# Query_time: 0.726052 Lock_time: 0.100091 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.726052 Lock_time: 0.100091 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db2; use db2;
INSERT INTO tbl VALUES ('a', 'b'); INSERT INTO tbl VALUES ('a', 'b');
# Time: 090805 12:00:27 # Time: 090805 12:00:27
# Query_time: 0.000052 Lock_time: 0.010091 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000052 Lock_time: 0.010091 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db2; use db2;
INSERT INTO tbl VALUES ('c', 'd'); INSERT INTO tbl VALUES ('c', 'd');
# Time: 090805 13:00:27 # Time: 090805 13:00:27
# Thread_id: 3 # Thread_id: 3
# Query_time: 1349.000052 Lock_time: 1349.000091 Rows_sent: 0 Rows_examined: 1928472 # Query_time: 1349.000052 Lock_time: 1349.000091 Rows_sent: 0 Rows_examined: 1928472
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: Yes Disk_tmp_table: Yes # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: Yes Tmp_table_on_disk: Yes
# Filesort: Yes Disk_filesort: Yes Merge_passes: 0 # Filesort: Yes Filesort_on_disk: Yes Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db3; use db3;
DELETE FROM forest WHERE animal = 'dead'; DELETE FROM forest WHERE animal = 'dead';
# Time: 090805 13:00:27 # Time: 090805 13:00:27
# Query_time: 0.926052 Lock_time: 0.097091 Rows_sent: 8 Rows_examined: 50 # Query_time: 0.926052 Lock_time: 0.097091 Rows_sent: 8 Rows_examined: 50
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db3; use db3;
SELECT * FROM foo; SELECT * FROM foo;
# Time: 090805 13:00:27 # Time: 090805 13:00:27
# Query_time: 0.526052 Lock_time: 0.037091 Rows_sent: 7 Rows_examined: 0 # Query_time: 0.526052 Lock_time: 0.037091 Rows_sent: 7 Rows_examined: 0
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db3; use db3;
SELECT * FROM foo; SELECT * FROM foo;

View File

@@ -1,60 +1,60 @@
# Time: 090805 11:00:27 # Time: 090805 11:00:27
# Thread_id: 1 # Thread_id: 1
# Query_time: 0.726052 Lock_time: 0.100091 Rows_sent: 9 Rows_examined: 51 # Query_time: 0.726052 Lock_time: 0.100091 Rows_sent: 9 Rows_examined: 51
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db1; use db1;
SELECT * FROM foo; SELECT * FROM foo;
# Query_time: 1.726052 Lock_time: 0.010093 Rows_sent: 1 Rows_examined: 1 # Query_time: 1.726052 Lock_time: 0.010093 Rows_sent: 1 Rows_examined: 1
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db1; use db1;
SELECT id FROM tbl WHERE id = 1; SELECT id FROM tbl WHERE id = 1;
# Query_time: 9.000052 Lock_time: 0.000001 Rows_sent: 900 Rows_examined: 10000 # Query_time: 9.000052 Lock_time: 0.000001 Rows_sent: 900 Rows_examined: 10000
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: Yes Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: Yes Tmp_table_on_disk: No
# Filesort: No Disk_filesort: Yes Merge_passes: 1 # Filesort: No Filesort_on_disk: Yes Merge_passes: 1
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db1; use db1;
SELECT COUNT(*) FROM blah WHERE col > 2; SELECT COUNT(*) FROM blah WHERE col > 2;
# Time: 090805 12:00:27 # Time: 090805 12:00:27
# Thread_id: 2 # Thread_id: 2
# Query_time: 0.726052 Lock_time: 0.100091 Rows_sent: 9 Rows_examined: 51 # Query_time: 0.726052 Lock_time: 0.100091 Rows_sent: 9 Rows_examined: 51
# QC_Hit: Yes Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: Yes Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db1; use db1;
SELECT * FROM foo; SELECT * FROM foo;
# Query_time: 0.726052 Lock_time: 0.100091 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.726052 Lock_time: 0.100091 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db2; use db2;
INSERT INTO tbl VALUES ('a', 'b'); INSERT INTO tbl VALUES ('a', 'b');
# Query_time: 0.000052 Lock_time: 0.010091 Rows_sent: 0 Rows_examined: 0 # Query_time: 0.000052 Lock_time: 0.010091 Rows_sent: 0 Rows_examined: 0
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db2; use db2;
INSERT INTO tbl VALUES ('c', 'd'); INSERT INTO tbl VALUES ('c', 'd');
# Time: 090805 13:00:27 # Time: 090805 13:00:27
# Thread_id: 3 # Thread_id: 3
# Query_time: 1349.000052 Lock_time: 1349.000091 Rows_sent: 0 Rows_examined: 1928472 # Query_time: 1349.000052 Lock_time: 1349.000091 Rows_sent: 0 Rows_examined: 1928472
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: Yes Disk_tmp_table: Yes # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: Yes Tmp_table_on_disk: Yes
# Filesort: Yes Disk_filesort: Yes Merge_passes: 0 # Filesort: Yes Filesort_on_disk: Yes Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db3; use db3;
DELETE FROM forest WHERE animal = 'dead'; DELETE FROM forest WHERE animal = 'dead';
# Query_time: 0.926052 Lock_time: 0.097091 Rows_sent: 8 Rows_examined: 50 # Query_time: 0.926052 Lock_time: 0.097091 Rows_sent: 8 Rows_examined: 50
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db3; use db3;
SELECT * FROM foo; SELECT * FROM foo;
# Query_time: 0.526052 Lock_time: 0.037091 Rows_sent: 7 Rows_examined: 0 # Query_time: 0.526052 Lock_time: 0.037091 Rows_sent: 7 Rows_examined: 0
# QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Disk_tmp_table: No # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Disk_filesort: No Merge_passes: 0 # Filesort: No Filesort_on_disk: No Merge_passes: 0
# No InnoDB statistics available for this query # No InnoDB statistics available for this query
use db3; use db3;
SELECT * FROM foo; SELECT * FROM foo;