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
a6850f79
Commit
a6850f79
authored
Jun 19, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-4.1
into rurik.mysql.com:/home/igor/mysql-4.1
parents
a00e2e61
53ff4c82
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
95 deletions
+44
-95
mysql-test/r/preload.result
mysql-test/r/preload.result
+20
-67
mysql-test/t/preload.test
mysql-test/t/preload.test
+20
-21
sql/lex.h
sql/lex.h
+0
-1
sql/sql_yacc.yy
sql/sql_yacc.yy
+4
-6
No files found.
mysql-test/r/preload.result
View file @
a6850f79
...
...
@@ -46,169 +46,122 @@ count(*)
20672
flush tables;
flush status;
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_reads 0
Key_write_requests 0
Key_writes 0
select count(*) from t1 where b = 'test1';
count(*)
4181
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Key_blocks_used 918
Key_read_requests 217
Key_reads 45
Key_write_requests 0
Key_writes 0
select count(*) from t1 where b = 'test1';
count(*)
4181
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Key_blocks_used 918
Key_read_requests 434
Key_reads 45
Key_write_requests 0
Key_writes 0
flush tables;
flush status;
select @@preload_buffer_size;
@@preload_buffer_size
32768
preload
t1 keys;
load index into cache
t1 keys;
Table Op Msg_type Msg_text
test.t1 preload_keys status OK
show status like "
preload_
%";
show status like "
key_read
%";
Variable_name Value
show status like "key_%";
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_reads 0
Key_write_requests 0
Key_writes 0
select count(*) from t1 where b = 'test1';
count(*)
4181
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Key_blocks_used 918
Key_read_requests 217
Key_reads 45
Key_write_requests 0
Key_writes 0
flush tables;
flush status;
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_reads 0
Key_write_requests 0
Key_writes 0
set session preload_buffer_size=256*1024;
select @@preload_buffer_size;
@@preload_buffer_size
262144
preload
t1 keys ignore leaves;
load index into cache
t1 keys ignore leaves;
Table Op Msg_type Msg_text
test.t1 preload_keys status OK
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_reads 0
Key_write_requests 0
Key_writes 0
select count(*) from t1 where b = 'test1';
count(*)
4181
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Key_blocks_used 918
Key_read_requests 217
Key_reads 45
Key_write_requests 0
Key_writes 0
flush tables;
flush status;
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_reads 0
Key_write_requests 0
Key_writes 0
set session preload_buffer_size=1*1024;
select @@preload_buffer_size;
@@preload_buffer_size
1024
preload
t1 keys, t2 keys (primary,b) ignore leaves;
load index into cache
t1 keys, t2 keys (primary,b) ignore leaves;
Table Op Msg_type Msg_text
test.t1 preload_keys status OK
test.t2 preload_keys status OK
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_reads 0
Key_write_requests 0
Key_writes 0
select count(*) from t1 where b = 'test1';
count(*)
4181
select count(*) from t2 where b = 'test1';
count(*)
2584
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Key_blocks_used 918
Key_read_requests 351
Key_reads 73
Key_write_requests 0
Key_writes 0
flush tables;
flush status;
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_reads 0
Key_write_requests 0
Key_writes 0
preload t3 keys, t2 keys (primary,b) ;
load index into cache t3 keys, t2 keys (primary,b) ;
Table Op Msg_type Msg_text
test.t3 preload_keys error Table 'test.t3' doesn't exist
test.t2 preload_keys status OK
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_reads 0
Key_write_requests 0
Key_writes 0
flush tables;
flush status;
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_reads 0
Key_write_requests 0
Key_writes 0
preload t3 keys (b), t2 keys (c) ;
load index into cache t3 keys (b), t2 keys (c) ;
Table Op Msg_type Msg_text
test.t3 preload_keys error Table 'test.t3' doesn't exist
test.t2 preload_keys error Key column 'c' doesn't exist in table
test.t2 preload_keys status Operation failed
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_reads 0
Key_write_requests 0
Key_writes 0
drop table t1, t2;
mysql-test/t/preload.test
View file @
a6850f79
...
...
@@ -54,48 +54,47 @@ select count(*) from t1;
select
count
(
*
)
from
t2
;
flush
tables
;
flush
status
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
select
count
(
*
)
from
t1
where
b
=
'test1'
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
select
count
(
*
)
from
t1
where
b
=
'test1'
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
flush
tables
;
flush
status
;
select
@@
preload_buffer_size
;
preload
t1
keys
;
show
status
like
"preload_%"
;
show
status
like
"key_%"
;
load
index
into
cache
t1
keys
;
show
status
like
"key_read%"
;
select
count
(
*
)
from
t1
where
b
=
'test1'
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
flush
tables
;
flush
status
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
set
session
preload_buffer_size
=
256
*
1024
;
select
@@
preload_buffer_size
;
preload
t1
keys
ignore
leaves
;
show
status
like
"key_%"
;
load
index
into
cache
t1
keys
ignore
leaves
;
show
status
like
"key_
read
%"
;
select
count
(
*
)
from
t1
where
b
=
'test1'
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
flush
tables
;
flush
status
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
set
session
preload_buffer_size
=
1
*
1024
;
select
@@
preload_buffer_size
;
preload
t1
keys
,
t2
keys
(
primary
,
b
)
ignore
leaves
;
show
status
like
"key_%"
;
load
index
into
cache
t1
keys
,
t2
keys
(
primary
,
b
)
ignore
leaves
;
show
status
like
"key_
read
%"
;
select
count
(
*
)
from
t1
where
b
=
'test1'
;
select
count
(
*
)
from
t2
where
b
=
'test1'
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
flush
tables
;
flush
status
;
show
status
like
"key_%"
;
preload
t3
keys
,
t2
keys
(
primary
,
b
)
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
load
index
into
cache
t3
keys
,
t2
keys
(
primary
,
b
)
;
show
status
like
"key_
read
%"
;
flush
tables
;
flush
status
;
show
status
like
"key_%"
;
preload
t3
keys
(
b
),
t2
keys
(
c
)
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
load
index
into
cache
t3
keys
(
b
),
t2
keys
(
c
)
;
show
status
like
"key_
read
%"
;
drop
table
t1
,
t2
;
sql/lex.h
View file @
a6850f79
...
...
@@ -300,7 +300,6 @@ static SYMBOL symbols[] = {
{
"POLYGON"
,
SYM
(
POLYGON
),
0
,
0
},
{
"PURGE"
,
SYM
(
PURGE
),
0
,
0
},
{
"PRECISION"
,
SYM
(
PRECISION
),
0
,
0
},
{
"PRELOAD"
,
SYM
(
PRELOAD
),
0
,
0
},
{
"PREV"
,
SYM
(
PREV_SYM
),
0
,
0
},
{
"PRIMARY"
,
SYM
(
PRIMARY_SYM
),
0
,
0
},
{
"PROCEDURE"
,
SYM
(
PROCEDURE
),
0
,
0
},
...
...
sql/sql_yacc.yy
View file @
a6850f79
...
...
@@ -310,7 +310,6 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
%token DUMPFILE
%token PACK_KEYS_SYM
%token PARTIAL
%token PRELOAD
%token PRIMARY_SYM
%token PRIVILEGES
%token PROCESS
...
...
@@ -581,7 +580,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
type int_type real_type order_dir opt_field_spec lock_option
udf_type if_exists opt_local opt_table_options table_options
table_option opt_if_not_exists opt_no_write_to_binlog opt_var_type opt_var_ident_type
delete_option opt_temporary all_or_any opt_distinct opt_ignore_lea
f
s
delete_option opt_temporary all_or_any opt_distinct opt_ignore_lea
ve
s
%type <ulong_num>
ULONG_NUM raid_types merge_insert_types
...
...
@@ -1840,7 +1839,7 @@ table_to_table:
};
preload:
PRELOAD
LOAD INDEX INTO CACHE_SYM
{
LEX *lex=Lex;
lex->sql_command=SQLCOM_PRELOAD_KEYS;
...
...
@@ -1854,7 +1853,7 @@ preload_list:
| preload_list ',' preload_keys;
preload_keys:
table_ident preload_keys_spec opt_ignore_lea
f
s
table_ident preload_keys_spec opt_ignore_lea
ve
s
{
LEX *lex=Lex;
SELECT_LEX *sel= &lex->select_lex;
...
...
@@ -1882,7 +1881,7 @@ preload_key_list_or_empty:
| '(' key_usage_list2 ')' {}
;
opt_ignore_lea
f
s:
opt_ignore_lea
ve
s:
/* empty */
{ $$= 0; }
| IGNORE_SYM LEAVES { $$= TL_OPTION_IGNORE_LEAVES; }
...
...
@@ -4376,7 +4375,6 @@ keyword:
| PASSWORD {}
| POINT_SYM {}
| POLYGON {}
| PRELOAD {}
| PREV_SYM {}
| PROCESS {}
| PROCESSLIST_SYM {}
...
...
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