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
739bf32e
Commit
739bf32e
authored
Dec 05, 2001
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bulk_insert feature can be turned off
parent
ac02b727
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
Docs/manual.texi
Docs/manual.texi
+2
-1
myisam/mi_write.c
myisam/mi_write.c
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+1
-1
No files found.
Docs/manual.texi
View file @
739bf32e
...
...
@@ -18370,7 +18370,8 @@ After this many write locks, allow some read locks to run in between.
MySQL uses special tree-like cache to make bulk inserts (that is,
@code{INSERT ... SELECT}, @code{INSERT ... VALUES (...), (...), ...}, and
@code{LOAD DATA INFILE}) faster. This variable limits
the size of the cache tree in bytes per thread.
the size of the cache tree in bytes per thread. Setting it to 0
will disable this optimization.
@strong{Note:} This cache is only used when adding data to non-empty table.
Default value is 8 MB.
myisam/mi_write.c
View file @
739bf32e
...
...
@@ -809,7 +809,7 @@ int _mi_init_bulk_insert(MI_INFO *info)
}
}
if
(
!
num_keys
)
if
(
num_keys
==
0
||
num_keys
>
myisam_bulk_insert_tree_size
)
return
0
;
info
->
bulk_insert
=
(
TREE
*
)
...
...
sql/mysqld.cc
View file @
739bf32e
...
...
@@ -2930,7 +2930,7 @@ CHANGEABLE_VAR changeable_vars[] = {
{
"max_write_lock_count"
,
(
long
*
)
&
max_write_lock_count
,
~
0L
,
1
,
~
0L
,
0
,
1
},
{
"myisam_bulk_insert_tree_size"
,
(
long
*
)
&
myisam_bulk_insert_tree_size
,
8192
*
1024
,
4
,
~
0L
,
0
,
1
},
8192
*
1024
,
0
,
~
0L
,
0
,
1
},
{
"myisam_block_size"
,
(
long
*
)
&
opt_myisam_block_size
,
MI_KEY_BLOCK_LENGTH
,
MI_MIN_KEY_BLOCK_LENGTH
,
MI_MAX_KEY_BLOCK_LENGTH
,
0
,
MI_MIN_KEY_BLOCK_LENGTH
},
...
...
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