Nov 26, 2026  ·  1 min read

Consultancy Atomic Object cuts a 126-second SQLite update to under 0.1 s

Atomic Object, a US software consultancy, built a canvassing app for a political campaign on Turso, a hosted version of the SQLite database. One UPDATE statement took 126 seconds. SQLite allows one write at a time, so every other write waited behind it. The query planner, the database component that picks how to run a query, started from the large contacts table instead of a roster of a few hundred people. Changing JOIN to CROSS JOIN forced the right order, and the developer says the update fell below 0.1 seconds.

The root cause was missing statistics: nobody had run ANALYZE, so the planner assumed every table held about a million rows. Alternatives fell short. Rewriting the statement would only have roughly halved the time, Turso rejected sampled ANALYZE, and analyzing only the large tables made plans worse. The team now runs ANALYZE nightly, audits query plans in CI (its automated test pipeline), and keeps the CROSS JOINs as a safeguard.

Source  ·  Atomic Spin ↗ One Word That Fixed a 126-Second Query A one-word CROSS JOIN fix cut a 126-second update to under a tenth of a second. The real problem: the SQLite query planner had never had statistics.
  1. Nov 26New York puts a five-year pause on AI chatbot toys
  2. Nov 26PollenPal uses cameras and sound sensors to monitor commercial beehives
  3. Nov 25OpenAI releases Healthcare model configurations through its Responses API
  4. Nov 25UK FCA sets expectations for AI agents in financial services
  5. Nov 25Florida man gets 47 months for AI voice-clone crypto scam

This is our sketchbook.

Two stoneware cups turned towards each other, as if in conversation

Got a good project?
Let’s work on it together.

Let’s talk →

info@ndot.io · New Jersey · Budapest · Biel