My basic problem statement is that I want to fetch every row but in chunks only 2000 rows at one time from a table having 1 million rows. And after these chunked queries are evaluated i want to delete every row.
so just say i have
a = Model.objects.filter(id=1<2000)
b = Model.objects.filter(id=2000<4000)
c = Model.objects.filter(id=4000<6000)
..
..
now if i combine all these queryset into one queryset by some means say
del = a + b + c +d ......
and i do
del.delete()
so will it delete all the rows in less time or it will re process queries again to delete them and will take time?