datahike 2026-11-24

Datahike’s query planner benefits from persistent-sorted-set tree counts, which I added in spring. Unfortunately counts sometimes got lost on structural tree changes, which made the planner fallback to heuristics. Datahike should notify you to call a recount! helper function in this case now to repair all the counts in the indices of a db. Newly created dbs with version 0.8.1940 or newer won’t lose counts anymore. Thanks to @markaddleman for helping identify this issue and contributing a series of PRs that make datahike server run more smoothly in production.

🎉 3

There was also a similar edge case for upserts and deletions in stratum, this is also fixed now.