Skip to content

Commit

Permalink
[misc] update batch benchmark results
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Nov 15, 2018
1 parent 9748e96 commit e54badb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/batch.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ connection.query("INSERT INTO BASKET(customerId) values (?)", [1], (err, res) =>
});
```

### performance comparison
### Performance comparison

Some benchmark to do some 100 inserts with one parameter of 100 characters :
(benchmark source - see [standard insert](../benchmarks/benchs/bench_promise_insert_pipelining.js) and [batch insert](../benchmarks/benchs/bench_promise_insert_batch.js) )
<p align="center">
<img src="./misc/batch-bench.png">
</p>

### configuration
### Configuration

There is one thing to pay attention : MySQL / MariaDB servers have a global option [max_allowed_packet](https://mariadb.com/kb/en/library/server-system-variables/#max_allowed_packet) that limit the maximum packet exchange size.
If connector send more data than these limit, socket will be immediately dropped.
Expand Down
Binary file modified documentation/misc/batch-bench.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e54badb

Please sign in to comment.