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
80c5f4fd
Commit
80c5f4fd
authored
Mar 19, 2002
by
arjen@fred.bitbike.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some rephrasing, based on suggestions by Egor.
parent
7467f918
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
Docs/manual.texi
Docs/manual.texi
+13
-14
No files found.
Docs/manual.texi
View file @
80c5f4fd
...
...
@@ -3187,9 +3187,10 @@ This can be handled much more efficiently by using an
@cindex rows, locking
@cindex locking, row-level
Generally, you can code around row-level locking. Some cases really
need it, but they are very few. For instance, you can use a flag
column in the table and do something like this:
You can generally code around row-level locking. Some situations really
need it, but they are very few. @code{InnoDB} tables support row-level
locking. With MyISAM, you can use a flag column in the table and do
something like the following:
@example
UPDATE tbl_name SET row_flag=1 WHERE id=ID;
...
...
@@ -55410,22 +55411,20 @@ In MySQL, common tags to print (with the @code{d} option) are:
@cindex methods, locking
Currently MySQL only supports table locking for
@code{ISAM}/@code{MyISAM} and @code{HEAP} tables
.
@code{InnoDB} tables use row level locking,
and @code{BDB} tables page level locking. @xref{Internal locking}
.
With @code{MyISAM}
tables one can freely mix @code{INSERT} and @code{SELECT} without locks
(@code{Versioning}).
@code{ISAM}/@code{MyISAM} and @code{HEAP} tables
,
page-level locking for @code{BDB} tables and
row-level locking for @code{InnoDB} tables
.
@xref{Internal locking}.
With @code{MyISAM} tables one can freely mix @code{INSERT} and
@code{SELECT} without locks
(@code{Versioning}).
Starting in version 3.23.33, you can analyse the table lock contention
on your system by checking @code{Table_locks_waited} and
@code{Table_locks_immediate} environment variables.
Some database users claim that MySQL cannot support near the
number of concurrent users because it lacks row-level locking. This
may be true for some specific applications, but is not generally
true. As always this depends totally on what the application does and what
is the access/update pattern of the data.
To decide if you want to use a table type with row-level locking,
you will want to look at what the application does and what the
select/update pattern of the data is.
Pros for row locking:
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