mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 05:29:30 +00:00
Add forked Maatkit tools in bin/ and their tests in t/.
This commit is contained in:
4
t/pt-index-usage/samples/slow001-report-drop-all.txt
Normal file
4
t/pt-index-usage/samples/slow001-report-drop-all.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
ALTER TABLE `sakila`.`film_text` DROP KEY `PRIMARY`; -- type:primary key
|
||||
|
||||
ALTER TABLE `sakila`.`film_text` DROP KEY `idx_title_description`; -- type:non-unique
|
2
t/pt-index-usage/samples/slow001-report.txt
Normal file
2
t/pt-index-usage/samples/slow001-report.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
ALTER TABLE `sakila`.`film_text` DROP KEY `idx_title_description`; -- type:non-unique
|
4
t/pt-index-usage/samples/slow001.txt
Normal file
4
t/pt-index-usage/samples/slow001.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
# Time: 071015 21:43:52
|
||||
# Query_time: 2 Lock_time: 0 Rows_sent: 1 Rows_examined: 0
|
||||
use sakila;
|
||||
select * from film_text;
|
2
t/pt-index-usage/samples/slow002-report.txt
Normal file
2
t/pt-index-usage/samples/slow002-report.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
ALTER TABLE `sakila`.`film_text` DROP KEY `idx_title_description`; -- type:non-unique
|
4
t/pt-index-usage/samples/slow002.txt
Normal file
4
t/pt-index-usage/samples/slow002.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
# Time: 071015 21:43:52
|
||||
# Query_time: 2 Lock_time: 0 Rows_sent: 1 Rows_examined: 0
|
||||
use sakila;
|
||||
select * from film_text where film_id=5;
|
4
t/pt-index-usage/samples/slow003.txt
Normal file
4
t/pt-index-usage/samples/slow003.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
# Time: 071015 21:43:52
|
||||
# Query_time: 2 Lock_time: 0 Rows_sent: 1 Rows_examined: 0
|
||||
use sakila;
|
||||
EXPLAIN select * from film_text where match(title, description) against ('DINOSAUR');
|
10
t/pt-index-usage/samples/slow004.txt
Normal file
10
t/pt-index-usage/samples/slow004.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
# Time: 071015 21:43:52
|
||||
# User@Host: root[root] @ localhost []
|
||||
# Query_time: 2 Lock_time: 0 Rows_sent: 1 Rows_examined: 0
|
||||
use sakila;
|
||||
select * from nonexistent_table;
|
||||
# Time: 071015 21:43:52
|
||||
# User@Host: root[root] @ localhost []
|
||||
# Query_time: 2 Lock_time: 0 Rows_sent: 1 Rows_examined: 0
|
||||
use sakila;
|
||||
select * from nonexistent_table;
|
2
t/pt-index-usage/samples/slow005-report.txt
Normal file
2
t/pt-index-usage/samples/slow005-report.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
ALTER TABLE `sakila`.`inventory` DROP KEY `idx_fk_film_id`, DROP KEY `idx_store_id_film_id`; -- type:non-unique
|
5
t/pt-index-usage/samples/slow005.txt
Normal file
5
t/pt-index-usage/samples/slow005.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
# Time: 071015 21:43:52
|
||||
# User@Host: root[root] @ localhost []
|
||||
# Query_time: 2 Lock_time: 0 Rows_sent: 1 Rows_examined: 0
|
||||
use sakila;
|
||||
select * from sakila.inventory where inventory_id=10;
|
2
t/pt-index-usage/samples/slow006-report.txt
Normal file
2
t/pt-index-usage/samples/slow006-report.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
ALTER TABLE `sakila`.`film_text` DROP KEY `idx_title_description`; -- type:non-unique
|
3
t/pt-index-usage/samples/slow006.txt
Normal file
3
t/pt-index-usage/samples/slow006.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
# Time: 071015 21:43:52
|
||||
# Query_time: 2 Lock_time: 0 Rows_sent: 1 Rows_examined: 0
|
||||
select * from film_text;
|
17
t/pt-index-usage/samples/slow007.txt
Normal file
17
t/pt-index-usage/samples/slow007.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
# Time: 101010 00:00:01
|
||||
# User@Host: root[root] @ localhost []
|
||||
# Query_time: 1 Lock_time: 0 Rows_sent: 100 Rows_examined: 0
|
||||
use sakila;
|
||||
select * from sakila.actor where actor_id>10;
|
||||
# Time: 101010 00:0002
|
||||
# User@Host: root[root] @ localhost []
|
||||
# Query_time: 1 Lock_time: 0 Rows_sent: 100 Rows_examined: 0
|
||||
select * from sakila.actor where actor_id>10;
|
||||
# Time: 101010 00:0003
|
||||
# User@Host: root[root] @ localhost []
|
||||
# Query_time: 1 Lock_time: 0 Rows_sent: 100 Rows_examined: 0
|
||||
select * from sakila.actor where last_name like 'A%';
|
||||
# Time: 101010 00:0004
|
||||
# User@Host: root[root] @ localhost []
|
||||
# Query_time: 1 Lock_time: 0 Rows_sent: 100 Rows_examined: 0
|
||||
select * from sakila.actor where last_name like 'A%' order by actor_id;
|
Reference in New Issue
Block a user