diff options
author | Christopher Baines <mail@cbaines.net> | 2020-01-24 19:22:22 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-01-25 22:32:09 +0000 |
commit | b9031db946ff89a39e1507b430f64402b0e9572a (patch) | |
tree | d7495fec039f33c04069dd6d9d97add460b506a0 /COPYING | |
parent | faf4bfdfcb124306abe0d1a5be0176a286535c51 (diff) | |
download | cuirass-b9031db946ff89a39e1507b430f64402b0e9572a.tar cuirass-b9031db946ff89a39e1507b430f64402b0e9572a.tar.gz |
database: Enable running up to 4 database queries at once.allow-concurrent-database-queries
The number of threads is copied from bin/cuirass.in. When you have at least
two processors, this will allow database queries to be executed in parallel.
With some crude testing using the Apache HTTP server benchmarking tool (ab
from the httpd package), the max request latency does seem to drop when
multiple threads are used, especially when the database queries are slow (I
tested by adding usleep to the worker thread code).
* src/cuirass/database.scm (with-database): Pass #:parallelism to
make-worker-thread-channel.
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions