Changes between Initial Version and Version 1 of Ticket #28459, comment 5
- Timestamp:
- Aug 6, 2017, 5:20:57 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28459, comment 5
initial v1 13 13 69.1 ms ± 744 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) 14 14 In [3]: %timeit for x in City.objects.annotate(v=models.Value(1, output_field=models.IntegerField())).values_list('v'): pass 15 2 54 ms ± 1.61ms per loop (mean ± std. dev. of 7 runs, 1 loop each)15 264 ms ± 3.26 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) 16 16 }}}