LadybugDB v0.23.1 is out, building on v0.23.0 with a quick round of follow-up bug fixes—bringing the release to 164 merged pull requests since v0.22.1. Once again, @zahariash and @adsharma led the charge alongside strong contributions from @555aaditya, @Tyagiquamar, @kory-io, @Mrhs121, and @aikins01. We also welcomed four first-time contributors: @sunsided, @toyeshhm, @jfrench9, and @pratik-saptarshi. Thank you all for helping move LadybugDB forward.
Concurrent Writes by Default
In v0.22.0, we mentioned our plan to turn on @aikins01’s concurrent writes work by default in the next release. That flag—formerly debug_enable_multi_writes—is now renamed to enable_multi_writes and enabled by default across the engine and language bindings.
Flipping the default came with a deep round of MVCC and concurrency hardening:
- Write-write conflict detection for concurrent
ALTER/DROPoperations and staged inserts. - Automatic checkpoints now defer while writers are active, and
COPYcommits only once its checkpoint can run. - Failed
COPYrollbacks no longer erase rows written by other concurrent transactions. - Opening a second in-process read-write
Databaseon the same path is now rejected to prevent self-inflicted corruption. - Superseded MVCC versions are now reclaimed in in-memory databases.
If you need single-writer mode for any reason, you can still opt out with CALL enable_multi_writes=false.
Official Lance Support
Lance is now an official LadybugDB extension, with prebuilt release binaries across Linux, macOS, and Windows. You can install and load it like any other official extension:
INSTALL lance;
LOAD lance;
Under the hood, we also generalized external columnar table hooks (StorageFormat::EXTERNAL and ColumnarTableHookRegistry) instead of hardcoding specific formats in core. External columnar formats like Lance now plug cleanly into recovery, ALTER, fused extends, and recursive scans from extension code.
UNIQUE Constraints on Node and Rel Tables
You can now enforce single- and multi-property UNIQUE constraints on native node tables and relationship tables using Cypher DDL:
CREATE CONSTRAINT review_unique IF NOT EXISTS
FOR ()-[r:REVIEWED]-()
REQUIRE (r.userId, r.productId) IS UNIQUE;
CREATE CONSTRAINT user_email_unique IF NOT EXISTS
FOR (u:User)
REQUIRE u.email IS UNIQUE;
SHOW CONSTRAINTS;
DROP CONSTRAINT review_unique IF EXISTS;
Constraints validate existing rows at creation time, enforce uniqueness across all (FROM, TO) pairs of a relationship group, treat NULL values as distinct, and persist cleanly across checkpoints, WAL replay, and EXPORT/IMPORT.
Agent Mode for the lbug Shell
As more developers wire coding agents directly to databases, human-oriented ASCII box tables waste context tokens and break easily in pipes. Adapted from DuckDB 2.0’s agent mode, lbug now includes an --agent mode tailored for AI coding agents.
Agent mode activates automatically when stdout is not a TTY and a known agent environment variable (such as CLAUDECODE, CODEX_THREAD_ID, CURSOR_AGENT, GEMINI_CLI, COPILOT_AGENT, or AI_AGENT) is present. You can also toggle it explicitly with --agent, --no-agent, or LBUG_AGENT_MODE=1.
In agent mode, the shell outputs:
- Compact Markdown tables with no padding and column types in headers (
| name:STRING | n:INT64 |). - Bounded output with result hashes: caps results (default 1,000 rows / 10,000 bytes, configurable via
.maxrowsand.maxbytes), showing the first and last 20 rows with an omission count and an order-independent FNV-1a hash. - Structured JSON errors on stderr (
{"exception_type": ..., "exception_message": ...}). - Compact
EXPLAINandPROFILEplans: one operator per line instead of box art, preserving per-operator timings (also available outside agent mode via.explain compact). - Concise
.tablesoutput: one-line schema summaries per table.
Python 3.15 and Breaking Changes
- Python 3.15 support: Wheels and CI now target Python 3.15, and Python 3.10 is no longer supported.
- Extension cleanup: Extension binaries for releases
<= 0.18.xhave been purged (see #1706). Active release lines (0.19.0+) are now explicitly protected in CI with deploy smoke tests. - Language bindings:
.NETandLean4have been added to the installation table in the README.
Partitioning, Query Plans, and Observability
A lot of steady engine work also landed across v0.23.0 and v0.23.1:
- Partitioning: Node tables now support daily
RANGEpartitioning (PARTITION BY RANGE (ts) INTERVAL '1 day'), automatically creating per-day child partitions as rows arrive without pre-allocating empty days. Equality predicates now pruneHASHandLISTpartitions, and primary-key lookups work on pruned partition scans. - Faster query plans: Single-pair
SHORTESTandALL SHORTESTqueries now search bidirectionally from both ends. Lookup joins were generalized to bound adjacency expands,RETURN-only node properties are fetched after the lastWITH,INlists use binary search inlist_contains, ART range scans prune below the lower bound, and single-morsel node scans run directly on the calling thread. - Linux USDT probes: Added
lbug:query_start/query_endandlbug:operator_start/operator_endUSDT probes aligned withPROFILEtimings, along withbpftraceandperfscripts for live and offline per-operator attribution. - Storage and
SERIALreliability: AddedsetvalsoEXPORT/IMPORTrestoresSERIALsequence counters accurately, bounded string checkpoint memory toO(batch), and shipped dozens more WAL and checkpoint crash-recovery fixes. - v0.23.1 bug fixes: Kept chunk buffers valid when reallocation fails under buffer-manager pressure, locked the prepared-statement cache map during lookups, fixed a crash on chained
ALL SHORTESTwith empty results, guarded untypedNULLarguments and direct file scanCALLs in the binder, and fixedCOALESCE/CONSTANT_OR_NULLfilter selection over incoming selections.
Check out the v0.23.0 and v0.23.1 release notes for the complete list of changes. Thank you for being part of the LadybugDB community!
Classic