about summary refs log tree commit diff
path: root/test/python
diff options
context:
space:
mode:
authorPjotr <wrk@bosa.lan>2026-10-08 11:45:05 +0000
committerPjotr <wrk@bosa.lan>2026-10-08 11:55:30 +0000
commit208eeac395079f46fcbe07b4185524e017c554ef (patch)
tree7e1622acd8b2212724d75763201aad2e575c5026 /test/python
parent22540223c43342473d7d428dffeeab9d94afb55c (diff)
downloadgenenetwork4-208eeac395079f46fcbe07b4185524e017c554ef.tar.gz
* src/db.rs (pool): turn off check_health and reset_connection.
Each costs a full round trip to the database per pooled checkout (a
ping on take, COM_RESET_CONNECTION on return), on top of the query:
three round trips per database call instead of one. Against a database
about 130 ms away that is 390 ms per call instead of 130 ms. Measured
across 25 SQL endpoints: 1.3x (a 15,060-row list, dominated by row
cost) to 3.0x (single-call endpoints) faster; the full Rust and Python
suites pass.

Nothing here needs the reset (queries are read-only and keep no session
state). The ping only guarded against a connection the server closed
while idle; that now surfaces as a database error on the next query
that uses it (the pool then drops it), without a retry.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'test/python')
0 files changed, 0 insertions, 0 deletions