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
6b761d86
Commit
6b761d86
authored
Aug 04, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge deer.(none):/home/hf/work/mysql-4.1.clean
into deer.(none):/home/hf/work/mysql-4.1.9508
parents
999b0638
6d63bc0e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
164 additions
and
138 deletions
+164
-138
mysql-test/r/query_cache.result
mysql-test/r/query_cache.result
+0
-76
mysql-test/r/query_cache_notembedded.result
mysql-test/r/query_cache_notembedded.result
+83
-0
mysql-test/t/query_cache.test
mysql-test/t/query_cache.test
+0
-62
mysql-test/t/query_cache_notembedded.test
mysql-test/t/query_cache_notembedded.test
+81
-0
No files found.
mysql-test/r/query_cache.result
View file @
6b761d86
...
...
@@ -152,82 +152,6 @@ show status like "Qcache_queries_in_cache";
Variable_name Value
Qcache_queries_in_cache 0
drop table t1, t2, t3;
create table t1 (a int not null);
insert into t1 values (1),(2),(3);
create table t2 (a int not null);
insert into t2 values (1),(2),(3);
select * from t1;
a
1
2
3
select * from t2;
a
1
2
3
insert into t1 values (4);
show status like "Qcache_free_blocks";
Variable_name Value
Qcache_free_blocks 2
flush query cache;
show status like "Qcache_free_blocks";
Variable_name Value
Qcache_free_blocks 1
drop table t1, t2;
create table t1 (a text not null);
create table t11 (a text not null);
create table t2 (a text not null);
create table t21 (a text not null);
create table t3 (a text not null);
insert into t1 values("1111111111111111111111111111111111111111111111111111");
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t11 select * from t1;
insert into t21 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t3 select * from t1;
insert into t3 select * from t2;
insert into t3 select * from t1;
select * from t11;
select * from t21;
show status like "Qcache_total_blocks";
Variable_name Value
Qcache_total_blocks 7
show status like "Qcache_free_blocks";
Variable_name Value
Qcache_free_blocks 1
insert into t11 values("");
select * from t3;
show status like "Qcache_total_blocks";
Variable_name Value
Qcache_total_blocks 8
show status like "Qcache_free_blocks";
Variable_name Value
Qcache_free_blocks 1
flush query cache;
show status like "Qcache_total_blocks";
Variable_name Value
Qcache_total_blocks 7
show status like "Qcache_free_blocks";
Variable_name Value
Qcache_free_blocks 1
drop table t1, t2, t3, t11, t21;
set query_cache_type=demand;
create table t1 (a int not null);
insert into t1 values (1),(2),(3);
...
...
mysql-test/r/query_cache_notembedded.result
0 → 100644
View file @
6b761d86
set GLOBAL query_cache_size=1355776;
flush query cache;
flush query cache;
reset query cache;
flush status;
drop table if exists t1, t2, t3, t11, t21;
create table t1 (a int not null);
insert into t1 values (1),(2),(3);
create table t2 (a int not null);
insert into t2 values (1),(2),(3);
select * from t1;
a
1
2
3
select * from t2;
a
1
2
3
insert into t1 values (4);
show status like "Qcache_free_blocks";
Variable_name Value
Qcache_free_blocks 2
flush query cache;
show status like "Qcache_free_blocks";
Variable_name Value
Qcache_free_blocks 1
drop table t1, t2;
create table t1 (a text not null);
create table t11 (a text not null);
create table t2 (a text not null);
create table t21 (a text not null);
create table t3 (a text not null);
insert into t1 values("1111111111111111111111111111111111111111111111111111");
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t11 select * from t1;
insert into t21 select * from t1;
insert into t1 select * from t2;
insert into t2 select * from t1;
insert into t1 select * from t2;
insert into t3 select * from t1;
insert into t3 select * from t2;
insert into t3 select * from t1;
select * from t11;
select * from t21;
show status like "Qcache_total_blocks";
Variable_name Value
Qcache_total_blocks 7
show status like "Qcache_free_blocks";
Variable_name Value
Qcache_free_blocks 1
insert into t11 values("");
select * from t3;
show status like "Qcache_total_blocks";
Variable_name Value
Qcache_total_blocks 8
show status like "Qcache_free_blocks";
Variable_name Value
Qcache_free_blocks 1
flush query cache;
show status like "Qcache_total_blocks";
Variable_name Value
Qcache_total_blocks 7
show status like "Qcache_free_blocks";
Variable_name Value
Qcache_free_blocks 1
drop table t1, t2, t3, t11, t21;
set GLOBAL query_cache_size=0;
mysql-test/t/query_cache.test
View file @
6b761d86
...
...
@@ -79,68 +79,6 @@ delete from t3 where a=10;
show
status
like
"Qcache_queries_in_cache"
;
drop
table
t1
,
t2
,
t3
;
#
# FLUSH QUERY CACHE
#
create
table
t1
(
a
int
not
null
);
insert
into
t1
values
(
1
),(
2
),(
3
);
create
table
t2
(
a
int
not
null
);
insert
into
t2
values
(
1
),(
2
),(
3
);
select
*
from
t1
;
select
*
from
t2
;
insert
into
t1
values
(
4
);
show
status
like
"Qcache_free_blocks"
;
flush
query
cache
;
show
status
like
"Qcache_free_blocks"
;
drop
table
t1
,
t2
;
# With join results...
create
table
t1
(
a
text
not
null
);
create
table
t11
(
a
text
not
null
);
create
table
t2
(
a
text
not
null
);
create
table
t21
(
a
text
not
null
);
create
table
t3
(
a
text
not
null
);
insert
into
t1
values
(
"1111111111111111111111111111111111111111111111111111"
);
insert
into
t2
select
*
from
t1
;
insert
into
t1
select
*
from
t2
;
insert
into
t2
select
*
from
t1
;
insert
into
t1
select
*
from
t2
;
insert
into
t2
select
*
from
t1
;
insert
into
t1
select
*
from
t2
;
insert
into
t2
select
*
from
t1
;
insert
into
t1
select
*
from
t2
;
insert
into
t2
select
*
from
t1
;
insert
into
t1
select
*
from
t2
;
insert
into
t2
select
*
from
t1
;
insert
into
t1
select
*
from
t2
;
insert
into
t2
select
*
from
t1
;
insert
into
t1
select
*
from
t2
;
insert
into
t2
select
*
from
t1
;
# t11 and t21 must be over 4Kb (QUERY_CACHE_MIN_RESULT_DATA_SIZE)
insert
into
t11
select
*
from
t1
;
insert
into
t21
select
*
from
t1
;
insert
into
t1
select
*
from
t2
;
insert
into
t2
select
*
from
t1
;
insert
into
t1
select
*
from
t2
;
#results of t3 must be > 0.5Mb
insert
into
t3
select
*
from
t1
;
insert
into
t3
select
*
from
t2
;
insert
into
t3
select
*
from
t1
;
disable_result_log
;
select
*
from
t11
;
select
*
from
t21
;
enable_result_log
;
show
status
like
"Qcache_total_blocks"
;
show
status
like
"Qcache_free_blocks"
;
disable_result_log
;
insert
into
t11
values
(
""
);
select
*
from
t3
;
enable_result_log
;
show
status
like
"Qcache_total_blocks"
;
show
status
like
"Qcache_free_blocks"
;
flush
query
cache
;
show
status
like
"Qcache_total_blocks"
;
show
status
like
"Qcache_free_blocks"
;
drop
table
t1
,
t2
,
t3
,
t11
,
t21
;
#
# SELECT SQL_CACHE ...
#
set
query_cache_type
=
demand
;
...
...
mysql-test/t/query_cache_notembedded.test
0 → 100644
View file @
6b761d86
--
source
include
/
have_query_cache
.
inc
--
source
include
/
not_embedded
.
inc
#
# Tests with query cache
#
set
GLOBAL
query_cache_size
=
1355776
;
# Reset query cache variables.
flush
query
cache
;
# This crashed in some versions
flush
query
cache
;
# This crashed in some versions
reset
query
cache
;
flush
status
;
--
disable_warnings
drop
table
if
exists
t1
,
t2
,
t3
,
t11
,
t21
;
--
enable_warnings
#
# FLUSH QUERY CACHE
#
create
table
t1
(
a
int
not
null
);
insert
into
t1
values
(
1
),(
2
),(
3
);
create
table
t2
(
a
int
not
null
);
insert
into
t2
values
(
1
),(
2
),(
3
);
select
*
from
t1
;
select
*
from
t2
;
insert
into
t1
values
(
4
);
show
status
like
"Qcache_free_blocks"
;
flush
query
cache
;
show
status
like
"Qcache_free_blocks"
;
drop
table
t1
,
t2
;
# With join results...
create
table
t1
(
a
text
not
null
);
create
table
t11
(
a
text
not
null
);
create
table
t2
(
a
text
not
null
);
create
table
t21
(
a
text
not
null
);
create
table
t3
(
a
text
not
null
);
insert
into
t1
values
(
"1111111111111111111111111111111111111111111111111111"
);
insert
into
t2
select
*
from
t1
;
insert
into
t1
select
*
from
t2
;
insert
into
t2
select
*
from
t1
;
insert
into
t1
select
*
from
t2
;
insert
into
t2
select
*
from
t1
;
insert
into
t1
select
*
from
t2
;
insert
into
t2
select
*
from
t1
;
insert
into
t1
select
*
from
t2
;
insert
into
t2
select
*
from
t1
;
insert
into
t1
select
*
from
t2
;
insert
into
t2
select
*
from
t1
;
insert
into
t1
select
*
from
t2
;
insert
into
t2
select
*
from
t1
;
insert
into
t1
select
*
from
t2
;
insert
into
t2
select
*
from
t1
;
# t11 and t21 must be over 4Kb (QUERY_CACHE_MIN_RESULT_DATA_SIZE)
insert
into
t11
select
*
from
t1
;
insert
into
t21
select
*
from
t1
;
insert
into
t1
select
*
from
t2
;
insert
into
t2
select
*
from
t1
;
insert
into
t1
select
*
from
t2
;
#results of t3 must be > 0.5Mb
insert
into
t3
select
*
from
t1
;
insert
into
t3
select
*
from
t2
;
insert
into
t3
select
*
from
t1
;
disable_result_log
;
select
*
from
t11
;
select
*
from
t21
;
enable_result_log
;
show
status
like
"Qcache_total_blocks"
;
show
status
like
"Qcache_free_blocks"
;
disable_result_log
;
insert
into
t11
values
(
""
);
select
*
from
t3
;
enable_result_log
;
show
status
like
"Qcache_total_blocks"
;
show
status
like
"Qcache_free_blocks"
;
flush
query
cache
;
show
status
like
"Qcache_total_blocks"
;
show
status
like
"Qcache_free_blocks"
;
drop
table
t1
,
t2
,
t3
,
t11
,
t21
;
set
GLOBAL
query_cache_size
=
0
;
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