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
29b751c7
Commit
29b751c7
authored
May 19, 2011
by
Michael Widenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated comments as part of code review
.bzr-mysql/default.conf: 5.2 -> 5.3 sql/handler.h: Updated comments.
parent
4e968b1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
.bzr-mysql/default.conf
.bzr-mysql/default.conf
+4
-4
sql/handler.h
sql/handler.h
+10
-4
No files found.
.bzr-mysql/default.conf
View file @
29b751c7
[
MYSQL
]
tree_location
=
lp
:
maria
/
5
.
2
tree_location
=
lp
:
maria
/
5
.
3
post_commit_to
=
commits
@
mariadb
.
org
post_commit_url
=
lp
:
maria
/
5
.
2
tree_name
=
maria
/
5
.
2
project_name
=
"Mariadb 5.
2, with Ma
ria 2.0"
post_commit_url
=
lp
:
maria
/
5
.
3
tree_name
=
maria
/
5
.
3
project_name
=
"Mariadb 5.
3, with A
ria 2.0"
sql/handler.h
View file @
29b751c7
...
...
@@ -163,7 +163,7 @@
#define HA_DO_INDEX_COND_PUSHDOWN 256
/* Supports Index Condition Pushdown */
/*
Data is clustered on this key. This means that when you read the key
you also get the row data
in the same block
.
you also get the row data
without any additional disk reads
.
*/
#define HA_CLUSTERED_INDEX 512
...
...
@@ -2314,8 +2314,8 @@ class handler :public Sql_alloc
/*
Check if the primary key (if there is one) is a clustered
key covering
all fields
. This means:
Check if the primary key (if there is one) is a clustered
and a
reference key
. This means:
- Data is stored together with the primary key (no secondary lookup
needed to find the row data). The optimizer uses this to find out
...
...
@@ -2326,7 +2326,13 @@ class handler :public Sql_alloc
- When doing a HA_KEYREAD_ONLY we get also all the primary key parts
into the row. This is critical property used by index_merge.
For a clustered primary key, index_flags() returns also HA_CLUSTERED_INDEX
All the above is usually true for engines that store the row
data in the primary key index (e.g. in a b-tree), and use the primary
key value as a position(). InnoDB is an example of such an engine.
For such a clustered primary key, the following should also hold:
index_flags() should contain HA_CLUSTERED_INDEX
table_flags() should contain HA_TABLE_SCAN_ON_INDEX
@retval TRUE yes
@retval FALSE No.
...
...
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