Skip to content

other

fetch_mode

Setting applied per Django queryset that controls how an instance loads a field value the original query did not fetch; FETCH_PEERS batches the field across the instances from the same query and FETCH_RAISE blocks the fetch and raises FieldFetchBlocked.

Known aliases

  • FETCH_PEERS
  • FETCH_RAISE

Relationships

No evidence-backed relationships are recorded.

Current clusters

build1 publisher

FETCH_PEERS trades 1,999 Django round trips for one IN clause

Django 6.1's queryset-level fetch_mode took a 2,001-query loop down to two in a Postgres test and did the same for deferred fields, but not for the reverse foreign key managers on the many side of a relation.

Publishers:dev.to

Reality

Evidence66
Adoption20
Hype gap+12
Incentives28
Confidence58