Changes for version 0.000032 - 2026-11-29

  • The main documentation says up front that the distribution is experimental until 1.x, and states the project's AI/LLM policy, with the full policy in AI_AND_LLM_POLICY.md.
  • The ORM's CRUD operations that return rows, and vivify, take row_class => $class_or_undef to pick the row class for one call. data => 1 wins over it.
  • Role::Source's results() takes the handle's row class as a row_class option (results($orm, \@raw, $ingest, %opts)) instead of a trailing list. Custom sources must update.
  • A database is scanned once per process: a later new() without a db_map starts from a copy of the first scan. Pass rescan => 1 after changing tables in a running process.
  • JSON fields are decoded again for each read instead of deep-copying cached data (a type chooses this with inflate_on_each_read), 1.3x to 2.7x faster.
  • A fetch of many rows from a table with a single untyped primary key adds them to the row cache as one batch, which is faster outside a transaction.
  • Finding a row by a plain key on a table with a single untyped primary key is about twice as fast.
  • Fetching rows and reading their fields is faster, about 1.2x for a fetch of many rows and 1.35x with no_cache.
  • The DateTime type loads DateTime and its formatters on its first parse or format, so building an ORM with the default settings no longer loads them (about 60 ms).
  • New handle modifier bare: plain hashrefs that skip the row cache, the same as data_only plus no_cache.
  • New ORM primitive cas_update: a compare-and-swap update_row on a row or any hashref, a bare one included.
  • New auto_omit argument (and orm keyword): leave fields of named ORM or database types, such as JSON, out of default selects. Nothing is left out by default.
  • A read that lacks a field the canonical copy of a row holds now replaces that copy, so earlier row objects stop being canonical and must be refreshed before a write.
  • Where the database has RETURNING, a write reads back the fields it set, and an update or refresh also the fields the row held.
  • A cas on a field the row has not read says to read it first or select it with fields.
  • Inside a transaction, a re-read that finds a just-inserted row changed keeps the row marked inserted, so after a rollback it is not in the database.
  • follow_fk and insert_fk reading a link field the row lacks read the row's other fields too, so the row stays canonical when those are unchanged.
  • canon_status and the stale-write croak say why row data is not canonical, and with the new debug => 1 name the call behind it.
  • field reads a field the row holds without going through inflated_field, about 5% to 10% faster, for rows whose class keeps the role's inflated_field and _inflated_value.
  • Handles build aggregate rows faster, and field reads an aggregate row's columns directly when its class keeps the standard read methods.
  • insert_many plans its columns once per call and sends plain rows in one execute per statement, about 1.7x to 2.5x less client CPU per row.
  • MariaDB updates keep not using RETURNING, though MariaDB 13.0.1 added it, because it leaves out matched rows that did not change (MDEV-41113).
  • New manual page DBIx::QuickORM::Manual::Optimizations: what is fast, what is slow, and the faster forms, with timings next to DBIx::Class and DBI.

Documentation

Modules

An ORM that quickly gives you what you need with minimal boilerplate, and easily extends to more complex use cases.
A computed row that knows its columns' types and foreign keys.
One database handle and the state tied to it.
Blocks for defining an ORM as classes.
Base for the per-database facts and session setup.
MySQL dialect, and base for MariaDB.
A classified database error.
Build a query and fetch its rows.
Iteration over the rows a query fetched.
One row of a join: its component rows and raw data.
The canon row hash for each table and primary key.
The DBIx::QuickORM manual.
Group, count, and compute columns, by example.
Run queries in the background with async, aside, and forked, by example.
Insert many rows at once with insert_many, by example.
The ORM's one canonical copy of each row, by example.
Defining an ORM as classes: the orm, table, and row blocks, by example.
Coming from DBIx::Class: the concepts mapped, and the same tasks side by side.
What differs between PostgreSQL, MySQL, MariaDB, SQLite, and DuckDB, and what it means for your code.
Database errors, their kinds, and retrying, by example.
Follow foreign keys from a row, and insert rows linked to it, by example.
Join tables and read the joined rows, by example.
Primary keys: their forms, typed keys, the format hint, and generated keys, by example.
What is fast, what is slow, and the faster alternatives, with numbers.
Introduces the fundamentals with a simple example, then expands into advanced capabilities from there.
Your own row classes: for one table, every table, or one query, and plain hashrefs, by example.
Transactions, savepoints, retries, and the rows you hold, by example.
Write a type: inflate, deflate, keys, caching, and registering it, by example.
How values move between Perl and the database: deflation, inflation, and the raw, inflated, binary, and sql markers, by example.
The database map: tables, fields, and keys as plain data.
Base class for an ORM defined as classes.
Namespace for the DBIx::QuickORM roles.
The logic of a row object.
The interface a handle builds SQL through.
What a handle reads from.
The interface for field types.
The interface a handle's WHERE is rendered through.
The default row class.
The default SQL builder.
Tables joined together, as a source.
A query as a source.
A table as a source.
A transaction or savepoint.
Date and timestamp fields as DateTime objects.
A DateTime built on first use.
Perl data structures stored as JSON text.
UUIDs stored as text or as 16 bytes.
Mark how one value is sent to the database.
A where that is SQL already.
Any where, through SQL::Abstract.
Fast equality conditions.