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
c34b24ff
Commit
c34b24ff
authored
Aug 29, 2012
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cassandra storage engine: add @@rnd_batch_size variable.
parent
c943dfd8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
mysql-test/t/cassandra.test
mysql-test/t/cassandra.test
+1
-0
storage/cassandra/ha_cassandra.cc
storage/cassandra/ha_cassandra.cc
+7
-3
storage/cassandra/ha_cassandra.h
storage/cassandra/ha_cassandra.h
+0
-2
No files found.
mysql-test/t/cassandra.test
View file @
c34b24ff
...
...
@@ -194,6 +194,7 @@ drop table t0;
############################################################################
--
disable_parsing
drop
columnfamily
cf1
;
drop
columnfamily
cf2
;
--
enable_parsing
############################################################################
## Cassandra cleanup ends
...
...
storage/cassandra/ha_cassandra.cc
View file @
c34b24ff
...
...
@@ -64,9 +64,14 @@ static MYSQL_THDVAR_ULONG(multiget_batch_size, PLUGIN_VAR_RQCMDARG,
"Number of rows in a multiget(MRR) batch"
,
NULL
,
NULL
,
/*default*/
100
,
/*min*/
1
,
/*max*/
1024
*
1024
*
1024
,
0
);
static
MYSQL_THDVAR_ULONG
(
rnd_batch_size
,
PLUGIN_VAR_RQCMDARG
,
"Number of rows in an rnd_read (full scan) batch"
,
NULL
,
NULL
,
/*default*/
10
*
1000
,
/*min*/
1
,
/*max*/
1024
*
1024
*
1024
,
0
);
static
struct
st_mysql_sys_var
*
cassandra_system_variables
[]
=
{
MYSQL_SYSVAR
(
insert_batch_size
),
MYSQL_SYSVAR
(
multiget_batch_size
),
MYSQL_SYSVAR
(
rnd_batch_size
),
// MYSQL_SYSVAR(enum_var),
// MYSQL_SYSVAR(ulong_var),
NULL
...
...
@@ -254,8 +259,7 @@ static handler* cassandra_create_handler(handlerton *hton,
ha_cassandra
::
ha_cassandra
(
handlerton
*
hton
,
TABLE_SHARE
*
table_arg
)
:
handler
(
hton
,
table_arg
),
se
(
NULL
),
field_converters
(
NULL
),
rowkey_converter
(
NULL
),
rnd_batch_size
(
10
*
1000
)
se
(
NULL
),
field_converters
(
NULL
),
rowkey_converter
(
NULL
)
{}
...
...
@@ -849,7 +853,7 @@ int ha_cassandra::rnd_init(bool scan)
for
(
uint
i
=
1
;
i
<
table
->
s
->
fields
;
i
++
)
se
->
add_read_column
(
table
->
field
[
i
]
->
field_name
);
se
->
read_batch_size
=
rnd_batch_size
;
se
->
read_batch_size
=
THDVAR
(
table
->
in_use
,
rnd_batch_size
)
;
bres
=
se
->
get_range_slices
(
false
);
if
(
bres
)
my_error
(
ER_INTERNAL_ERROR
,
MYF
(
0
),
se
->
error_str
());
...
...
storage/cassandra/ha_cassandra.h
View file @
c34b24ff
...
...
@@ -46,8 +46,6 @@ class ha_cassandra: public handler
void
read_cassandra_columns
(
bool
unpack_pk
);
ha_rows
rnd_batch_size
;
bool
doing_insert_batch
;
ha_rows
insert_rows_batched
;
public:
...
...
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