Repository navigation
v3.12.1
Nuthatch 3.12.1 fixes one performance fault on the /sql surface and changes how one failure is
reported. It is a binary swap and a restart.
Compatibility and upgrade
Replace the binary and restart. There is no storage migration, configuration change, NID change or
re-index required. Existing sealed segments remain readable. One HTTP status changes: a query that
runs past the guard's time budget is answered with 504 rather than 400. A client that treated every
non-2xx from /sql alike sees no difference; one that retried on 5xx now retries these.
Every /sql statement ran twice (#1522)
Since 3.8.5 the scaled-decimal guard (#1433) prepared and executed each statement to learn its
column types, and the collector then executed it again for the rows. Every query on the surface paid
about 1.7x, including one that reads no data: on the same store snapshot, SELECT sum(i) FROM range(100000000) took 0.09 s on 3.8.4 and 0.16 s on 3.11.0, and a fold over a Lodestar view 1.7 s
against 3.0 s. The statement now executes once; the column types are read off that run, and only a
result with a scaled decimal column is dropped and re-run through the text projection. The wide
decimal answer is byte-identical.
A guard timeout is a 504 (#1521)
A statement cut off at SQL_TIMEOUT was reported with 400, the status of a malformed query, and
counted under nuthatch_sql_rejections_total{reason="invalid"}. It is now its own error,
QueryBudgetExceeded, answered with 504 and a body carrying the budget in seconds, and counted under
reason="timeout". The message text is unchanged.