79194333

Date: 2024-11-16 00:57:37
Score: 0.5
Natty:
Report link

Retrieving too many row data places a burden on the server.

It may be helpful to control the amount of data fetched at one time in the following way:

a = []
for i in range(Model.objects.filter().count())[::1000]:
    a += list(Model.objects.filter()[i:i+1000])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: django.seolpyo.com