I know this:
It is also important to remember that when running with DEBUG turned on, Django will remember every SQL query it executes. This is useful when you’re debugging, but it’ll rapidly consume memory on a production server.
Source: https://docs.djangoproject.com/en/dev/ref/settings/#debug
I have a python script which does stress testing.
This script does not use the django test runner.
It uses the ORM in a loop doing more and more traffic in every iteration.
It would be great if my script could work in any environment.
I don't want other developers to force to fiddle with their settings (configure DEBUG to False) before executing this script.
Is there a way to disable the particular feature "remember every SQL query"?