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
2d192034
Commit
2d192034
authored
Jan 18, 2012
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust test results after Monty's push of the new
handler counter Handler_read_rnd_deleted.
parent
b17ddae8
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
54 additions
and
5 deletions
+54
-5
mysql-test/r/insert_select.result
mysql-test/r/insert_select.result
+1
-0
mysql-test/r/join.result
mysql-test/r/join.result
+2
-0
mysql-test/r/select.result
mysql-test/r/select.result
+1
-0
mysql-test/r/select_jcl6.result
mysql-test/r/select_jcl6.result
+2
-1
mysql-test/r/subselect3.result
mysql-test/r/subselect3.result
+1
-0
mysql-test/r/subselect3_jcl6.result
mysql-test/r/subselect3_jcl6.result
+1
-0
mysql-test/r/subselect_cache.result
mysql-test/r/subselect_cache.result
+32
-2
mysql-test/r/update.result
mysql-test/r/update.result
+12
-2
mysql-test/r/view.result
mysql-test/r/view.result
+2
-0
No files found.
mysql-test/r/insert_select.result
View file @
2d192034
...
@@ -697,6 +697,7 @@ Handler_read_key 0
...
@@ -697,6 +697,7 @@ Handler_read_key 0
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 1
Handler_read_rnd_next 1
DROP TABLE t1;
DROP TABLE t1;
CREATE TABLE t1 (
CREATE TABLE t1 (
...
...
mysql-test/r/join.result
View file @
2d192034
...
@@ -860,6 +860,7 @@ Handler_read_key 0
...
@@ -860,6 +860,7 @@ Handler_read_key 0
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 5
Handler_read_rnd_next 5
drop table t1, t2, t3;
drop table t1, t2, t3;
create table t1 (a int);
create table t1 (a int);
...
@@ -1269,6 +1270,7 @@ Handler_read_key 1
...
@@ -1269,6 +1270,7 @@ Handler_read_key 1
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 1
Handler_read_rnd_next 1
DROP TABLE t1, t2;
DROP TABLE t1, t2;
End of 5.1 tests
End of 5.1 tests
...
...
mysql-test/r/select.result
View file @
2d192034
...
@@ -4342,6 +4342,7 @@ Handler_read_key 2
...
@@ -4342,6 +4342,7 @@ Handler_read_key 2
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 6
Handler_read_rnd_next 6
DROP TABLE t1, t2;
DROP TABLE t1, t2;
CREATE TABLE t1 (f1 bigint(20) NOT NULL default '0',
CREATE TABLE t1 (f1 bigint(20) NOT NULL default '0',
...
...
mysql-test/r/select_jcl6.result
View file @
2d192034
...
@@ -4353,7 +4353,8 @@ Handler_read_key 2
...
@@ -4353,7 +4353,8 @@ Handler_read_key 2
Handler_read_next 10
Handler_read_next 10
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 10
Handler_read_rnd 10
Handler_read_rnd_next 7
Handler_read_rnd_deleted 1
Handler_read_rnd_next 6
DROP TABLE t1, t2;
DROP TABLE t1, t2;
CREATE TABLE t1 (f1 bigint(20) NOT NULL default '0',
CREATE TABLE t1 (f1 bigint(20) NOT NULL default '0',
f2 int(11) NOT NULL default '0',
f2 int(11) NOT NULL default '0',
...
...
mysql-test/r/subselect3.result
View file @
2d192034
...
@@ -124,6 +124,7 @@ Handler_read_key 0
...
@@ -124,6 +124,7 @@ Handler_read_key 0
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 50
Handler_read_rnd_next 50
select 'No key lookups, seq reads: 29= 5 reads from t2 + 4 * 6 reads from t1.' Z;
select 'No key lookups, seq reads: 29= 5 reads from t2 + 4 * 6 reads from t1.' Z;
Z
Z
...
...
mysql-test/r/subselect3_jcl6.result
View file @
2d192034
...
@@ -134,6 +134,7 @@ Handler_read_key 0
...
@@ -134,6 +134,7 @@ Handler_read_key 0
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 50
Handler_read_rnd_next 50
select 'No key lookups, seq reads: 29= 5 reads from t2 + 4 * 6 reads from t1.' Z;
select 'No key lookups, seq reads: 29= 5 reads from t2 + 4 * 6 reads from t1.' Z;
Z
Z
...
...
mysql-test/r/subselect_cache.result
View file @
2d192034
...
@@ -36,6 +36,7 @@ Handler_read_key 7
...
@@ -36,6 +36,7 @@ Handler_read_key 7
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 31
Handler_read_rnd_next 31
set optimizer_switch='subquery_cache=off';
set optimizer_switch='subquery_cache=off';
flush status;
flush status;
...
@@ -62,6 +63,7 @@ Handler_read_key 0
...
@@ -62,6 +63,7 @@ Handler_read_key 0
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 61
Handler_read_rnd_next 61
set optimizer_switch='subquery_cache=on';
set optimizer_switch='subquery_cache=on';
#single value subquery test (where)
#single value subquery test (where)
...
@@ -87,6 +89,7 @@ Handler_read_key 7
...
@@ -87,6 +89,7 @@ Handler_read_key 7
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 31
Handler_read_rnd_next 31
set optimizer_switch='subquery_cache=off';
set optimizer_switch='subquery_cache=off';
flush status;
flush status;
...
@@ -111,6 +114,7 @@ Handler_read_key 0
...
@@ -111,6 +114,7 @@ Handler_read_key 0
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 61
Handler_read_rnd_next 61
set optimizer_switch='subquery_cache=on';
set optimizer_switch='subquery_cache=on';
#single value subquery test (having)
#single value subquery test (having)
...
@@ -136,6 +140,7 @@ Handler_read_key 7
...
@@ -136,6 +140,7 @@ Handler_read_key 7
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 31
Handler_read_rnd_next 31
set optimizer_switch='subquery_cache=off';
set optimizer_switch='subquery_cache=off';
flush status;
flush status;
...
@@ -160,6 +165,7 @@ Handler_read_key 0
...
@@ -160,6 +165,7 @@ Handler_read_key 0
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 61
Handler_read_rnd_next 61
set optimizer_switch='subquery_cache=on';
set optimizer_switch='subquery_cache=on';
#single value subquery test (OUTER JOIN ON)
#single value subquery test (OUTER JOIN ON)
...
@@ -257,6 +263,7 @@ Handler_read_key 7
...
@@ -257,6 +263,7 @@ Handler_read_key 7
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 442
Handler_read_rnd_next 442
set optimizer_switch='subquery_cache=off';
set optimizer_switch='subquery_cache=off';
flush status;
flush status;
...
@@ -353,6 +360,7 @@ Handler_read_key 0
...
@@ -353,6 +360,7 @@ Handler_read_key 0
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 472
Handler_read_rnd_next 472
set optimizer_switch='subquery_cache=on';
set optimizer_switch='subquery_cache=on';
#single value subquery test (GROUP BY)
#single value subquery test (GROUP BY)
...
@@ -374,6 +382,7 @@ Handler_read_key 17
...
@@ -374,6 +382,7 @@ Handler_read_key 17
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 4
Handler_read_rnd 4
Handler_read_rnd_deleted 0
Handler_read_rnd_next 36
Handler_read_rnd_next 36
set optimizer_switch='subquery_cache=off';
set optimizer_switch='subquery_cache=off';
flush status;
flush status;
...
@@ -394,6 +403,7 @@ Handler_read_key 10
...
@@ -394,6 +403,7 @@ Handler_read_key 10
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 4
Handler_read_rnd 4
Handler_read_rnd_deleted 0
Handler_read_rnd_next 86
Handler_read_rnd_next 86
set optimizer_switch='subquery_cache=on';
set optimizer_switch='subquery_cache=on';
#single value subquery test (distinct GROUP BY)
#single value subquery test (distinct GROUP BY)
...
@@ -415,6 +425,7 @@ Handler_read_key 17
...
@@ -415,6 +425,7 @@ Handler_read_key 17
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 4
Handler_read_rnd 4
Handler_read_rnd_deleted 0
Handler_read_rnd_next 41
Handler_read_rnd_next 41
set optimizer_switch='subquery_cache=off';
set optimizer_switch='subquery_cache=off';
flush status;
flush status;
...
@@ -435,6 +446,7 @@ Handler_read_key 10
...
@@ -435,6 +446,7 @@ Handler_read_key 10
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 4
Handler_read_rnd 4
Handler_read_rnd_deleted 0
Handler_read_rnd_next 91
Handler_read_rnd_next 91
set optimizer_switch='subquery_cache=on';
set optimizer_switch='subquery_cache=on';
#single value subquery test (ORDER BY)
#single value subquery test (ORDER BY)
...
@@ -462,6 +474,7 @@ Handler_read_key 7
...
@@ -462,6 +474,7 @@ Handler_read_key 7
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 10
Handler_read_rnd 10
Handler_read_rnd_deleted 0
Handler_read_rnd_next 42
Handler_read_rnd_next 42
set optimizer_switch='subquery_cache=off';
set optimizer_switch='subquery_cache=off';
flush status;
flush status;
...
@@ -488,6 +501,7 @@ Handler_read_key 0
...
@@ -488,6 +501,7 @@ Handler_read_key 0
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 10
Handler_read_rnd 10
Handler_read_rnd_deleted 0
Handler_read_rnd_next 72
Handler_read_rnd_next 72
set optimizer_switch='subquery_cache=on';
set optimizer_switch='subquery_cache=on';
#single value subquery test (distinct ORDER BY)
#single value subquery test (distinct ORDER BY)
...
@@ -509,7 +523,8 @@ Handler_read_key 7
...
@@ -509,7 +523,8 @@ Handler_read_key 7
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 4
Handler_read_rnd 4
Handler_read_rnd_next 37
Handler_read_rnd_deleted 1
Handler_read_rnd_next 36
set optimizer_switch='subquery_cache=off';
set optimizer_switch='subquery_cache=off';
flush status;
flush status;
select distinct a from t1 ORDER BY (select d from t2 where b=c);
select distinct a from t1 ORDER BY (select d from t2 where b=c);
...
@@ -529,7 +544,8 @@ Handler_read_key 0
...
@@ -529,7 +544,8 @@ Handler_read_key 0
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 4
Handler_read_rnd 4
Handler_read_rnd_next 67
Handler_read_rnd_deleted 1
Handler_read_rnd_next 66
set optimizer_switch='subquery_cache=on';
set optimizer_switch='subquery_cache=on';
#single value subquery test (LEFT JOIN ON)
#single value subquery test (LEFT JOIN ON)
flush status;
flush status;
...
@@ -626,6 +642,7 @@ Handler_read_key 70
...
@@ -626,6 +642,7 @@ Handler_read_key 70
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 141
Handler_read_rnd_next 141
set optimizer_switch='subquery_cache=off';
set optimizer_switch='subquery_cache=off';
flush status;
flush status;
...
@@ -722,6 +739,7 @@ Handler_read_key 0
...
@@ -722,6 +739,7 @@ Handler_read_key 0
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 671
Handler_read_rnd_next 671
set optimizer_switch='subquery_cache=on';
set optimizer_switch='subquery_cache=on';
#single value subquery test (PS)
#single value subquery test (PS)
...
@@ -1345,6 +1363,7 @@ Handler_read_key 11
...
@@ -1345,6 +1363,7 @@ Handler_read_key 11
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 145
Handler_read_rnd_next 145
set optimizer_switch='subquery_cache=on';
set optimizer_switch='subquery_cache=on';
flush status;
flush status;
...
@@ -1373,6 +1392,7 @@ Handler_read_key 32
...
@@ -1373,6 +1392,7 @@ Handler_read_key 32
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 84
Handler_read_rnd_next 84
#several subqueries (several levels)
#several subqueries (several levels)
set optimizer_switch='subquery_cache=off';
set optimizer_switch='subquery_cache=off';
...
@@ -1404,6 +1424,7 @@ Handler_read_key 0
...
@@ -1404,6 +1424,7 @@ Handler_read_key 0
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 127
Handler_read_rnd_next 127
set optimizer_switch='subquery_cache=on';
set optimizer_switch='subquery_cache=on';
flush status;
flush status;
...
@@ -1432,6 +1453,7 @@ Handler_read_key 13
...
@@ -1432,6 +1453,7 @@ Handler_read_key 13
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 69
Handler_read_rnd_next 69
#clean up
#clean up
drop table t1,t2;
drop table t1,t2;
...
@@ -1621,6 +1643,7 @@ Handler_read_key 15
...
@@ -1621,6 +1643,7 @@ Handler_read_key 15
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 8
Handler_read_rnd 8
Handler_read_rnd_deleted 0
Handler_read_rnd_next 57
Handler_read_rnd_next 57
set optimizer_switch='subquery_cache=on';
set optimizer_switch='subquery_cache=on';
flush status;
flush status;
...
@@ -1645,6 +1668,7 @@ Handler_read_key 21
...
@@ -1645,6 +1668,7 @@ Handler_read_key 21
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 8
Handler_read_rnd 8
Handler_read_rnd_deleted 0
Handler_read_rnd_next 37
Handler_read_rnd_next 37
argument of aggregate function as parameter of subquery (illegal use)
argument of aggregate function as parameter of subquery (illegal use)
set optimizer_switch='subquery_cache=off';
set optimizer_switch='subquery_cache=off';
...
@@ -1670,6 +1694,7 @@ Handler_read_key 15
...
@@ -1670,6 +1694,7 @@ Handler_read_key 15
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 8
Handler_read_rnd 8
Handler_read_rnd_deleted 0
Handler_read_rnd_next 57
Handler_read_rnd_next 57
set optimizer_switch='subquery_cache=on';
set optimizer_switch='subquery_cache=on';
flush status;
flush status;
...
@@ -1694,6 +1719,7 @@ Handler_read_key 22
...
@@ -1694,6 +1719,7 @@ Handler_read_key 22
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 8
Handler_read_rnd 8
Handler_read_rnd_deleted 0
Handler_read_rnd_next 41
Handler_read_rnd_next 41
drop table t1,t2;
drop table t1,t2;
#test of flattening subquery optimisations and cache
#test of flattening subquery optimisations and cache
...
@@ -1734,6 +1760,7 @@ Handler_read_key 15
...
@@ -1734,6 +1760,7 @@ Handler_read_key 15
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 16
Handler_read_rnd_next 16
alter table t2 drop primary key;
alter table t2 drop primary key;
set optimizer_switch='default,semijoin=off,materialization=off,subquery_cache=off';
set optimizer_switch='default,semijoin=off,materialization=off,subquery_cache=off';
...
@@ -1770,6 +1797,7 @@ Handler_read_key 0
...
@@ -1770,6 +1797,7 @@ Handler_read_key 0
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 151
Handler_read_rnd_next 151
set optimizer_switch='default,semijoin=off,materialization=off,subquery_cache=on';
set optimizer_switch='default,semijoin=off,materialization=off,subquery_cache=on';
explain select * from t1 where a in (select pk from t2);
explain select * from t1 where a in (select pk from t2);
...
@@ -1805,6 +1833,7 @@ Handler_read_key 15
...
@@ -1805,6 +1833,7 @@ Handler_read_key 15
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 43
Handler_read_rnd_next 43
set optimizer_switch='default,semijoin=off,materialization=on,subquery_cache=on';
set optimizer_switch='default,semijoin=off,materialization=on,subquery_cache=on';
explain select * from t1 where a in (select pk from t2);
explain select * from t1 where a in (select pk from t2);
...
@@ -1840,6 +1869,7 @@ Handler_read_key 18
...
@@ -1840,6 +1869,7 @@ Handler_read_key 18
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 27
Handler_read_rnd_next 27
drop table t0,t1,t2;
drop table t0,t1,t2;
set optimizer_switch='default';
set optimizer_switch='default';
...
...
mysql-test/r/update.result
View file @
2d192034
...
@@ -276,6 +276,7 @@ Handler_read_key 0
...
@@ -276,6 +276,7 @@ Handler_read_key 0
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 0
Handler_read_rnd_next 0
flush status;
flush status;
update t1 set a=9999 order by a limit 1;
update t1 set a=9999 order by a limit 1;
...
@@ -287,6 +288,7 @@ Handler_read_key 0
...
@@ -287,6 +288,7 @@ Handler_read_key 0
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 2
Handler_read_rnd 2
Handler_read_rnd_deleted 0
Handler_read_rnd_next 9
Handler_read_rnd_next 9
flush status;
flush status;
delete from t1 order by a limit 1;
delete from t1 order by a limit 1;
...
@@ -297,6 +299,7 @@ Handler_read_key 0
...
@@ -297,6 +299,7 @@ Handler_read_key 0
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 0
Handler_read_rnd_next 0
flush status;
flush status;
delete from t1 order by a desc limit 1;
delete from t1 order by a desc limit 1;
...
@@ -307,7 +310,8 @@ Handler_read_key 0
...
@@ -307,7 +310,8 @@ Handler_read_key 0
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 1
Handler_read_rnd 1
Handler_read_rnd_next 9
Handler_read_rnd_deleted 1
Handler_read_rnd_next 8
alter table t1 disable keys;
alter table t1 disable keys;
flush status;
flush status;
delete from t1 order by a limit 1;
delete from t1 order by a limit 1;
...
@@ -318,7 +322,8 @@ Handler_read_key 0
...
@@ -318,7 +322,8 @@ Handler_read_key 0
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 1
Handler_read_rnd 1
Handler_read_rnd_next 9
Handler_read_rnd_deleted 2
Handler_read_rnd_next 7
select * from t1;
select * from t1;
a b
a b
0 0
0 0
...
@@ -371,6 +376,7 @@ Handler_read_key 1
...
@@ -371,6 +376,7 @@ Handler_read_key 1
Handler_read_next 1
Handler_read_next 1
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 1
Handler_read_rnd 1
Handler_read_rnd_deleted 0
Handler_read_rnd_next 0
Handler_read_rnd_next 0
drop table t1, t2;
drop table t1, t2;
create table t1(f1 int, `*f2` int);
create table t1(f1 int, `*f2` int);
...
@@ -408,6 +414,7 @@ Handler_read_key 1
...
@@ -408,6 +414,7 @@ Handler_read_key 1
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 0
Handler_read_rnd_next 0
SELECT user_id FROM t1 WHERE request_id=999999999999999999999999999999;
SELECT user_id FROM t1 WHERE request_id=999999999999999999999999999999;
user_id
user_id
...
@@ -418,6 +425,7 @@ Handler_read_key 2
...
@@ -418,6 +425,7 @@ Handler_read_key 2
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 0
Handler_read_rnd_next 0
UPDATE t1 SET user_id=null WHERE request_id=9999999999999;
UPDATE t1 SET user_id=null WHERE request_id=9999999999999;
show status like '%Handler_read%';
show status like '%Handler_read%';
...
@@ -427,6 +435,7 @@ Handler_read_key 3
...
@@ -427,6 +435,7 @@ Handler_read_key 3
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 0
Handler_read_rnd_next 0
UPDATE t1 SET user_id=null WHERE request_id=999999999999999999999999999999;
UPDATE t1 SET user_id=null WHERE request_id=999999999999999999999999999999;
show status like '%Handler_read%';
show status like '%Handler_read%';
...
@@ -436,6 +445,7 @@ Handler_read_key 3
...
@@ -436,6 +445,7 @@ Handler_read_key 3
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 0
Handler_read_rnd_next 0
DROP TABLE t1;
DROP TABLE t1;
CREATE TABLE t1 (
CREATE TABLE t1 (
...
...
mysql-test/r/view.result
View file @
2d192034
...
@@ -3959,6 +3959,7 @@ Handler_read_key 1
...
@@ -3959,6 +3959,7 @@ Handler_read_key 1
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 17
Handler_read_rnd_next 17
CREATE VIEW v AS SELECT * FROM t2;
CREATE VIEW v AS SELECT * FROM t2;
EXPLAIN EXTENDED
EXPLAIN EXTENDED
...
@@ -3980,6 +3981,7 @@ Handler_read_key 1
...
@@ -3980,6 +3981,7 @@ Handler_read_key 1
Handler_read_next 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 17
Handler_read_rnd_next 17
DROP VIEW v;
DROP VIEW v;
DROP TABLE t1, t2;
DROP TABLE t1, t2;
...
...
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