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
adf40be1
Commit
adf40be1
authored
Jan 24, 2007
by
stewart@willster.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#25567 records() call performs scan in NDB, performance bug
parent
cd5f9b2f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
mysql-test/r/ndb_basic.result
mysql-test/r/ndb_basic.result
+6
-6
sql/ha_ndbcluster.h
sql/ha_ndbcluster.h
+2
-0
sql/sql_select.cc
sql/sql_select.cc
+1
-1
No files found.
mysql-test/r/ndb_basic.result
View file @
adf40be1
...
...
@@ -757,12 +757,12 @@ PRIMARY KEY (b,c)) ENGINE=ndbcluster;
INSERT INTO t1 VALUES
("a","ab","abc"),("b","abc","abcd"),("c","abc","ab"),("d","ab","ab"),("e","abc","abc");
SELECT * FROM t1 ORDER BY a;
a
b
c
a
ab
abc
b
abc
abcd
c
abc
ab
d
ab
ab
e
abc
abc
a
b
c
a
ab
abc
b
abc
abcd
c
abc
ab
d
ab
ab
e
abc
abc
DROP TABLE t1;
End of 5.0 tests
CREATE TABLE t1 (a VARCHAR(255) NOT NULL,
...
...
sql/ha_ndbcluster.h
View file @
adf40be1
...
...
@@ -676,6 +676,8 @@ class ha_ndbcluster: public handler
bool
get_error_message
(
int
error
,
String
*
buf
);
ha_rows
records
();
ha_rows
estimate_rows_upper_bound
()
{
return
HA_POS_ERROR
;
}
int
info
(
uint
);
void
get_dynamic_partition_info
(
PARTITION_INFO
*
stat_info
,
uint
part_id
);
int
extra
(
enum
ha_extra_function
operation
);
...
...
sql/sql_select.cc
View file @
adf40be1
...
...
@@ -2197,7 +2197,7 @@ make_join_statistics(JOIN *join, TABLE_LIST *tables, COND *conds,
s
->
key_dependent
=
0
;
if
(
tables
->
schema_table
)
table
->
file
->
stats
.
records
=
2
;
table
->
quick_condition_rows
=
table
->
file
->
records
()
;
table
->
quick_condition_rows
=
table
->
file
->
stats
.
records
;
s
->
on_expr_ref
=
&
tables
->
on_expr
;
if
(
*
s
->
on_expr_ref
)
...
...
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