﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35230	Cache ForeignObjectRel.get_accessor_name()	Adam Johnson	Adam Johnson	"This method computes the name for the accessor descriptor, used in many places. Its results are stable, unless the optional `model` parameter is provided, used only in forms.

Adding a cached property `accessor_name` for the default value can speed up many code paths. In particular, I profiled the system checks for a project and found it was taking ~2% of the runtime, which can be basically eliminated with caching. Results:

Before: 6625 calls taking 2ms
After: 9 calls taking ~0ms


"	Cleanup/optimization	closed	Database layer (models, ORM)	dev	Normal	fixed			Ready for checkin	0	0	0	0	0	0
