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
5883ec2c
Commit
5883ec2c
authored
Dec 03, 2000
by
monty@donna.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small manual changes + fix bug in range optimizer becasue of commented code
parent
53d7c306
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
17 deletions
+20
-17
Docs/manual.texi
Docs/manual.texi
+19
-16
sql/opt_range.cc
sql/opt_range.cc
+1
-1
No files found.
Docs/manual.texi
View file @
5883ec2c
...
@@ -17654,13 +17654,14 @@ This will create a @code{HEAP} table with 3 columns. Note that the table will
...
@@ -17654,13 +17654,14 @@ This will create a @code{HEAP} table with 3 columns. Note that the table will
automatically be deleted if any errors occur while copying data
automatically be deleted if any errors occur while copying data
into the table.
into the table.
@item
@item
The @code{RAID_TYPE} option will help you to break the 2G/4G limit on
The @code{RAID_TYPE} option will help you to break the 2G/4G limit for
Operating Systems that don't support big files. You can get also more speed
the MyISAM data file (not the index file) onOperating Systems that don't
from the I/O bottleneck by putting @code{RAID} directories on different
support big files. You can get also more speed from the I/O bottleneck
physical disks. @code{RAID_TYPE} will work on any OS, as long as you have
by putting @code{RAID} directories on different physical
configured @strong{MySQL} with @code{--with-raid}. For now the only allowed
disks. @code{RAID_TYPE} will work on any OS, as long as you have
@code{RAID_TYPE} is @code{STRIPED} (@code{1} and @code{RAID0} are aliases
configured @strong{MySQL} with @code{--with-raid}. For now the only
for this).
allowed @code{RAID_TYPE} is @code{STRIPED} (@code{1} and @code{RAID0}
are aliases for this).
If you specify @code{RAID_TYPE=STRIPED} for a @code{MyISAM} table,
If you specify @code{RAID_TYPE=STRIPED} for a @code{MyISAM} table,
@code{MyISAM} will create @code{RAID_CHUNKS} subdirectories named 00,
@code{MyISAM} will create @code{RAID_CHUNKS} subdirectories named 00,
...
@@ -17669,7 +17670,7 @@ If you specify @code{RAID_TYPE=STRIPED} for a @code{MyISAM} table,
...
@@ -17669,7 +17670,7 @@ If you specify @code{RAID_TYPE=STRIPED} for a @code{MyISAM} table,
to the data file, the @code{RAID} handler will map the first
to the data file, the @code{RAID} handler will map the first
@code{RAID_CHUNKSIZE} *1024 bytes to the first file, the next
@code{RAID_CHUNKSIZE} *1024 bytes to the first file, the next
@code{RAID_CHUNKSIZE} *1024 bytes to the next file and so on.
@code{RAID_CHUNKSIZE} *1024 bytes to the next file and so on.
@item
@code{UNION} is used when you want to use a collection of identical
@code{UNION} is used when you want to use a collection of identical
tables as one. This only works with MERGE tables. @xref{MERGE}.
tables as one. This only works with MERGE tables. @xref{MERGE}.
...
@@ -20817,10 +20818,11 @@ LOCK TABLES tbl_name [AS alias] @{READ | [READ LOCAL] | [LOW_PRIORITY] WRITE@}
...
@@ -20817,10 +20818,11 @@ LOCK TABLES tbl_name [AS alias] @{READ | [READ LOCAL] | [LOW_PRIORITY] WRITE@}
UNLOCK TABLES
UNLOCK TABLES
@end example
@end example
@code{LOCK TABLES} locks tables for the current thread. @code{UNLOCK TABLES}
@code{LOCK TABLES} locks tables for the current thread. @code{UNLOCK
releases any locks held by the current thread. All tables that are locked by
TABLES} releases any locks held by the current thread. All tables that
the current thread are automatically unlocked when the thread issues another
are locked by the current thread are automatically unlocked when the
@code{LOCK TABLES}, or when the connection to the server is closed.
thread issues another @code{LOCK TABLES}, or when the connection to the
server is closed.
If a thread obtains a @code{READ} lock on a table, that thread (and all other
If a thread obtains a @code{READ} lock on a table, that thread (and all other
threads) can only read from the table. If a thread obtains a @code{WRITE}
threads) can only read from the table. If a thread obtains a @code{WRITE}
...
@@ -20847,10 +20849,11 @@ use @code{LOW_PRIORITY WRITE} locks if you are sure that there will
...
@@ -20847,10 +20849,11 @@ use @code{LOW_PRIORITY WRITE} locks if you are sure that there will
eventually be a time when no threads will have a @code{READ} lock.
eventually be a time when no threads will have a @code{READ} lock.
When you use @code{LOCK TABLES}, you must lock all tables that you are
When you use @code{LOCK TABLES}, you must lock all tables that you are
going to use and you must use the same alias that you are going to use in
going to use and you must use the same alias that you are going to use
your queries! If you are using a table multiple times in a query (with
in your queries! If you are using a table multiple times in a query
aliases), you must get a lock for each alias! This policy ensures that
(with aliases), you must get a lock for each alias! This policy ensures
table locking is deadlock free.
that table locking is deadlock free andh makes the locking code smaller,
simpler and much faster.
Note that you should @strong{NOT} lock any tables that you are using with
Note that you should @strong{NOT} lock any tables that you are using with
@code{INSERT DELAYED}. This is because that in this case the @code{INSERT}
@code{INSERT DELAYED}. This is because that in this case the @code{INSERT}
sql/opt_range.cc
View file @
5883ec2c
...
@@ -393,7 +393,7 @@ QUICK_SELECT::QUICK_SELECT(TABLE *table,uint key_nr,bool no_alloc)
...
@@ -393,7 +393,7 @@ QUICK_SELECT::QUICK_SELECT(TABLE *table,uint key_nr,bool no_alloc)
else
else
bzero
((
char
*
)
&
alloc
,
sizeof
(
alloc
));
bzero
((
char
*
)
&
alloc
,
sizeof
(
alloc
));
file
=
head
->
file
;
file
=
head
->
file
;
//
error=file->index_init(index);
error
=
file
->
index_init
(
index
);
record
=
head
->
record
[
0
];
record
=
head
->
record
[
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