File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 2
2
把该文件夹的两个文件放在执行sysbench命令的当前目录,sysbench会自动识别替换安装内容。
3
3
4
4
## 主要修改内容:
5
- 1、在数据表中添加索引数据项,用于测试带有索引的操作内容。
6
-
7
- 2、select_random_ranges 可以测试多个库,同时完成随机选择数据库和索引。
5
+ 1 . 在数据表中添加索引数据项,用于测试带有索引的操作内容。
6
+ 2 . select_random_ranges 可以测试多个库,同时完成随机选择数据库和索引。
8
7
9
8
## 添加参数:
10
9
```
11
10
index_num =
12
- {"create table index numbers ", 0},
11
+ {"number of indexes, such number of integer columns will be created for those secondary indexes ", 0},
13
12
table_with_index =
14
- {"if index_nums > 0 create table with index ", false},
13
+ {"if index_nums > 0, indexes will be created at table creation ", false},
15
14
db_prefix =
16
15
{"manual create database prefix, this will disable mysql-db param", "sysbench"},
17
16
db_num =
18
17
{"manual create database number, this will disable mysql-db param", 20}
19
18
```
20
19
21
20
## 用法:
22
- 1、设置 index_num 为需要创建索引项的个数。table_with_index 表示是否在创建表是包含索引。
23
-
24
- 2、select_random_ranges 需要使用的多个数据库需要通过 1,手动完成创建。(当前默认数据名是 sysbench1, sysbench2, sysbench3 ... )
21
+ 1 . 设置 index_num 为需要创建的次级索引的个数,这会创建相同数量的额外整数列(k_1, k_2, ...)。table_with_index 表示是否在创建表是包含索引。
22
+ 2 . select_random_ranges 需要使用的多个数据库需要通过 1,手动完成创建。(当前默认数据名是 sysbench1, sysbench2, sysbench3 ... )
25
23
26
24
You can’t perform that action at this time.
0 commit comments