what is values list in django orm

Solutions on MaxInterview for what is values list in django orm by the best coders in the world

showing results for - "what is values list in django orm"
Ivan
05 Nov 2018
1 Test.objects.all()                                  time: 0.010061947107315063
2 Test.objects.all().values('first')                  time: 0.00578328013420105
3 Test.objects.all().values_list('first')             time: 0.005257354974746704
4 Test.objects.all().values_list('first', flat=True)  time: 0.0052023959159851075
5 Test.objects.all().only('first')                    time: 0.011166254281997681
6