Some initial investigation seems to suggest that a speedup could be gained by ditching prefetch_related and select_related and ModelSerializer and building the response using .values_list() and .values() and manual stitching together the values.
Is this good enough that it would warrant losing the ability to call Model methods/properties?
Would also mean a complete rewrite of the implementation of course :D -- but probably also a simplification.
Some initial investigation seems to suggest that a speedup could be gained by ditching
prefetch_related
andselect_related
andModelSerializer
and building the response using.values_list()
and.values()
and manual stitching together the values.Is this good enough that it would warrant losing the ability to call Model methods/properties?
Would also mean a complete rewrite of the implementation of course :D -- but probably also a simplification.