Opened 98 minutes ago

Last modified 83 minutes ago

#36977 assigned Cleanup/optimization

Cache more expression `output_field` properties

Reported by: Adam Johnson Owned by: Adam Johnson
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Many expression classes use @cached_property on output_field to avoid recomputation, such as `ST_Polygon` and `Lookup`. However, the opportunity has been missed in some expression classes.

Change History (1)

comment:1 by Adam Johnson, 83 minutes ago

Has patch: set
Note: See TracTickets for help on using tickets.
Back to Top