Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
make data larger
Browse files Browse the repository at this point in the history
Signed-off-by: Liqi Geng <gengliqiii@gmail.com>
  • Loading branch information
gengliqi committed May 14, 2020
1 parent 8bc5f0c commit f1b2dde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/write-stress/write_stress.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const (
TABLE_ID int(11) NOT NULL COMMENT '分库ID',
CONTRACT_NO varchar(128) NOT NULL COMMENT '借据号',
TERM_NO int(11) NOT NULL COMMENT '期次号',
NOUSE char(510) NOT NULL COMMENT '填充位',
NOUSE char(255) NOT NULL COMMENT '填充位',
UNIQUE KEY TMP_JIEB_INSTMNT_DAILY_IDX1 (CONTRACT_NO, TERM_NO),
KEY TMP_JIEB_INSTMNT_DAILY_IDX2 (TABLE_ID, CONTRACT_NO)
Expand Down Expand Up @@ -161,7 +161,7 @@ func (c *writestressClient) Start(ctx context.Context, cfg interface{}, clientNo
func (c *writestressClient) ExecuteInsert(db *sql.DB, pos int) error {
totalNum := c.DataNum * 10000
num := totalNum / c.Concurrency
str := make([]byte, 500)
str := make([]byte, 250)
rnd := rand.New(rand.NewSource(time.Now().Unix()))
for i := 0; i < num/c.Batch; i++ {
tx, err := db.Begin()
Expand Down

0 comments on commit f1b2dde

Please sign in to comment.