Changes between Initial Version and Version 1 of Ticket #28459, comment 5


Ignore:
Timestamp:
Aug 6, 2017, 5:20:57 AM (7 years ago)
Author:
Sergey Fedoseev

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28459, comment 5

    initial v1  
    131369.1 ms ± 744 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
    1414In [3]: %timeit for x in City.objects.annotate(v=models.Value(1, output_field=models.IntegerField())).values_list('v'): pass
    15 254 ms ± 1.61 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
     15264 ms ± 3.26 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
    1616}}}
Back to Top