Skip to content

Instantly share code, notes, and snippets.

View scarson's full-sized avatar

Sam Carson scarson

View GitHub Profile
@scarson
scarson / README.md
Created November 8, 2026 18:54
bd server mode: statement counts and time against round-trip time

bd server mode: statement counts and time against round-trip time

A self-contained reproduction showing that in server mode (bd init --server, connecting to a dolt sql-server), every bd command sends tens of SQL statements one after another, over several new connections. Each statement waits for the previous reply, so command time grows linearly with network round-trip time (RTT). On localhost this is invisible; at 80-100 ms RTT a read takes about 5 s and a write 10-15 s.

Everything here runs on one machine. No remote server, account or network setup is needed.

Contents