Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature read data from file and secondary_ranges #471

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
7a12538
Add secondary_ranges in src/lua/oltp_common.lua
vrofze Mar 5, 2018
ca1e70f
Use limit instead of between in secondary_ranges
vrofze Mar 5, 2018
47aaab4
use text file as source data
vrofze Mar 23, 2018
bdf0942
Use global variables in loop while read file
vrofze Mar 27, 2018
926c549
update oltp_common.lua
vrofze Aug 13, 2018
3a42b0a
Merge remote-tracking branch 'topling/master' into tg-2022-09-20-df89…
rockeet Sep 20, 2022
7cc3656
remove ROW_FORMAT=COMPRESSED, and other minor fixes
rockeet Sep 21, 2022
3c4097d
make select_random_ranges fetch row when secondary_ranges != 0
rockeet Sep 21, 2022
6f71b25
remove ROW_FORMAT=COMPRESSED
rockeet Sep 21, 2022
f9458f4
bugfix: add missing "then"
rockeet Sep 21, 2022
53f7263
execute_delete_inserts: fix for opt.use_file - fix
rockeet Sep 23, 2022
82c151e
oltp_insert.lua: fix for opt.use_file
rockeet Sep 23, 2022
055e188
oltp_insert.lua: fix for opt.use_file - 2
rockeet Sep 23, 2022
d7c64d5
oltp_insert.lua: fix for opt.use_file - 3
rockeet Sep 23, 2022
ef7fb9e
oltp_insert.lua: fix for opt.use_file : prevent string cutoff
rockeet Sep 23, 2022
da9d074
filestr: fix for multi thread
rockeet Sep 23, 2022
5b9dc3c
sb_file_str: use thread local
rockeet Sep 23, 2022
0e9f058
select_random_ranges.lua: use param "range_size" as cnt limit of fetc…
rockeet Sep 28, 2022
e9ea09f
sql read stmt use length(c|pad) to avoid network bandwidth limit
rockeet Oct 10, 2022
50e4dcb
oltp_common.lua: add option start_id for parallel prepare one table
rockeet Oct 17, 2023
0f10d07
Add env MYSQL_CONN_CHARSET to set MYSQL_SET_CHARSET_NAME
rockeet Oct 28, 2023
488a0dd
select_random_ranges: add secondary_ranges == 3 for mysql mrr range_s…
rockeet Nov 1, 2023
a7a03be
add index to table, change select-random-ranges select mulit db (#1)
mytrygithub Nov 7, 2023
e07412b
git mv ReadMe.md README.md
rockeet Nov 7, 2023
8250919
Update multi_index_bench/README.md
rockeet Nov 7, 2023
c48345f
Add env var ROWS_BEFORE_COMMIT (default = 1000).
rockeet Jan 24, 2024
ca538b4
Add env BULK_PACKET_SIZE (default 5242880 ( = 5120*1024))
rockeet Jan 25, 2024
eea572f
Add env MAX_BULK_CNT(default = 1000)
rockeet Feb 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions multi_index_bench/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## 使用方法
把该文件夹的两个文件放在执行sysbench命令的当前目录,sysbench会自动识别替换安装内容。

## 主要修改内容:
1. 在数据表中添加索引数据项,用于测试带有索引的操作内容。
2. select_random_ranges 可以测试多个库,同时完成随机选择数据库和索引。

## 添加参数:
```
index_num =
{"number of indexes, such number of integer columns will be created for those secondary indexes", 0},
table_with_index =
{"if index_nums > 0, indexes will be created at table creation", false},
db_prefix =
{"manual create database prefix, this will disable mysql-db param", "sysbench"},
db_num =
{"manual create database number, this will disable mysql-db param", 20}
```

## 用法:
1. 设置 index_num 为需要创建的次级索引的个数,这会创建相同数量的额外整数列(k_1, k_2, ...)。table_with_index 表示是否在创建表是包含索引。
2. select_random_ranges 需要使用的多个数据库需要通过 1,手动完成创建。(当前默认数据名是 sysbench1, sysbench2, sysbench3 ... )


Loading