Repository navigation
5.1.6
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
COUNTand facets (c36f84c) count(*)replacescount(DISTINCT pk)when no join can repeat rows (f7861c1)- facets read a
DISTINCTsubquery joined to the related table first (d8e99c6) first()fetches one row instead of every match, andcreate()/update()no longer fetch the row twice (5ae4290)create()/update()without load options no longer re-read a row that is already current (b39a018)EventSessionskips the post-commit reload of objects that are already current (a6425f0)
Bug Fixes
wait_for_row_changekeeps a connection idle in transaction between polls (#423)- a failed
wait_for_row_changepoll rolls back a connection-bound caller's outer transaction (#424) - a raw to-many join in
offset_paginate/cursor_paginatereturns short pages (5fc01e8) cursor_paginatefacets shrink as the cursor moves forward (f59ba35)offset_paginateundercounts models with a composite primary key ( a3bf8a5)
Internal
- one search plan and one fan-out rule shared by the paginators:
crud.search.build_search_filtersgains a keyword-onlyto_many_subqueriesargument, andbuild_facetsis replaced bybuild_search_plan,facet_source_columns,facet_scalarsanddecode_facet(73124a3) - test suites rewritten around behaviours instead of call sites (3840a55)
Full Changelog: v5.1.5...v5.1.6