I think this is a mistake in my own django code, but I just wanted to make sure.
Is the number of rows or models that I have in the database affect the memory consumption of django RAM? Suppose we had a mysql table called Model. My django code has only lazy request expectations in this form:
Models.objects.filter().blah().blah()[:SOME_NUMBER]
SOME_NUMBER remains at a constant, so the data that is stored in memory is also constant and not related to the total number of "Models" (or at least I hope). However, on the My Processes tab, when the number of my models increases, RAM also increases. To the point where it gets too high!
Does this mean that this or something else leads to this? Besides queryset-db calls, what else can lead to high memory consumption and leaks? If nothing else, there should be something in my code where I request a bunch of models, and I don't know. My DJANGO_DEBUG settings are disabled.
Thanks.
source share