Skip to content

Commit

Permalink
add default speed-up for db2
Browse files Browse the repository at this point in the history
  • Loading branch information
mixmix committed May 16, 2023
1 parent 786b715 commit b62dc61
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ function createTestBot (opts = {}) {
...opts.conn
}

opts.db2 = {
// tune db2 for quick write then read (instead of bulk write)
addBatchThrottle: 50,
writeTimeout: 50,
...opts.db2
}

const caps = {
shs: crypto.randomBytes(32).toString('base64'),
...opts.caps
Expand Down

0 comments on commit b62dc61

Please sign in to comment.