2๐
โ
As far as I search for the answer, it is not possible to get methods through values_list.
To speed up this code, I must try to find which line and which methods are time consuming to run. Some packages such as โpython profilersโ and โDjango Debug Toolbarโ can be useful for this purpose.
Most of times, Queries to SQL are the most time consuming part of your codes. If times consuming part of your code is anythings else, maybe you must revised and restructured your code.
Source:stackexchange.com