Skip to content

5.1.6

Choose a tag to compare

@d3vyce d3vyce released this 03 Oct 00:05
· 42 commits to main since this release
23ea3d1

What's Changed

Performance

  • the total and the facets come from one scan of the filtered rows (e367f61)
  • to-many search fields are filtered with a subquery in COUNT and facets (c36f84c)
  • count(*) replaces count(DISTINCT pk) when no join can repeat rows (f7861c1)
  • facets read a DISTINCT subquery joined to the related table first (d8e99c6)
  • first() fetches one row instead of every match, and create() / update() no longer fetch the row twice (5ae4290)
  • create() / update() without load options no longer re-read a row that is already current (b39a018)
  • EventSession skips the post-commit reload of objects that are already current (a6425f0)

Bug Fixes

  • wait_for_row_change keeps a connection idle in transaction between polls (#423)
  • a failed wait_for_row_change poll rolls back a connection-bound caller's outer transaction (#424)
  • a raw to-many join in offset_paginate / cursor_paginate returns short pages (5fc01e8)
  • cursor_paginate facets shrink as the cursor moves forward (f59ba35)
  • offset_paginate undercounts models with a composite primary key ( a3bf8a5)

Internal

  • one search plan and one fan-out rule shared by the paginators: crud.search.build_search_filters gains a keyword-only to_many_subqueries argument, and build_facets is replaced by build_search_plan, facet_source_columns, facet_scalars and decode_facet (73124a3)
  • test suites rewritten around behaviours instead of call sites (3840a55)

Full Changelog: v5.1.5...v5.1.6