mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-14 07:06:28 +00:00
Add forked Maatkit tools in bin/ and their tests in t/.
This commit is contained in:
24
t/pt-table-usage/samples/in/slow001.txt
Normal file
24
t/pt-table-usage/samples/in/slow001.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
# Time: 071218 11:48:27
|
||||
# Thread_id: 10 Query_id: 1
|
||||
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
|
||||
select * from t;
|
||||
# Time: 071218 11:48:27
|
||||
# Thread_id: 10 Query_id: 2
|
||||
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
|
||||
select * from t1, t2 as x, t3 y, z;
|
||||
# Time: 071218 11:48:27
|
||||
# Thread_id: 10 Query_id: 3
|
||||
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
|
||||
insert into t values (1, 2, 3);
|
||||
# Time: 071218 11:48:27
|
||||
# Thread_id: 10 Query_id: 4
|
||||
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
|
||||
delete from t where id < 1000;
|
||||
# Time: 071218 11:48:27
|
||||
# Thread_id: 10 Query_id: 5
|
||||
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
|
||||
select * from a as t1, b as t2 where t1.id=t2.id;
|
||||
# Time: 071218 11:48:27
|
||||
# Thread_id: 10 Query_id: 6
|
||||
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
|
||||
replace into t set foo='bar';
|
20
t/pt-table-usage/samples/in/slow002.txt
Normal file
20
t/pt-table-usage/samples/in/slow002.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
# Time: 071218 11:48:27
|
||||
# Thread_id: 10 Query_id: 1
|
||||
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
|
||||
UPDATE t1 AS a JOIN t2 AS b USING (id) SET a.foo="bar" WHERE b.foo IS NOT NULL;
|
||||
# Time: 071218 11:48:27
|
||||
# Thread_id: 10 Query_id: 2
|
||||
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
|
||||
UPDATE t1 AS a JOIN t2 AS b USING (id) SET a.foo="bar", b.foo="bat" WHERE a.id=1;
|
||||
# Time: 071218 11:48:27
|
||||
# Thread_id: 10 Query_id: 3
|
||||
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
|
||||
UPDATE t1 INNER JOIN t2 USING (id) SET t1.foo="bar" WHERE t2.id=1;
|
||||
# Time: 071218 11:48:27
|
||||
# Thread_id: 10 Query_id: 4
|
||||
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
|
||||
insert into t1 (a, b, c) select x, y, z from t2 where x is not null;
|
||||
# Time: 071218 11:48:27
|
||||
# Thread_id: 10 Query_id: 5
|
||||
# Query_time: 0.000012 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
|
||||
insert into t (a, b, c) select a.x, a.y, b.z from a, b where a.id=b.id;
|
3
t/pt-table-usage/samples/in/slow003.txt
Normal file
3
t/pt-table-usage/samples/in/slow003.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
# Time: 110422 11:28:00
|
||||
# Query_time: 0.000300 Lock_time: 0.000000 Rows_sent: 1 Rows_examined: 1
|
||||
select country.country, city.city from city join country using (country_id) where country = 'Brazil' and city like 'A%' limit 1;
|
Reference in New Issue
Block a user