Repository navigation
yara-orm 1.14.2
Patch release: prefetch/dialect correctness fixes and hot-path optimizations.
Fixed
- Prefetch correctness — custom
Prefetchfilters/ordering honoured for M2M;LIMIT/OFFSET/slice on a custom M2MPrefetchapplies per owner; reverse-M2M managers read the cache underrelated_name(no more N+1). - Dialect / backend — PostgreSQL-only nested block comments (new
nests_block_commentsflag); MySQL/MariaDB escape backslashes in string literals; MSSQL percent-decodes URL credentials and honours?encrypt=strict; SQLite rolls back onCOMMITfailure; PostgreSQL clampsmax_sizeto>= 1. - Query / field — relation fields named like lookup operators (
slot__date) traverse correctly;FloatFieldcoerces numeric strings; non-finite floats in JSON params preserved as text across both binders. - Migrations / models — primary-key change diffing renders
ADD/DROP PRIMARY KEYper dialect;bulk_create(update_fields=..., on_conflict=[])falls back to the pk target; compiled insert plan snapshotted before awaiting (concurrent cross-dialect save safety).
Changed
- Hot-path optimizations — per-dialect compiled statement plan cache (O(1) restore); scalar-field compile path skips the relation probe; custom-M2M prefetch drops a redundant generator.
- SQLite benchmarks use
sync_fast_path— fastest on every SQLite op except the sub-millisecondgroup_by; SQLite/MariaDB tables and charts refreshed.
Full changelog: https://github.com/vsdudakov/yara-orm/blob/main/CHANGELOG.md