If you reuse the same Manager object, you need to keep in mind caching . To handle this, you need to manually update.
This will return the same results at each iteration:
while True: same_every_time = AClass.objects.all().order_by('-id')[:5] sleep(300)
For it to work correctly, you must add an update:
while True: AClass.objects.update() updated_results = AClass.objects.all().order_by('-id')[:5] sleep(300)
source share