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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
63691e27
Commit
63691e27
authored
Jun 19, 2003
by
igor@rurik.mysql.com
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
e701ece0
98eeaa54
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 @
63691e27
...
@@ -46,169 +46,122 @@ count(*)
...
@@ -46,169 +46,122 @@ count(*)
20672
20672
flush tables;
flush tables;
flush status;
flush status;
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_read_requests 0
Key_reads 0
Key_reads 0
Key_write_requests 0
Key_writes 0
select count(*) from t1 where b = 'test1';
select count(*) from t1 where b = 'test1';
count(*)
count(*)
4181
4181
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Variable_name Value
Key_blocks_used 918
Key_read_requests 217
Key_read_requests 217
Key_reads 45
Key_reads 45
Key_write_requests 0
Key_writes 0
select count(*) from t1 where b = 'test1';
select count(*) from t1 where b = 'test1';
count(*)
count(*)
4181
4181
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Variable_name Value
Key_blocks_used 918
Key_read_requests 434
Key_read_requests 434
Key_reads 45
Key_reads 45
Key_write_requests 0
Key_writes 0
flush tables;
flush tables;
flush status;
flush status;
select @@preload_buffer_size;
select @@preload_buffer_size;
@@preload_buffer_size
@@preload_buffer_size
32768
32768
preload
t1 keys;
load index into cache
t1 keys;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t1 preload_keys status OK
test.t1 preload_keys status OK
show status like "
preload_
%";
show status like "
key_read
%";
Variable_name Value
Variable_name Value
show status like "key_%";
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_read_requests 0
Key_reads 0
Key_reads 0
Key_write_requests 0
Key_writes 0
select count(*) from t1 where b = 'test1';
select count(*) from t1 where b = 'test1';
count(*)
count(*)
4181
4181
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Variable_name Value
Key_blocks_used 918
Key_read_requests 217
Key_read_requests 217
Key_reads 45
Key_reads 45
Key_write_requests 0
Key_writes 0
flush tables;
flush tables;
flush status;
flush status;
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_read_requests 0
Key_reads 0
Key_reads 0
Key_write_requests 0
Key_writes 0
set session preload_buffer_size=256*1024;
set session preload_buffer_size=256*1024;
select @@preload_buffer_size;
select @@preload_buffer_size;
@@preload_buffer_size
@@preload_buffer_size
262144
262144
preload
t1 keys ignore leaves;
load index into cache
t1 keys ignore leaves;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t1 preload_keys status OK
test.t1 preload_keys status OK
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_read_requests 0
Key_reads 0
Key_reads 0
Key_write_requests 0
Key_writes 0
select count(*) from t1 where b = 'test1';
select count(*) from t1 where b = 'test1';
count(*)
count(*)
4181
4181
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Variable_name Value
Key_blocks_used 918
Key_read_requests 217
Key_read_requests 217
Key_reads 45
Key_reads 45
Key_write_requests 0
Key_writes 0
flush tables;
flush tables;
flush status;
flush status;
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_read_requests 0
Key_reads 0
Key_reads 0
Key_write_requests 0
Key_writes 0
set session preload_buffer_size=1*1024;
set session preload_buffer_size=1*1024;
select @@preload_buffer_size;
select @@preload_buffer_size;
@@preload_buffer_size
@@preload_buffer_size
1024
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
Table Op Msg_type Msg_text
test.t1 preload_keys status OK
test.t1 preload_keys status OK
test.t2 preload_keys status OK
test.t2 preload_keys status OK
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_read_requests 0
Key_reads 0
Key_reads 0
Key_write_requests 0
Key_writes 0
select count(*) from t1 where b = 'test1';
select count(*) from t1 where b = 'test1';
count(*)
count(*)
4181
4181
select count(*) from t2 where b = 'test1';
select count(*) from t2 where b = 'test1';
count(*)
count(*)
2584
2584
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Variable_name Value
Key_blocks_used 918
Key_read_requests 351
Key_read_requests 351
Key_reads 73
Key_reads 73
Key_write_requests 0
Key_writes 0
flush tables;
flush tables;
flush status;
flush status;
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_read_requests 0
Key_reads 0
Key_reads 0
Key_write_requests 0
load index into cache t3 keys, t2 keys (primary,b) ;
Key_writes 0
preload t3 keys, t2 keys (primary,b) ;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t3 preload_keys error Table 'test.t3' doesn't exist
test.t3 preload_keys error Table 'test.t3' doesn't exist
test.t2 preload_keys status OK
test.t2 preload_keys status OK
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_read_requests 0
Key_reads 0
Key_reads 0
Key_write_requests 0
Key_writes 0
flush tables;
flush tables;
flush status;
flush status;
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_read_requests 0
Key_reads 0
Key_reads 0
Key_write_requests 0
load index into cache t3 keys (b), t2 keys (c) ;
Key_writes 0
preload t3 keys (b), t2 keys (c) ;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t3 preload_keys error Table 'test.t3' doesn't exist
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 error Key column 'c' doesn't exist in table
test.t2 preload_keys status Operation failed
test.t2 preload_keys status Operation failed
show status like "key_%";
show status like "key_
read
%";
Variable_name Value
Variable_name Value
Key_blocks_used 918
Key_read_requests 0
Key_read_requests 0
Key_reads 0
Key_reads 0
Key_write_requests 0
Key_writes 0
drop table t1, t2;
drop table t1, t2;
mysql-test/t/preload.test
View file @
63691e27
...
@@ -54,48 +54,47 @@ select count(*) from t1;
...
@@ -54,48 +54,47 @@ select count(*) from t1;
select
count
(
*
)
from
t2
;
select
count
(
*
)
from
t2
;
flush
tables
;
flush
status
;
flush
tables
;
flush
status
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
select
count
(
*
)
from
t1
where
b
=
'test1'
;
select
count
(
*
)
from
t1
where
b
=
'test1'
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
select
count
(
*
)
from
t1
where
b
=
'test1'
;
select
count
(
*
)
from
t1
where
b
=
'test1'
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
flush
tables
;
flush
status
;
flush
tables
;
flush
status
;
select
@@
preload_buffer_size
;
select
@@
preload_buffer_size
;
preload
t1
keys
;
load
index
into
cache
t1
keys
;
show
status
like
"preload_%"
;
show
status
like
"key_read%"
;
show
status
like
"key_%"
;
select
count
(
*
)
from
t1
where
b
=
'test1'
;
select
count
(
*
)
from
t1
where
b
=
'test1'
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
flush
tables
;
flush
status
;
flush
tables
;
flush
status
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
set
session
preload_buffer_size
=
256
*
1024
;
set
session
preload_buffer_size
=
256
*
1024
;
select
@@
preload_buffer_size
;
select
@@
preload_buffer_size
;
preload
t1
keys
ignore
leaves
;
load
index
into
cache
t1
keys
ignore
leaves
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
select
count
(
*
)
from
t1
where
b
=
'test1'
;
select
count
(
*
)
from
t1
where
b
=
'test1'
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
flush
tables
;
flush
status
;
flush
tables
;
flush
status
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
set
session
preload_buffer_size
=
1
*
1024
;
set
session
preload_buffer_size
=
1
*
1024
;
select
@@
preload_buffer_size
;
select
@@
preload_buffer_size
;
preload
t1
keys
,
t2
keys
(
primary
,
b
)
ignore
leaves
;
load
index
into
cache
t1
keys
,
t2
keys
(
primary
,
b
)
ignore
leaves
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
select
count
(
*
)
from
t1
where
b
=
'test1'
;
select
count
(
*
)
from
t1
where
b
=
'test1'
;
select
count
(
*
)
from
t2
where
b
=
'test1'
;
select
count
(
*
)
from
t2
where
b
=
'test1'
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
flush
tables
;
flush
status
;
flush
tables
;
flush
status
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
preload
t3
keys
,
t2
keys
(
primary
,
b
)
;
load
index
into
cache
t3
keys
,
t2
keys
(
primary
,
b
)
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
flush
tables
;
flush
status
;
flush
tables
;
flush
status
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
preload
t3
keys
(
b
),
t2
keys
(
c
)
;
load
index
into
cache
t3
keys
(
b
),
t2
keys
(
c
)
;
show
status
like
"key_%"
;
show
status
like
"key_
read
%"
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
sql/lex.h
View file @
63691e27
...
@@ -300,7 +300,6 @@ static SYMBOL symbols[] = {
...
@@ -300,7 +300,6 @@ static SYMBOL symbols[] = {
{
"POLYGON"
,
SYM
(
POLYGON
),
0
,
0
},
{
"POLYGON"
,
SYM
(
POLYGON
),
0
,
0
},
{
"PURGE"
,
SYM
(
PURGE
),
0
,
0
},
{
"PURGE"
,
SYM
(
PURGE
),
0
,
0
},
{
"PRECISION"
,
SYM
(
PRECISION
),
0
,
0
},
{
"PRECISION"
,
SYM
(
PRECISION
),
0
,
0
},
{
"PRELOAD"
,
SYM
(
PRELOAD
),
0
,
0
},
{
"PREV"
,
SYM
(
PREV_SYM
),
0
,
0
},
{
"PREV"
,
SYM
(
PREV_SYM
),
0
,
0
},
{
"PRIMARY"
,
SYM
(
PRIMARY_SYM
),
0
,
0
},
{
"PRIMARY"
,
SYM
(
PRIMARY_SYM
),
0
,
0
},
{
"PROCEDURE"
,
SYM
(
PROCEDURE
),
0
,
0
},
{
"PROCEDURE"
,
SYM
(
PROCEDURE
),
0
,
0
},
...
...
sql/sql_yacc.yy
View file @
63691e27
...
@@ -310,7 +310,6 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
...
@@ -310,7 +310,6 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
%token DUMPFILE
%token DUMPFILE
%token PACK_KEYS_SYM
%token PACK_KEYS_SYM
%token PARTIAL
%token PARTIAL
%token PRELOAD
%token PRIMARY_SYM
%token PRIMARY_SYM
%token PRIVILEGES
%token PRIVILEGES
%token PROCESS
%token PROCESS
...
@@ -581,7 +580,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
...
@@ -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
type int_type real_type order_dir opt_field_spec lock_option
udf_type if_exists opt_local opt_table_options table_options
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
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>
%type <ulong_num>
ULONG_NUM raid_types merge_insert_types
ULONG_NUM raid_types merge_insert_types
...
@@ -1840,7 +1839,7 @@ table_to_table:
...
@@ -1840,7 +1839,7 @@ table_to_table:
};
};
preload:
preload:
PRELOAD
LOAD INDEX INTO CACHE_SYM
{
{
LEX *lex=Lex;
LEX *lex=Lex;
lex->sql_command=SQLCOM_PRELOAD_KEYS;
lex->sql_command=SQLCOM_PRELOAD_KEYS;
...
@@ -1854,7 +1853,7 @@ preload_list:
...
@@ -1854,7 +1853,7 @@ preload_list:
| preload_list ',' preload_keys;
| preload_list ',' preload_keys;
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;
LEX *lex=Lex;
SELECT_LEX *sel= &lex->select_lex;
SELECT_LEX *sel= &lex->select_lex;
...
@@ -1882,7 +1881,7 @@ preload_key_list_or_empty:
...
@@ -1882,7 +1881,7 @@ preload_key_list_or_empty:
| '(' key_usage_list2 ')' {}
| '(' key_usage_list2 ')' {}
;
;
opt_ignore_lea
f
s:
opt_ignore_lea
ve
s:
/* empty */
/* empty */
{ $$= 0; }
{ $$= 0; }
| IGNORE_SYM LEAVES { $$= TL_OPTION_IGNORE_LEAVES; }
| IGNORE_SYM LEAVES { $$= TL_OPTION_IGNORE_LEAVES; }
...
@@ -4376,7 +4375,6 @@ keyword:
...
@@ -4376,7 +4375,6 @@ keyword:
| PASSWORD {}
| PASSWORD {}
| POINT_SYM {}
| POINT_SYM {}
| POLYGON {}
| POLYGON {}
| PRELOAD {}
| PREV_SYM {}
| PREV_SYM {}
| PROCESS {}
| PROCESS {}
| PROCESSLIST_SYM {}
| 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